Hi,
-- with UIBinder you can define a complex menu structure very quiclkly:
<g:MenuBar ui:field="menuBar">
<g:MenuItem ui:field="itm_Account" text="Account">
<g:MenuBar vertical="true">
<g:MenuItem ui:field="itm_Login" text="Login"/>
<g:MenuItem ui:field="itm_Logout" text="Logout"/>
...
But to use these structures in real-life projects you have to blow them with a lot of boilerplate code like this:
itm_Login.setScheduledCommand
(
new ScheduledCommand ()
{
public void execute ()
{
Window.alert ("process command: Login");
}
}
);
This can be very painful If you have a complex menu structure, especially when thinking about roles and rights.
Are there any methods to do this in a more compact way?
Thanks
Magnus
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment