List of usage examples for com.google.gwt.user.client Window enableScrolling
public static void enableScrolling(boolean enable)
From source file:org.talend.mdm.webapp.journal.client.GenerateContainer.java
License:Open Source License
public static void generateContentPanel() { if (instance != null) { instance.removeFromParent();//from w ww . j a v a 2 s. com } instance = new ContentPanel() { @Override public void onAttach() { monitorWindowResize = true; Window.enableScrolling(true); super.onAttach(); GXT.hideLoadingPanel("loading");//$NON-NLS-1$ } }; instance.setId(Journal.JOURNAL_ID); instance.setHeading(MessagesFactory.getMessages().journal_title()); }
From source file:org.talend.mdm.webapp.recyclebin.client.GenerateContainer.java
License:Open Source License
public static void generateContentPanel() { if (instance != null) { instance.removeFromParent();//from ww w . j av a2 s. c o m } instance = new ContentPanel() { @Override public void onAttach() { monitorWindowResize = true; Window.enableScrolling(true); super.onAttach(); GXT.hideLoadingPanel("loading");//$NON-NLS-1$ } }; instance.setId(RecycleBin.RECYCLEBIN_ID); instance.setHeading(MessagesFactory.getMessages().title()); }
From source file:org.talend.mdm.webapp.welcomeportal.client.GenerateContainer.java
License:Open Source License
public static void generateContentPanel() { if (instance != null) { instance.removeFromParent();/*www .j a v a 2s .c om*/ } instance = new ContentPanel() { @Override public void onAttach() { monitorWindowResize = true; Window.enableScrolling(true); // setSize(Window.getClientWidth(), Window.getClientHeight()); super.onAttach(); GXT.hideLoadingPanel("loading");//$NON-NLS-1$ } // protected void onWindowResize(int width, int height) { // setSize(width, height); // this.doLayout(true); // } }; instance.setId(WelcomePortal.WELCOMEPORTAL_ID); instance.setHeaderVisible(false); instance.setHeading(MessagesFactory.getMessages().welcome_title()); }
From source file:org.thechiselgroup.biomixer.client.workbench.embed.EmbedContainer.java
License:Apache License
public void init() { Window.enableScrolling(false); Window.addResizeHandler(new ResizeHandler() { @Override// w ww. j av a2 s .c o m public void onResize(ResizeEvent event) { if (widget != null) { updateWidgetSize(widget); } } }); informationLabel = new Label(); }
From source file:org.thechiselgroup.choosel.example.components.client.ComponentExampleEntryPoint.java
License:Apache License
private void setupLayout() { Window.enableScrolling(false); layout();// w w w . j ava2s.c o m Window.addResizeHandler(new ResizeHandler() { @Override public void onResize(ResizeEvent event) { layout(); } }); }
From source file:org.thechiselgroup.choosel.workbench.client.embed.EmbedContainer.java
License:Apache License
public void init() { Window.enableScrolling(false); informationLabel = new Label(); rootPanel.add(informationLabel); }
From source file:org.zanata.webtrans.client.AppPresenter.java
License:Open Source License
@Override protected void onBind() { registerHandler(eventBus.addHandler(NotificationEvent.getType(), new NotificationEventHandler() { @Override/*from w ww . ja v a 2 s. c o m*/ public void onNotification(NotificationEvent event) { display.setNotificationMessage(event.getMessage()); } })); Window.enableScrolling(false); documentListPresenter.bind(); translationPresenter.bind(); transFilterPresenter.bind(); display.setDocumentListView(documentListPresenter.getDisplay().asWidget()); display.setTranslationView(translationPresenter.getDisplay().asWidget()); display.setFilterView(transFilterPresenter.getDisplay().asWidget()); display.showInMainView(MainView.Documents); registerHandler(eventBus.addHandler(DocumentSelectionEvent.getType(), new DocumentSelectionHandler() { @Override public void onDocumentSelected(DocumentSelectionEvent event) { if (selectedDocument == null || !event.getDocument().getId().equals(selectedDocument)) { display.setSelectedDocument(event.getDocument()); } display.showInMainView(MainView.Editor); } })); registerHandler(display.getDocumentsLink().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { display.showInMainView(MainView.Documents); } })); registerHandler(display.getSignOutLink().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Application.redirectToLogout(); } })); registerHandler(display.getLeaveWorkspaceLink().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Application.closeWindow(); // As the editor was created at new window, it should be closed // rather than redirected to project home. // Application.redirectToZanataProjectHome(workspaceContext.getWorkspaceId()); } })); display.setUserLabel(identity.getPerson().getName()); display.setWorkspaceNameLabel(workspaceContext.getWorkspaceName()); Window.setTitle( messages.windowTitle(workspaceContext.getWorkspaceName(), workspaceContext.getLocaleName())); }
From source file:org.zanata.webtrans.client.view.AppView.java
License:Open Source License
@Inject public AppView(WebTransMessages messages, DocumentListDisplay documentListView, SearchResultsPresenter.Display searchResultsView, TranslationPresenter.Display translationView, SideMenuDisplay sideMenuView, KeyShortcutPresenter keyShortcutPresenter, final UserWorkspaceContext userWorkspaceContext) { // this must be initialized before uiBinder.createAndBindUi(), or an // exception will be thrown at runtime this.userWorkspaceContext = userWorkspaceContext; this.messages = messages; translationStatsBar = new TransUnitCountBar(userWorkspaceContext, messages, LabelFormat.PERCENT_COMPLETE_HRS, true); // hide until there is a value to translationStatsBar.setVisible(false); projectLink = new Breadcrumb(true, false, Application.getProjectHomeURL(userWorkspaceContext.getWorkspaceContext().getWorkspaceId())); versionLink = new Breadcrumb(false, false, Application.getVersionHomeURL(userWorkspaceContext.getWorkspaceContext().getWorkspaceId())); filesLink = new Breadcrumb(false, false, ""); // filesLink.setHref(Application.getVersionFilesURL(userWorkspaceContext.getWorkspaceContext().getWorkspaceId())); selectedDocumentSpan = new Breadcrumb(false, true, ""); newEditorLink = new Anchor(); newEditorLink.setTarget("_blank"); newEditorLink.setText(messages.newEditorMessage()); newEditorLink.addStyleName("is-invisible"); initWidget(uiBinder.createAndBindUi(this)); readOnlyLabel.setTitle(messages.readOnlyTooltip()); obsoleteLabel.setTitle(messages.obsoleteTooltip()); keyShortcuts.setTitle(messages.availableKeyShortcutsTitle()); sideMenuContainer.add(sideMenuView.asWidget()); searchAndReplaceTab.setTitle(messages.projectWideSearchAndReplace()); documentListTab.setTitle(messages.documentListTitle()); editorTab.setTitle(messages.editor()); content.add(documentListView.asWidget()); content.add(translationView.asWidget()); content.add(searchResultsView.asWidget()); notificationDetailsBox = new NotificationDetailsBox(messages, keyShortcutPresenter); notifications.ensureDebugId("notifications"); Window.enableScrolling(false); }
From source file:py.edu.uca.intercajas.client.menumail.Mail.java
License:Apache License
/** * This method constructs the application user interface by instantiating * controls and hooking up event handler. *///from w w w.j av a 2 s. c o m public void init() { // Inject global styles. GWT.<GlobalResources>create(GlobalResources.class).css().ensureInjected(); // Create the UI defined in Mail.ui.xml. // DockLayoutPanel outer = binder.createAndBindUi(this); // Get rid 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"); // Special-case stuff to make topPanel overhang a bit. // Element topElem = outer.getWidgetContainerElement(topPanel); // topElem.getStyle().setZIndex(2); // topElem.getStyle().setOverflow(Overflow.VISIBLE); // Listen for item selection, displaying the currently-selected item in // the detail area. mailList.setListener(new MailList.Listener() { @Override public void onItemSelected(Destino item) { mailDetail.setItem(item); } @Override public void clear() { mailDetail.clear(); } }); // Add the outer panel to the RootLayoutPanel, so that it will be // displayed. // RootLayoutPanel root = RootLayoutPanel.get(); // root.add(outer); }
From source file:py.edu.uca.intercajas.client.menumail.MenuMail.java
License:Apache License
/** * This method constructs the application user interface by instantiating * controls and hooking up event handler. *///from w w w . j av a 2s . c o m public void init() { // Inject global styles. GWT.<GlobalResources>create(GlobalResources.class).css().ensureInjected(); // Create the UI defined in Mail.ui.xml. DockLayoutPanel outer = binder.createAndBindUi(this); // Get rid 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"); // Special-case stuff to make topPanel overhang a bit. Element topElem = outer.getWidgetContainerElement(topPanel); topElem.getStyle().setZIndex(2); topElem.getStyle().setOverflow(Overflow.VISIBLE); // Listen for item selection, displaying the currently-selected item in // the detail area. // mailList.setListener(new MailList.Listener() { // public void onItemSelected(MailItem item) { // mailDetail.setItem(item); // } // }); // Add the outer panel to the RootLayoutPanel, so that it will be // displayed. //MenuMain PRINCIPAL RootLayoutPanel.get().add(outer); }