List of usage examples for com.google.gwt.user.client Window enableScrolling
public static void enableScrolling(boolean enable)
From source file:com.logicaldoc.gui.setup.client.Setup.java
@Override public void onModuleLoad() { // Setup the language for localization RequestInfo loc = WindowUtils.getRequestInfo(); // Tries to capture locale parameter String lang;//ww w . ja v a 2 s . c om if (loc.getParameter(Constants.LOCALE) != null && !loc.getParameter(Constants.LOCALE).equals("")) { lang = loc.getParameter(Constants.LOCALE); } else { // First we initialize language values lang = Util.getBrowserLanguage(); } I18N.setLocale(lang); // Get grid of scrollbars, and clear out the window's built-in margin, // because we want to take advantage of the entire client area. Window.enableScrolling(false); Window.setMargin("0px"); infoService.getInfo(I18N.getLocale(), Constants.TENANT_DEFAULTNAME, new AsyncCallback<GUIInfo>() { @Override public void onFailure(Throwable error) { SC.warn(error.getMessage()); } @Override public void onSuccess(GUIInfo info) { I18N.init(info); initGUI(info); } }); }
From source file:com.msco.mil.client.com.sencha.gxt.explorer.client.ExplorerShell.java
License:sencha.com license
public ExplorerShell() { monitorWindowResize = true;/*w w w .j a v a2 s .c o m*/ Window.enableScrolling(false); setPixelSize(Window.getClientWidth(), Window.getClientHeight()); setStateful(true); setStateId("explorerLayout"); BorderLayoutStateHandler state = new BorderLayoutStateHandler(this); state.loadState(); }
From source file:com.openkm.frontend.client.Main.java
License:Open Source License
/** * onModuleLoad2/*from w w w .j a va 2s . c o m*/ */ public void onModuleLoad2() { // Initialize workspace properties workspaceUserProperties = new WorkspaceUserProperties(); // Initialize user home userHome = new GWTUserConfig(); // Initialize panels mainPanel = new ExtendedDockPanel(); // Loading popup startUpPopup = new StartUpPopup(); startUpPopup.setWidth("300px"); startUpPopup.setHeight("220px"); startUpPopup.setStyleName("okm-Popup"); startUpPopup.addStyleName("okm-DisableSelect"); // Initialize general panels fileUpload = new FileUploadPopup(); fileUpload.setStyleName("okm-Popup"); errorPopup = new ErrorPopup(false); errorPopup.setStyleName("okm-Popup-Error"); errorPopup.setWidth("380px"); errorPopup.setHeight("205px"); errorPopupLogout = new ErrorPopup(true); errorPopupLogout.setStyleName("okm-Popup-Error"); errorPopupLogout.setWidth("300px"); errorPopupLogout.setHeight("205px"); msgPopup = new MsgPopup(); msgPopup.setStyleName("okm-Popup"); msgPopup.setWidth("550px"); msgPopup.setHeight("290px"); externalURLPopup = new ExternalURLPopup(); externalURLPopup.setStyleName("okm-Popup"); logoutPopup = new LogoutPopup(); logoutPopup.setWidth("250"); logoutPopup.setHeight("110"); logoutPopup.setStyleName("okm-Popup"); logoutPopup.addStyleName("okm-DisableSelect"); securityPopup = new SecurityPopup(); securityPopup.setWidth("600"); securityPopup.setHeight("400"); securityPopup.setStyleName("okm-Popup"); securityPopup.addStyleName("okm-DisableSelect"); aboutPopup = new AboutPopup(); aboutPopup.setWidth("300px"); aboutPopup.setHeight("220px"); aboutPopup.setStyleName("okm-Popup"); aboutPopup.addStyleName("okm-DisableSelect"); userPopup = new UserPopup(); userPopup.setWidth("470px"); userPopup.setHeight("220px"); userPopup.setStyleName("okm-Popup"); // userPopup.addStyleName("okm-DisableSelect"); confirmPopup = new ConfirmPopup(); confirmPopup.setWidth("300px"); confirmPopup.setHeight("125px"); confirmPopup.setStyleName("okm-Popup"); confirmPopup.addStyleName("okm-DisableSelect"); dragable = new Dragable(); propertyGroupPopup = new PropertyGroupPopup(); propertyGroupPopup.setWidth("300px"); propertyGroupPopup.setHeight("50px"); propertyGroupPopup.setStyleName("okm-Popup"); propertyGroupPopup.addStyleName("okm-DisableSelect"); workflowPopup = new WorkflowPopup(); workflowPopup.setWidth("300px"); workflowPopup.setHeight("100px"); workflowPopup.setStyleName("okm-Popup"); workflowPopup.addStyleName("okm-DisableSelect"); notifyPopup = new NotifyPopup(); notifyPopup.setWidth("400px"); notifyPopup.setHeight("100px"); notifyPopup.setStyleName("okm-Popup"); debugConsolePopup = new DebugConsolePopup(); debugConsolePopup.setWidth("300px"); debugConsolePopup.setHeight("100px"); debugConsolePopup.setStyleName("okm-Popup"); debugConsolePopup.addStyleName("okm-DisableSelect"); findFolderSelectPopup = new FindFolderSelectPopup(); findFolderSelectPopup.setWidth("700px"); findFolderSelectPopup.setHeight("390px"); findFolderSelectPopup.setStyleName("okm-Popup"); findFolderSelectPopup.addStyleName("okm-DisableSelect"); findDocumentSelectPopup = new FindDocumentSelectPopup(); findDocumentSelectPopup.setWidth("700px"); findDocumentSelectPopup.setHeight("390px"); findDocumentSelectPopup.setStyleName("okm-Popup"); findDocumentSelectPopup.addStyleName("okm-DisableSelect"); findSimilarDocumentSelectPopup = new FindSimilarDocumentSelectPopup(); findSimilarDocumentSelectPopup.setWidth("700px"); findSimilarDocumentSelectPopup.setHeight("390px"); findSimilarDocumentSelectPopup.setStyleName("okm-Popup"); findSimilarDocumentSelectPopup.addStyleName("okm-DisableSelect"); wizardPopup = new WizardPopup(); wizardPopup.setWidth("400px"); wizardPopup.setHeight("40px"); wizardPopup.setStyleName("okm-Popup"); wizardPopup.addStyleName("okm-DisableSelect"); reportPopup = new ReportPopup(); reportPopup.setWidth("250px"); reportPopup.setHeight("40px"); reportPopup.setStyleName("okm-Popup"); reportPopup.addStyleName("okm-DisableSelect"); templateWizardPopup = new TemplateWizardPopup(); templateWizardPopup.setWidth("400px"); templateWizardPopup.setHeight("40px"); templateWizardPopup.setStyleName("okm-Popup"); templateWizardPopup.addStyleName("okm-DisableSelect"); onlineUsersPopup = new OnlineUsersPopup(); onlineUsersPopup.setWidth("250px"); onlineUsersPopup.setHeight("350px"); onlineUsersPopup.setStyleName("okm-Popup"); onlineUsersPopup.addStyleName("okm-DisableSelect"); testPopup = new TestPopup(); testPopup.setWidth("600px"); testPopup.setHeight("500px"); testPopup.setStyleName("okm-Popup"); notesPopup = new NotesPopup(); notesPopup.setWidth("470px"); notesPopup.setHeight("220px"); notesPopup.setStyleName("okm-Popup"); categoriesPopup = new CategoriesPopup(); categoriesPopup.setWidth("470px"); categoriesPopup.setHeight("220px"); categoriesPopup.setStyleName("okm-Popup"); keywordsPopup = new KeywordsPopup(); keywordsPopup.setWidth("470px"); keywordsPopup.setHeight("100px"); keywordsPopup.setStyleName("okm-Popup"); pdfMergePopup = new PdfMergePopup(); pdfMergePopup.setWidth("400px"); pdfMergePopup.setHeight("75px"); pdfMergePopup.setStyleName("okm-Popup"); templatePopup = new TemplatePopup(); templatePopup.setWidth("350px"); templatePopup.setHeight("75px"); templatePopup.setStyleName("okm-Popup"); conversionStatus = new ConversionStatus(); updatePropertyGroupPopup = new UpdatePropertyGroupPopup(); updatePropertyGroupPopup.setWidth("250px"); updatePropertyGroupPopup.setHeight("50px"); updatePropertyGroupPopup.setStyleName("okm-Popup"); convertPopup = new ConvertPopup(); convertPopup.setWidth("150px"); convertPopup.setHeight("50px"); convertPopup.setStyleName("okm-Popup"); // Get grid of scrollbars, and clear out the window's built-in margin, // because we want to take advantage of the entire client area. Window.enableScrolling(false); Window.setMargin("0px"); RootPanel.get().add(mainPanel); RootPanel.get().add(dragable); Window.addWindowClosingHandler(new ClosingHandler() { @Override public void onWindowClosing(ClosingEvent event) { Main.get().windowClosing = true; startUp.keepAlive.cancel(); if (Main.get().mainPanel.bottomPanel.userInfo.isConnectedToChat()) { Main.get().mainPanel.bottomPanel.userInfo.logoutChat(); } } }); // Sets the active folder tree, it'll be used to store the active folder // every time switching stack panel activeFolderTree = mainPanel.desktop.navigator.taxonomyTree; // Initialize on startup when all objects are created sequentially startUpPopup.show(); startUp = new StartUp(); startUp.init(); // Auto-publish the method into JS when the GWT module loads. initJavaScriptApi(); mainPanel.topPanel.toolBar.initJavaScriptApi(mainPanel.topPanel.toolBar); fileUpload.initJavaScriptApi(); new NavigatorComunicator().initJavaScriptApi(); // Initialize commonUI public js api CommonUI commonUI = new CommonUI(); commonUI.initJavaScriptApi(commonUI); }
From source file:com.pietschy.gwt.pectin.demo.client.DemoEntryPoint.java
License:Apache License
public void onModuleLoad() { rootPanel = RootPanel.get("demo-target"); // tabs.add(new BasicDemo(), "Basic", "basic"); // tabs.add(new FormattedFieldDemo(), "Formatted Fields", "formattedFields"); // tabs.add(new MetadataDemo(), "Metadata Plugin", "metadata"); // tabs.add(new ValidationDemo(), "Validation Plugin", "validation"); // tabs.add(new StyleDemo(), "Style Bindings", "style"); // tabs.initialiseSelectionFromHistory(); tabs.add(new LazyPanel() { @Override/* w w w. j av a 2 s . co m*/ protected Widget createWidget() { return new BasicDemo(); } }, "Basic Form"); tabs.add(new LazyPanel() { @Override protected Widget createWidget() { return new MetadataDemo(); } }, "Enabled/Visible/Watermarks"); tabs.add(new LazyPanel() { @Override protected Widget createWidget() { return new FormattedFieldDemo(); } }, "Formatted fields"); tabs.add(new LazyPanel() { @Override protected Widget createWidget() { return new ValidationDemo(); } }, "Validation"); tabs.add(new LazyPanel() { @Override protected Widget createWidget() { return new StyleDemo(); } }, "Style bindings"); tabs.add(new LazyPanel() { @Override protected Widget createWidget() { return new CommandDemo(); } }, "UiCommands & Buttons"); tabs.selectTab(0); rootPanel.add(tabs); Window.enableScrolling(true); Window.addResizeHandler(new ResizeHandler() { public void onResize(ResizeEvent event) { updateSize(); } }); updateSize(); }
From source file:com.qualogy.qafe.gwt.client.QAFEGWTWeb.java
License:Apache License
protected static void setupMDI(Boolean dockMode) { Window.enableScrolling(false); ClientApplicationContext.getInstance().setMode(ClientApplicationContext.MDI); ClientApplicationContext.getInstance().setDockMode(dockMode); RootPanel.get(rootPanelValue).add(buildMenu(), 0, 0); MainFactoryActions.processUIFromApplicationContext(); ClientApplicationContext.getInstance().setLogText("MDI Mode"); if (dockMode.booleanValue()) { Panel dockPanel = new HorizontalPanel(); ClientApplicationContext.getInstance().setDockPanel(dockPanel); RootPanel.get(rootPanelValue).add(dockPanel, Window.getClientWidth() / 2, Window.getClientHeight() - 80); } else {//from ww w . j a v a 2 s .co m RootPanel.get(rootPanelValue).add(ClientApplicationContext.getInstance().getHorizontalPanel(), 0, Window.getClientHeight() - 23); ClientApplicationContext.getInstance().getBottomMenuBar().setWidth("100%"); ClientApplicationContext.getInstance().getBottomMenuBar().addItem(" ", new Command() { @Override public void execute() { } }); RootPanel.get(rootPanelValue).add(ClientApplicationContext.getInstance().getBottomMenuBar(), 0, Window.getClientHeight() - 25); } AbsolutePanel image = new AbsolutePanel(); image.addStyleName("imglogo"); RootPanel.get(rootPanelValue).add(image); RootPanel.get(rootPanelValue).add(ClientApplicationContext.getInstance().getPi(), Window.getClientWidth() - ClientApplicationContext.getInstance().getPi().getWidth(), 3); }
From source file:com.roughindustries.commonwealthcocktails.client.application.ApplicationView.java
License:Apache License
@Inject public ApplicationView(final Binder uiBinder) { Window.enableScrolling(false); widget = uiBinder.createAndBindUi(this); }
From source file:com.you2mix.mix.client.Main.java
License:Apache License
public void onModelLoaded(Model model) { status.hideTaskStatus();/*from w ww . j a v a2 s. co m*/ status.hideErrorStatus(); final Images images = GWT.create(Images.class); // We don't want any top-level scroll bars. Window.enableScrolling(false); final RootPanel root = RootPanel.get(); new HeaderView(images, root, model); SurfaceView surfaceView = new SurfaceView(model); root.add(surfaceView); }
From source file:de.catma.ui.client.ui.tagger.menu.TagMenuPopup.java
License:Open Source License
@Override public void hide() { super.hide(); for (HandlerRegistration hr : handlerRegistrations) { hr.removeHandler();/* ww w .java 2 s. c om*/ } Window.enableScrolling(false); }
From source file:de.catma.ui.client.ui.VCatmaWindow.java
License:Open Source License
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { super.updateFromUIDL(uidl, client); // This call should be made first. // It handles sizes, captions, tooltips, etc. automatically. if (client.updateComponent(this, uidl, true)) { // If client.updateComponent returns true there has been no changes and we // do not need to update anything. return;//from ww w. j a v a 2 s .c om } if (uidl.hasAttribute(EventAttribute.enableScrolling.name())) { Window.enableScrolling(uidl.getBooleanAttribute(EventAttribute.enableScrolling.name())); } if (uidl.hasAttribute(EventAttribute.stayOnTop.name())) { stayOnTop = uidl.getBooleanAttribute(EventAttribute.stayOnTop.name()); } }
From source file:de.eckhartarnold.client.Layout.java
License:Apache License
private void init(ImageCollectionInfo collection, String configuration) { imagePanel = new ImagePanel(collection); /* String clickable = collection.getInfo().get(KEY_CLICKABLE); if (clickable == null || clickable.equalsIgnoreCase("true")) { imagePanel.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { Window.open(imagePanel.getImageURL(), "_blank", "menubar=no,toolbar=no,directories=no,personalbar=no,"+ "location=yes,resizable=yes,scrollbars=yes"); }//from w w w . ja v a 2s . co m }); }*/ String disableScrolling = collection.getInfo().get(KEY_DISABLE_SCROLLING); if (disableScrolling != null && disableScrolling.equalsIgnoreCase("true")) { imagePanel.addAttachmentListener(new AttachmentListener() { public void onLoad(Widget sender) { Window.enableScrolling(false); } public void onUnload(Widget sender) { Window.enableScrolling(true); } }); } slideshow = new Slideshow(imagePanel, collection.getImageNames(), collection.getDirectories(), collection.getImageSizes()); if (configuration.contains("F")) { control = new ControlPanel(slideshow); filmstrip = new Filmstrip(collection); ((ControlPanel) control).swallowFilmstrip(filmstrip, true); } else if (configuration.contains("P")) { control = new ControlPanel(slideshow); } if (configuration.contains("T")) { touch = new TouchControls(slideshow); } if (configuration.contains("C") || configuration.contains("O")) caption = new Caption(slideshow, collection.getCaptions()); }