public ScrollableTabItem(final String tabName) { this(new ScrollPanel(), tabName, false); }
ScrollPanel scrollable = new ScrollPanel(); scrollable.getElement().setTabIndex(-1); final Widget pager = createPager(view);
ScrollPanel myScrollPanel = new ScrollPanel(); myScrollPanel.setSize("2112px", "150px"); // Arbitrary width. myScrollPanel.getElement().getStyle().setProperty("width", "100%"); // or "auto"
@Inject public ModuleInfoPickerTableView() { modulePicker = init( createTable() ); initWidget( new ScrollPanel(modulePicker) ); }
public Widget build() { DockLayoutPanel wrapper = new DockLayoutPanel(Style.Unit.PX); wrapper.addSouth(options, 38); ScrollPanel scroll = new ScrollPanel(content); wrapper.add(scroll); return wrapper; } }
FlowPanel headerPanel = new FlowPanel(); headerPanel.setWidth("100%"); ScrollPanel bodyPanel = new ScrollPanel(); DockLayoutPanel myApp = new DockLayoutPanel(Unit.PX); myApp.addNorth(headerPanel, 100); myApp.add(bodyPanel); RootLayoutPanel.get().add();
contactHorizontalScrollPanel = new ScrollPanel(); HorizontalPanel hPanel = new HorizontalPanel(); for (int i = 0; i < 5; i++) { Button btn = new Button("" + i); hPanel.add(btn); } contactHorizontalScrollPane.setWidget(hPanel);
public WSAbstractGrid(boolean scrollable, GridType type) { this.type = type; table = new FlexTable(); table.setStylePrimaryName("WSGrid"); table.insertRow(0); scrollPanel = new ScrollPanel(); initWidget(scrollPanel); scrollPanel.setAlwaysShowScrollBars(scrollable); setScrollable(scrollable); scrollPanel.add(table); tableIndex = new ArrayList<ArrayList<WSCell>>(); tableIndex.add(new ArrayList<WSCell>()); setHeight("20px"); }
private void setup() { materializedPanel.setStyleName( "inversePanel" ); materializedPanel.setOpen( true ); final FlowPanel innerPanel = new FlowPanel(); Collections.sort( instanceList, new Comparator<EIInstanceMinimal>() { @Override public int compare(final EIInstanceMinimal instance1, final EIInstanceMinimal instance2) { return ( instance1.getInstanceLabel().compareToIgnoreCase( instance2.getInstanceLabel() ) ); } } ); // populate innerPanel with resources in the list: displayResults( instanceList, innerPanel ); if (instanceList.size() > PAGE_SIZE) { // too big to fit. Wrap it in a scroller: ScrollPanel scrollPanel = new ScrollPanel( innerPanel ); scrollPanel.setHeight( Integer.toString( PAGE_SIZE * PX_PER_LINE ) + "px" ); materializedPanel.add( scrollPanel ); } else { materializedPanel.add( innerPanel ); } }
private void initializeUserInterface() { setIsGroup(true); setGroupTitle(i18n.timeseriesMetadataTable()); addMember(new ScrollPanel(metadataTable)); updateTimeSeriesMetadata(); }
@Inject public BuildSummaryViewImpl() { builderSummary = new Label(); moduleSummary = initModuleSummary( createModuleTable() ); VerticalPanel layout; layout = new VerticalPanel(); layout.add( builderSummary ); layout.add( moduleSummary ); ScrollPanel container = new ScrollPanel(); container.add( layout ); initWidget( container ); }
public SimpleFormPanel(ResourceLocator locator, StateProvider stateProvider, FieldContainerFactory containerFactory, FormFieldWidgetFactory widgetFactory, boolean withScroll) { FormPanelStyles.INSTANCE.ensureInjected(); Preconditions.checkNotNull(locator); Preconditions.checkNotNull(containerFactory); Preconditions.checkNotNull(widgetFactory); this.locator = locator; this.model = new FormModel(locator, stateProvider); this.withScroll = withScroll; this.relevanceHandler = new RelevanceHandler(this); this.widgetCreator = new FormWidgetCreator(model, containerFactory, widgetFactory); this.panel = new FlowPanel(); this.panel.setStyleName(FormPanelStyles.INSTANCE.formPanel()); this.panel.addStyleName("hide-button-on-over"); this.scrollPanel = new ScrollPanel(panel); this.formActions = new FormActions(locator, model); this.panelFiller = new PanelFiller(panel, model, widgetCreator, relevanceHandler); }
/** {@inheritDoc} */ protected Panel getScrollPanel() { if (scrollPanel == null) { scrollPanel = new ScrollPanel(getBodyTable()); DOM.setStyleAttribute(scrollPanel.getElement(), "overflow", ""); DOM.setStyleAttribute(scrollPanel.getElement(), "overflowX", "hidden"); DOM.setStyleAttribute(scrollPanel.getElement(), "overflowY", "auto"); } return scrollPanel; }
private Widget createDomainList(String description) { VerticalPanel panel = new VerticalPanel(); panel.setStyleName("rhs-content-panel"); ScrollPanel scrollPanel = new ScrollPanel(panel); entityEditor = makeEntityEditor(); entityEditor.setDescription(description); Widget editorWidget = entityEditor.setIncludeTools(true).asWidget(); panel.add(editorWidget); return scrollPanel; }
/** * Getter for property 'scrollPanel'. * * @return Value for property 'scrollPanel'. */ public ScrollPanel getScrollPanel() { if (scrollPanel == null) { scrollPanel = new ScrollPanel(); scrollPanel.setAlwaysShowScrollBars(false); scrollPanel.setWidget(getList()); DOM.setStyleAttribute(scrollPanel.getElement(), "overflowX", "hidden"); scrollPanel.addScrollHandler(getListScrollHandler()); } return scrollPanel; }
public RHSContentPanel(String title) { super(); FakeTabPanel titleBar = new FakeTabPanel(title); super.add(titleBar); super.setWidgetTopHeight(titleBar, 0, Style.Unit.PX, 40, Style.Unit.PX); ScrollPanel scroll = new ScrollPanel(); delegate = new VerticalPanel(); delegate.setStyleName("rhs-content-panel"); scroll.add(delegate); super.add(scroll); super.setWidgetTopHeight(scroll, 40, Style.Unit.PX, 100, Style.Unit.PCT); }
public ResourcePage(EventBus eventBus, ResourceLocator resourceLocator, PageId pageId, StateProvider stateProvider) { this.eventBus = eventBus; this.locator = resourceLocator; this.pageId = pageId; this.stateProvider = stateProvider; Icons.INSTANCE.ensureInjected(); this.loadingPanel = new LoadingPanel<>(new PageLoadingPanel()); this.container = new SimplePanel(loadingPanel.asWidget()); this.container.addStyleName("container"); this.scrollPanel = new ScrollPanel(container); this.scrollPanel.addStyleName("bs"); }
/** {@inheritDoc} */ @Override public void go(AcceptsOneWidget container) { VerticalPanel panel = new VerticalPanel(); panel.setSize("100%", "100%"); panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); panel.add(getImage()); editorView = new ScrollPanel(panel); editorView.getElement().getFirstChildElement().getStyle().setHeight(100, Unit.PCT); container.setWidget(editorView); }
/** * @return the widget */ public Widget asWidget() { _bindingConfiguration = DOM.createElement("pre"); //$NON-NLS-1$ Element code = DOM.createElement("code"); //$NON-NLS-1$ code.appendChild(_bindingConfiguration); HTML html = new HTML(); html.getElement().appendChild(code); html.setSize("100%", "100%"); //$NON-NLS-1$ //$NON-NLS-2$ ScrollPanel panel = new ScrollPanel(); panel.setStyleName("fill-layout-width"); //$NON-NLS-1$ panel.add(html); panel.setSize("100%", "100%"); //$NON-NLS-1$ //$NON-NLS-2$ return panel; }
public ColumnActionSelector(List<MapExistingAction> actions, ImportModel importModel, final Panel fieldSelectorPanel) { this.importModel = importModel; FlowPanel panel = new FlowPanel(); ignoreButton = createRadioButton(SafeHtmlUtils.fromString(I18N.CONSTANTS.ignoreColumnAction()), IgnoreAction.INSTANCE); ignoreButton.addStyleName(ColumnMappingStyles.INSTANCE.stateIgnored()); ignoreButton.setValue(true); panel.add(ignoreButton); for (final MapExistingAction action : actions) { final FormField formField = action.getTarget().getFormField(); final String plainLabel = action.getTarget().getLabel(); SafeHtml label = !formField.isRequired() ? SafeHtmlUtils.fromString(plainLabel) : TEMPLATE.html(plainLabel); RadioButton button = createRadioButton(label, action); panel.add(button); } scrollPanel = new ScrollPanel(panel); initWidget(scrollPanel); }