Hi Rob,
I think you got me a little bit wrong: I don't want the menu to handle
the logic. I can handle the logic my self. But I need to tell the menu
that it should show (paint) a menu item as disabled.
Give me a method like this and I am happy:
MenuItem.setEnabled (boolean enabled);
Well, the recommendation for gwtlib from Alan shows that this must be
implemented already. Then it must also be possible for me to do this
"by hand", without using an additional library. But how?
It would be fine if someone could tell how this can be done.
Thanks
Magnus
On Aug 3, 4:42 pm, Rob Coops <
rco...@gmail.com> wrote:
> So what you are saying is that you need a way for the menu to detect which
> user/user group is looking at the menu.
>
> As you are already saying you have user groups it should not be to hard to
> inform the menu about the user group that is trying to open it. Once the
> menu knows which group is trying to open it it can use internal hard
> coded or externally read logic to decide what fields to render and how to
> render them, what events to attach to the elements and so on.
>
> I would simply hand the menu a variable/object that identifies the user
> group accessing it. Then the menu logic can deal with the rest. I would
> though use an external location to store the logic for the menu so you can
> easily update it should you need to add a new group in the future.
>
> I hope that helps a bit...
>
> >
google-web-tool...@googlegroups.com<
google-web-toolkit%2Bunsu...@googlegroups.com>
> > .