I am using GWTP for an application. In this app, I often need to do Container one I encounter: manage the life cycle of First question : In this special case, call it manually The second question : I tried to manage those methods without the need to manage the lifecycle of the call I do this: When a user clicks on a tab , Call the main presenter But: When I click on a tab, the caller is called at = & gt; It may be of help: PresenterWidget , which contain tabs with PresenterWidget in each tab PresenterWidget , I can not use the class TabContainerPresenter , so I'm implementing my own. PresenterWidget contained in onReveal () , onHide () etc.) Some problems while trying to OnRival () , onHide () Recommended? setInSlot (index, presenter widget) to call related to PresenterWidget right tab. on PresenterWidget (Good!) Then OnReset () is called at all PresenterWidget : Why all? I hope that onReset () is called on the active tab only on PresenterWidget . setInSlot () Is this the right way to call?
setInSlot () method because only one PresenterWidget is active at any point < P> Although you are using different SLOTs for each PresenterWidget , the way setInSlot () works, it changes the place which is PresenterWidget was assigned to that slot. Because you use different slots for each tab, it will not remove the other PresenterWidgets Other Presentation widget remain in their slots and probably this is the reason that OnReset () is called on them.
You have 2 options:
PresenterWidgets on removeFromSlot Calling on . setInSlot ()
No comments:
Post a Comment