I have a MenuBar in my app and need to disable that based on some condition. The setEnabled(boolean) method is not available on GWT MenuBar hence there is no straight way to go ahead with this requirement.
For Ex: If you look into NestedAnchor.setEnabled(boolean enabled)
it disables the events on that widget and adds a style too.
I would like to do the same behavior on MenuBar where click events are not triggered to show the popup.
Also tried with jquery to add disabled
attr, still no success
This will serve the purpose : menuBar.unsinkEvents(Event.MOUSEEVENTS | Event.ONCLICK | Event.FOCUSEVENTS | Event.KEYEVENTS);