com.google.gwt.user.client.ui.ScrollPanel Java Examples
The following examples show how to use
com.google.gwt.user.client.ui.ScrollPanel.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CourseFinderMultipleCourses.java From unitime with Apache License 2.0 | 6 votes |
@Override public void setCourseDetails(CourseFinderCourseDetails... details) { iDetails = details; int tabIndex = 0; for (CourseFinderCourseDetails detail: iDetails) { ScrollPanel panel = new ScrollPanel(detail.asWidget()); panel.setStyleName("unitime-ScrollPanel-inner"); panel.addStyleName("course-info"); iCourseDetailsTabBar.addTab(detail.getName(), true); Character ch = UniTimeHeaderPanel.guessAccessKey(detail.getName()); if (ch != null) iTabAccessKeys.put(ch, tabIndex); tabIndex++; } selectLastTab(); }
Example #2
Source File: ColumnProfileView.java From core with GNU Lesser General Public License v2.1 | 6 votes |
@Override public void setPreview(final SafeHtml html) { if(locked) return; if ( (contentCanvas.getWidgetCount()>0 && !contentCanvas.getElement().hasAttribute("presenter-view")) || (contentCanvas.getWidgetCount() ==0) ) { contentCanvas.clear(); contentCanvas.add(new ScrollPanel(new HTML(html))); contentCanvas.getElement().removeAttribute("presenter-view"); } }
Example #3
Source File: PortsView.java From core with GNU Lesser General Public License v2.1 | 6 votes |
public Widget asWidget() { VerticalPanel layout = new VerticalPanel(); layout.setStyleName("fill-layout-width"); StaticHelpPanel helpPanel = new StaticHelpPanel(Console.CONSTANTS.portDescription()); layout.add(helpPanel.asWidget()); socketTable = new SocketTable(); DefaultCellTable tableWidget = socketTable.asWidget(); ScrollPanel scroll = new ScrollPanel(tableWidget); layout.add(scroll); DefaultPager pager = new DefaultPager(); pager.setDisplay(tableWidget); layout.add(pager); return layout; }
Example #4
Source File: AccessControlProviderDialog.java From core with GNU Lesser General Public License v2.1 | 6 votes |
@Override public Widget asWidget() { VerticalPanel layout = new VerticalPanel(); layout.setStyleName("window-content"); SafeHtmlBuilder builder = new SafeHtmlBuilder(); builder.append(Console.MESSAGES.access_control_provider()); layout.add(new HTML(builder.toSafeHtml())); DialogueOptions options = new DialogueOptions( Console.CONSTANTS.common_label_done(), event -> presenter.closeWindow(), Console.CONSTANTS.common_label_cancel(), event -> presenter.closeWindow() ); options.showCancel(false); return new WindowContentBuilder(new ScrollPanel(layout), options).build(); }
Example #5
Source File: WorkflowManager.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * WorkflowManager */ public WorkflowManager() { workflowGraph = new Image(); scrollGraphPanel = new ScrollPanel(workflowGraph); toolbar = new TabToolbarWorkflow(this); workflowTable = new WorkflowTable(this); workflowDetailTable = new WorkflowDetailTable(); vPanel = new VerticalPanel(); vPanel.add(toolbar); // Always visible toolbar.setHeight("" + TOOLBAR_HEADER + "px"); toolbar.setWidth("100%"); vPanel.setCellHeight(toolbar, "" + TOOLBAR_HEADER + "px"); initWidget(vPanel); }
Example #6
Source File: QueryView.java From lumongo with Apache License 2.0 | 6 votes |
public QueryView() { splitPanel = new MaterialSplitPanel(); splitPanel.setHeight(Window.getClientHeight() - 102 + "px"); splitPanel.setBarPosition(25); leftPanel = new MaterialPanel(); leftPanel.setBackgroundColor(Color.WHITE); leftPanel.setGrid("s6 l3"); leftScrollPanel = new ScrollPanel(); leftScrollPanel.setHeight(Window.getClientHeight() - 130 + "px"); rightPanel = new MaterialPanel(); rightPanel.setBackgroundColor(Color.GREY_LIGHTEN_2); rightPanel.setGrid("s6 l9"); rightScrollPanel = new ScrollPanel(); rightScrollPanel.setHeight(Window.getClientHeight() - 130 + "px"); splitPanel.add(leftPanel); splitPanel.add(rightPanel); add(splitPanel); }
Example #7
Source File: CourseFinderCourses.java From unitime with Apache License 2.0 | 6 votes |
@Override public void setCourseDetails(CourseFinderCourseDetails... details) { iDetails = details; int tabIndex = 0; for (CourseFinderCourseDetails detail: iDetails) { ScrollPanel panel = new ScrollPanel(detail.asWidget()); panel.setStyleName("unitime-ScrollPanel-inner"); panel.addStyleName("course-info"); iCourseDetailsTabBar.addTab(detail.getName(), true); Character ch = UniTimeHeaderPanel.guessAccessKey(detail.getName()); if (ch != null) iTabAccessKeys.put(ch, tabIndex); tabIndex++; } selectLastTab(); }
Example #8
Source File: SimpleForm.java From unitime with Apache License 2.0 | 6 votes |
public int addRow(Widget header, Widget widget, int colSpan) { header.addStyleName("label-cell"); int row = getRowCount(); setWidget(row, 0, header); getCellFormatter().setStyleName(row, 0, "label-td"); if (widget instanceof HasMobileScroll) { ScrollPanel scroll = new ScrollPanel(widget); scroll.addStyleName("table-cell"); setWidget(row, 1, scroll); getCellFormatter().setStyleName(row, 1, "table-td"); } else { widget.addStyleName("widget-cell"); setWidget(row, 1, widget); getCellFormatter().setStyleName(row, 1, "widget-td"); } if (colSpan != 1) getFlexCellFormatter().setColSpan(row, 1, colSpan); if (header.getElement().getId() == null || header.getElement().getId().isEmpty()) header.getElement().setId(DOM.createUniqueId()); if (widget instanceof UniTimeWidget) Roles.getTextboxRole().setAriaLabelledbyProperty(((UniTimeWidget)widget).getWidget().getElement(), Id.of(header.getElement())); else Roles.getTextboxRole().setAriaLabelledbyProperty(widget.getElement(), Id.of(header.getElement())); return row; }
Example #9
Source File: HistorySearch.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * HistorySearch */ public HistorySearch() { stackPanel = new StackLayoutPanel(Unit.PX); searchSaved = new SearchSaved(); userNews = new UserNews(); scrollSearchSavedPanel = new ScrollPanel(); scrollUserNewsSavedPanel = new ScrollPanel(); scrollSearchSavedPanel.addStyleName("okm-PanelSelected"); scrollUserNewsSavedPanel.addStyleName("okm-PanelSelected"); scrollSearchSavedPanel.add(searchSaved); scrollSearchSavedPanel.setSize("100%", "100%"); scrollUserNewsSavedPanel.add(userNews); scrollUserNewsSavedPanel.setSize("100%", "100%"); stackPanel.add(scrollSearchSavedPanel, Util.createHeaderHTML("img/icon/stackpanel/find.gif", Main.i18n("leftpanel.label.stored.search")), true, 22); stackPanel.add(scrollUserNewsSavedPanel, Util.createHeaderHTML("img/icon/news.gif", Main.i18n("leftpanel.label.user.search")), true, 22); stackPanel.showWidget(0); stackPanel.setStyleName("okm-StackPanel"); stackPanel.addStyleName("okm-DisableSelect"); initWidget(stackPanel); }
Example #10
Source File: FlowForm.java From unitime with Apache License 2.0 | 6 votes |
public int addRow(Widget header, Widget... widgets) { if (header.getElement().getId() == null || header.getElement().getId().isEmpty()) header.getElement().setId(DOM.createUniqueId()); P head = new P(DOM.createSpan(), "header-cell"); head.add(header); add(head); for (Widget widget: widgets) { P body = new P(DOM.createSpan(), "content-cell"); add(body); if (widget instanceof UniTimeTable) { ScrollPanel scroll = new ScrollPanel(widget); scroll.addStyleName("scroll"); body.add(scroll); } else { body.add(widget); } } if (widgets.length > 0) { if (widgets[0] instanceof UniTimeWidget) Roles.getTextboxRole().setAriaLabelledbyProperty(((UniTimeWidget)widgets[0]).getWidget().getElement(), Id.of(header.getElement())); else Roles.getTextboxRole().setAriaLabelledbyProperty(widgets[0].getElement(), Id.of(header.getElement())); } return getWidgetCount() - widgets.length; }
Example #11
Source File: HornetqFinderView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { previewCanvas.clear(); previewCanvas.add(new ScrollPanel(new HTML(html))); } }); }
Example #12
Source File: SecDomainFinderView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { previewCanvas.clear(); previewCanvas.add(new ScrollPanel(new HTML(html))); } }); }
Example #13
Source File: ElytronFinderView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(SafeHtml html) { Scheduler.get().scheduleDeferred(() -> { previewCanvas.clear(); previewCanvas.add(new ScrollPanel(new HTML(html))); }); }
Example #14
Source File: CacheFinder.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { previewCanvas.clear(); previewCanvas.add(new ScrollPanel(new HTML(html))); } }); }
Example #15
Source File: PicketLinkFinderView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { Scheduler.get().scheduleDeferred(() -> { previewCanvas.clear(); previewCanvas.add(new ScrollPanel(new HTML(html))); }); }
Example #16
Source File: CoreQueueEditor.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public Widget asWidget() { LayoutPanel layout = new LayoutPanel(); VerticalPanel panel = new VerticalPanel(); panel.setStyleName("rhs-content-panel"); ScrollPanel scroll = new ScrollPanel(panel); layout.add(scroll); layout.setWidgetTopHeight(scroll, 0, Style.Unit.PX, 100, Style.Unit.PCT); serverName = new HTML("Replace me"); serverName.setStyleName("content-header-label"); panel.add(serverName); panel.add(new ContentDescription("Configuration for core queues.")); TabPanel bottomLayout = new TabPanel(); bottomLayout.addStyleName("default-tabpanel"); bottomLayout.addStyleName("master_detail-detail"); queueList = new CoreQueueList(presenter); bottomLayout.add(queueList.asWidget(), "Queues"); bottomLayout.selectTab(0); panel.add(bottomLayout); return layout; }
Example #17
Source File: JMSEditor.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public Widget asWidget() { LayoutPanel layout = new LayoutPanel(); VerticalPanel panel = new VerticalPanel(); panel.setStyleName("rhs-content-panel"); ScrollPanel scroll = new ScrollPanel(panel); layout.add(scroll); layout.setWidgetTopHeight(scroll, 0, Style.Unit.PX, 100, Style.Unit.PCT); serverName = new HTML("Replace me"); serverName.setStyleName("content-header-label"); panel.add(serverName); panel.add(new ContentDescription("Configuration for JMS queues and topics.")); TabPanel bottomLayout = new TabPanel(); bottomLayout.addStyleName("default-tabpanel"); bottomLayout.addStyleName("master_detail-detail"); queueList = new JMSQueueList(presenter); bottomLayout.add(queueList.asWidget(), "Queues"); topicList = new JMSTopicList(presenter); bottomLayout.add(topicList.asWidget(), "Topics"); bottomLayout.selectTab(0); panel.add(bottomLayout); return layout; }
Example #18
Source File: UndertowFinderView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(SafeHtml html) { Scheduler.get().scheduleDeferred(() -> { previewCanvas.clear(); previewCanvas.add(new ScrollPanel(new HTML(html))); }); }
Example #19
Source File: ResourceAdapterFinderView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { previewCanvas.clear(); previewCanvas.add(new ScrollPanel(new HTML(html))); } }); }
Example #20
Source File: DomainRuntimeView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { if (presenter.getPlaceManager().getCurrentPlaceRequest().getNameToken().equals(serverColumn.getToken())) { Scheduler.get().scheduleDeferred(() -> { contentCanvas.clear(); contentCanvas.add(new ScrollPanel(new HTML(html))); }); } }
Example #21
Source File: DeploymentBrowseContentView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public Widget createWidget() { ScrollPanel scroller = new ScrollPanel(); panel.setStyleName("browse-content"); scroller.add(panel); return scroller.asWidget(); }
Example #22
Source File: DomainDeploymentFinderView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { Scheduler.get().scheduleDeferred(() -> { contentCanvas.clear(); contentCanvas.add(new ScrollPanel(new HTML(html))); }); }
Example #23
Source File: DiagramController.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public ScrollPanel getViewAsScrollPanel() { scrollPanel.addScrollHandler(new ScrollHandler() { @Override public void onScroll(ScrollEvent event) { unsynchronizedShapes(); } }); return scrollPanel; }
Example #24
Source File: StandaloneDeploymentFinderView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { Scheduler.get().scheduleDeferred(() -> { contentCanvas.clear(); contentCanvas.add(new ScrollPanel(new HTML(html))); }); }
Example #25
Source File: StandaloneRuntimeView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void setPreview(final SafeHtml html) { Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() { @Override public void execute() { previewCanvas.clear(); previewCanvas.add(new ScrollPanel(new HTML(html))); } }); }
Example #26
Source File: RepositoryPresenter.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void onVisualize() { Dialog dialog = new DialogXML().unmarshall(getView().getText()); DialogVisualization visualization = new DialogVisualization(dialog); DefaultWindow window = new DefaultWindow("Dialog: "+dialog.getId()); window.setWidth(800); window.setHeight(600); ScrollPanel widgets = new ScrollPanel(visualization.getChart()); window.setWidget(widgets); window.center(); }
Example #27
Source File: SimpleForm.java From unitime with Apache License 2.0 | 5 votes |
public int addRow(Widget widget) { int row = getRowCount(); getFlexCellFormatter().setColSpan(row, 0, iColSpan); if (widget instanceof HasMobileScroll) { ScrollPanel scroll = new ScrollPanel(widget); scroll.addStyleName("table-row"); setWidget(row, 0, scroll); } else { setWidget(row, 0, widget); } return row; }
Example #28
Source File: SecurityView.java From core with GNU Lesser General Public License v2.1 | 5 votes |
public void display(SecurityContext securityContext) { layout.clear(); if(securityContext instanceof SecurityContextImpl) { layout.add(new ScrollPanel(new HTML(((SecurityContextImpl)securityContext).asHtml()))); } else { layout.add(new HTML("Are you using the read-only context?")); } }
Example #29
Source File: InfoPanel.java From geomajas-gwt2-quickstart-application with GNU Affero General Public License v3.0 | 5 votes |
/** * Init the info panel. */ private void initInfoPanel() { infoPopupPanel.addStyleName(ApplicationResource.INSTANCE.css().infoPopupPanel()); HTMLPanel infoPopupPanelWrapper = new HTMLPanel(""); closeInfoPopupPanelButton.addStyleName(ApplicationResource.INSTANCE.css().closePopupPanelButton()); closeInfoPopupPanelButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { infoPopupPanel.hide(); ApplicationService.getInstance().setTooltipShowingAllowed(true); } }); HTMLPanel closeInfoButtonContainer = new HTMLPanel(""); closeInfoButtonContainer.addStyleName(ApplicationResource.INSTANCE.css().popupPanelHeader()); Label infoTitle = new Label(msg.infoPanelTitle()); closeInfoButtonContainer.add(infoTitle); closeInfoButtonContainer.add(closeInfoPopupPanelButton); infoPopupPanelWrapper.add(closeInfoButtonContainer); infoPopupPanelContent = new HTMLPanel(""); infoPopupPanelContent.addStyleName(ApplicationResource.INSTANCE.css().infoPopupPanelContent()); ScrollPanel infoPopupPanelScroll = new ScrollPanel(); infoPopupPanelScroll.addStyleName(ApplicationResource.INSTANCE.css().infoPopupPanelScroll()); infoPopupPanelScroll.add(infoPopupPanelContent); infoPopupPanelWrapper.add(infoPopupPanelScroll); infoPopupPanel.add(infoPopupPanelWrapper); infoPopupPanel.hide(); }
Example #30
Source File: StandalonePanel.java From core with GNU Lesser General Public License v2.1 | 5 votes |
@Override public Widget asWidget() { VerticalPanel panel = new VerticalPanel(); panel.setStyleName("rhs-content-panel"); panel.add(patchInfoPanel); DefaultTabLayoutPanel tabLayoutPanel = new DefaultTabLayoutPanel(40, Style.Unit.PX); tabLayoutPanel.addStyleName("default-tabpanel"); tabLayoutPanel.add(new ScrollPanel(panel), "Patch Management"); return tabLayoutPanel; }