Hi,
I am a GWT newbie so please bear with me.
I am trying to implement a HorizontalPanel from within a onModuleLoad() where the left side is a simple navigation menu.
However, I wish to load the right-hand side of the panel depeneding on what the user selects in the navigation menu. This is simple enough in one HUGE class, but I wish to write a class for each navigation option.
For example:
- User clicks option1 in left menu, instantiate Option1 object from Option1 class and add it to the right hand pane.
- User clicks option2 in left menu, instantiate Option2 object from Option2 class and overide whatever was in the right hand pane previously.
Can this be done without creating a bespoke widget for each Option?
If so how? please help!
Your help is appreciated!
Harperonline