@Override public boolean onOnline(ServiceEvent event) { RootPanel.get().removeStyleName(CssName.OFFLINE); return false; }
@Override public boolean onOnline(ServiceEvent event) { RootPanel.get().removeStyleName(CssName.OFFLINE); return false; }
@Override public void hide() { //remove the body class RootPanel.get().removeStyleName("gwt-ModalDialog-show"); super.hide(); } }
/** * Set the look of the application and the state of the button. */ public void setFullScreen(boolean isFullScreen) { if (isFullScreen) { // enable fullscreen RootPanel.get().addStyleName("fullscreen"); fullScreenButton.getElement().addClassName("icon-extend-header"); fullScreenButton.getElement().removeClassName("icon-collapse-header"); } else { // disable fullscreen RootPanel.get().removeStyleName("fullscreen"); fullScreenButton.getElement().addClassName("icon-collapse-header"); fullScreenButton.getElement().removeClassName("icon-extend-header"); } }
@Override public void onSuccess(SearchUIConfig searchUIConfig) { SearchApplicationContext.initializeSearchApplicationContext(searchUIConfig); if ( !SearchApplicationContext.getInstance().requiresLogin() ) { SessionContext.INSTANCE.noAuthLogin(); } controller = new SearchApplicationController(); addHeader(); addMain(); addFooter(); if ( hasHeader && headerSlot.getWidgetIndex( headerPanel ) == -1 ) { headerSlot.add( headerPanel ); } if ( hasFooter && footerSlot.getWidgetIndex( footerPanel ) == -1 ) { footerSlot.add( footerPanel ); } if ( hasFeedback ) { feedbackSlot.removeStyleName( "hide" ); } SearchApplicationContext.getInstance().clearHistory(); } });