menu.getElement().getStyle().setDisplay(Style.Display.NONE);
menuVisible = false;
for (int i = 0; i < handlerManager.getHandlerCount(HideEvent.getType()); i++) {
HideHandler hh = handlerManager.getHandler(HideEvent.getType(), i);
hh.onHide(new HideEvent(null));
}
}
public HandlerRegistration addHideHandler(HideHandler hideHandler) {
return handlerManager.addHandler(HideEvent.getType(), hideHandler);