/** * Shows the window, rendering it first if necessary, or activates it and brings it to front if * hidden. */ public void show() { if (!hidden || !fireEvent(Events.BeforeShow, new WindowEvent(this))) { return; } // remove hide style, else layout fails removeStyleName(getHideMode().value()); addStyleName(HideMode.VISIBILITY.value()); if (!isAttached()) { RootPanel.get().add(this); } el().makePositionable(true); onShow(); manager.register(this); afterShow(); notifyShow(); }