Re: reset a widget

2009-05-20 Thread George
Hi again, thanks for your fast reply. Your Tip was very useful, even though the mentionend method was not available for me as i didn't switch to 1.6 yet. Nonetheless, i understood the technique and implemented it with onTabSelected. Thanks a lot George On 14 Mai, 16:06, Salvador Diaz

reset a widget

2009-05-14 Thread George
Hi, I have the following problem: I start a widget by clicking a tab on a tabpanel, i.e.: tabPan.add(new UserInfoWidget(), Settings); After some interaction with this widget (UserInfoWidget()), i switch to another tab. When I come back now to the Settings panel i want it to be resetted and not

Re: reset a widget

2009-05-14 Thread Salvador Diaz
How can this be achieved? Not difficult, just keep a reference to your widget somewhere, make it implement a reset() method and have a SelectionHandler call that method when the tab is selected. Here's an example of that exact same thing: