Hi,
I have serveral GUI components that loads and displays user specific info after
the user has logged-in. All these components have a method called initAuthGUI.
Then, finally I may have many widgets and subpanels.
1> I would like to call the initAuthGUI() method once and the call will
proporgate down the tree recursively.
2> I would like no widget without containing the method initAuthGUI should be
added to any panel.
What is the best way to implement these goals?
public UpperPanel() extends VerticalPanel
{
--
public initAuthGUI()
{
subpanel1.initAuthGUI()
subpanel2.initAuthGUI()
subpanel3.initAuthGUI()
....
}
}
public SubPanel1() extends HorizontalPanel
{
--
Widget widget1.....
initAuthGUI()
{
for(k=0;k<this.getWdigetCount()l++)
{
this.widget[k].initAuthGUI();
}
}
--
}
Thanks
Ming
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.