scrollable.addStyleName(style.cellBrowserFirstColumn());
private void updatePermanentAppGroupBorder() { permanentAppScrollPanel.removeStyleName(PERMANENT_APP_GROUP_BORDER_BOTTOM); permanentAppScrollPanel.removeStyleName(PERMANENT_APP_GROUP_BORDER_TOP); int maxScrollPosition = getPermanentAppGroupMaxScrollTop(); if (maxScrollPosition > 0) { int verticalScrollPosition = permanentAppScrollPanel.getVerticalScrollPosition(); if (verticalScrollPosition > 0) { permanentAppScrollPanel.addStyleName(PERMANENT_APP_GROUP_BORDER_TOP); } if (verticalScrollPosition < maxScrollPosition) { permanentAppScrollPanel.addStyleName(PERMANENT_APP_GROUP_BORDER_BOTTOM); } } }
public AppLauncherViewImpl(final EventBus eventBus, Function<String, Icon> iconResolver) { super(); this.eventBus = eventBus; this.iconResolver = iconResolver; add(temporarySectionsBar); this.eventBus.addHandler(AppActivationEvent.TYPE, this); permanentAppScrollPanel.getElement().getStyle().setOverflowX(Style.Overflow.HIDDEN); permanentAppScrollPanel.addStyleName(PERMANENT_APP_SCROLL_PANEL); permanentAppScrollPanel.add(permanentAppContainer); permanentAppScrollPanel.addScrollHandler(new ScrollHandler() { @Override public void onScroll(ScrollEvent event) { updatePermanentAppGroupBorder(); } }); add(permanentAppScrollPanel); }
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"); }
private ScrollPanel createMainPanel() { final ScrollPanel result = new ScrollPanel(); result.addStyleName(renderer.getStyle(JrsGxtDateCss.DAYS_BODY)); result.add(daysPanel = new AbsolutePanel()); daysPanel.addStyleName(renderer.getStyle(JrsGxtDateCss.DAYS_PANEL)); // Add hours panel daysPanel.add(hour = new HourPanel<>(renderer)); // Add days panel for (int i = 0; i < daysShown; i++) { final int tagAmmoun = supportTags ? countTags() : 1; for (int j = 0; j < tagAmmoun; j++) { final DayPanel<T, TT> dayPanel = new DayPanel<>(renderer, dragController); if (i == 0 && j == 0) { dayPanel.addStyleName(renderer.getStyle(JrsGxtDateCss.DAY_PANEL_FIRST)); } if (supportTags) { dayPanel.setTag(tags.get(j)); } if (workHours != null) { dayPanel.setWorkHours(tagsWorkHours.getOrDefault(dayPanel.getTag(), workHours)); } dayPanels.add(dayPanel); daysPanel.add(dayPanel); } } return result; }
public ModalMessageDialog(XWikiGWTApp app, String title, String msg, String styleName){ super(false, true); this.app = app; this.addStyleName("dialog-message"); this.setText(title); if (styleName!=null) { ScrollPanel scroll = new ScrollPanel(); scroll.add(new Label(msg)); scroll.addStyleName(styleName); this.add(scroll); } else { this.add(new Label(msg)); } Button closeButton = new Button(this.app.getTranslation("Ok")); closeButton.addClickListener(new ClickListener(){ @Override public void onClick(Widget arg0) { ModalMessageDialog.this.hide(); } }); this.add(closeButton); this.show(); } }
scrollable.addStyleName(style.cellBrowserFirstColumn());
scrollable.addStyleName(style.cellBrowserFirstColumn());
scroller.addStyleName(THUMBNAIL_SCROLLER_STYLE_NAME); scroller.addScrollHandler(scrollHandler);