public void setContentStyleName(String styleName) { content.setStyleName(styleName); }
SimplePanel myPanel=new SimplePanel(); myPanel.setStyleName("dashedBorder");
messagesPanel.add(emptyTableWidgetContainer); messagesPanel.add(loadingIndicatorContainer); loadingIndicatorContainer.setStyleName(style.cellTableLoading());
public void add(final Widget w) { if ( !alreadyShowing ) { final SimplePanel childSimp = new SimplePanel(); childSimp.setStyleName( "center" ); childSimp.add( w ); panel.add( childSimp ); alreadyShowing = true; } } }
private void showBackdrop() { if(backdrop == null) { backdrop = new SimplePanel(); RootPanel.get().add(backdrop); } backdrop.setStyleName("modal-backdrop fade in"); backdrop.getElement().getStyle().setDisplay(Style.Display.BLOCK); }
/** * Create icon wrapper that contains an icon. * * @return {@link SimplePanel} as icon wrapper */ private SimplePanel createIconWidget() { SimplePanel iconWrapper = new SimplePanel(); iconWrapper.setStyleName(resources.notificationCss().notificationIconWrapper()); iconWrapper.ensureDebugId(ICON_DBG_ID + notification.getId()); return iconWrapper; }
/** * Create icon wrapper that contains an icon. * * @return {@link SimplePanel} as icon wrapper */ private SimplePanel createIconWidget() { SimplePanel iconWrapper = new SimplePanel(); iconWrapper.setStyleName(resources.notificationCss().notificationPopupIconWrapper()); iconWrapper.ensureDebugId(ICON_DBG_ID + notification.getId()); return iconWrapper; }
public BasicProgressBar() { this.setWidth("100px"); this.setStyleName("prgbar-back"); this.add(statusBar); this.add(statusMsg); statusBar.setStyleName("prgbar-done"); statusBar.setWidth("0px"); statusMsg.setStyleName("prgbar-msg"); }
public static SimplePanel createDrape() { SimplePanel drapePanel = new SimplePanel(); Style drapeStyle = drapePanel.getElement().getStyle(); drapeStyle.setProperty("position", "absolute"); drapeStyle.setProperty("top", "0px"); drapeStyle.setProperty("left", "0px"); drapePanel.setWidth("100%"); drapePanel.setHeight("100%"); drapePanel.setStyleName("WSWindowPanel-drape"); Effects.setOpacity(drapePanel.getElement(), 20); return drapePanel; }
/** * Create message widget that contains notification message. * * @return {@link SimplePanel} as message wrapper */ private SimplePanel createContentWidget() { SimplePanel messageWrapper = new SimplePanel(); Label messageLabel = new Label(); messageWrapper.add(messageLabel); messageWrapper.setStyleName(resources.notificationCss().notificationPopupMessageWrapper()); messageWrapper.ensureDebugId(MESSAGE_WRAPPER_DBG_ID + notification.getId()); return messageWrapper; }
/** * Create message widget that contains notification message. * * @return {@link SimplePanel} as message wrapper */ private SimplePanel createContentWidget() { SimplePanel messageWrapper = new SimplePanel(); Label messageLabel = new Label(); messageWrapper.add(messageLabel); messageWrapper.setStyleName(resources.notificationCss().notificationMessageWrapper()); messageWrapper.ensureDebugId(MESSAGE_WRAPPER_DBG_ID + notification.getId()); return messageWrapper; }
/** * Create title widget that contains notification title. * * @return {@link SimplePanel} as title wrapper */ private SimplePanel createTitleWidget() { SimplePanel titleWrapper = new SimplePanel(); Label titleLabel = new Label(); titleWrapper.add(titleLabel); titleWrapper.setStyleName(resources.notificationCss().notificationPopupTitleWrapper()); titleWrapper.ensureDebugId(TITLE_DBG_ID + notification.getId()); return titleWrapper; }
/** * Create title widget that contains notification title. * * @return {@link SimplePanel} as title wrapper */ private SimplePanel createTitleWidget() { SimplePanel titleWrapper = new SimplePanel(); Label titleLabel = new Label(); titleWrapper.add(titleLabel); titleWrapper.setStyleName(resources.notificationCss().notificationTitleWrapper()); titleWrapper.ensureDebugId(TITLE_DBG_ID + notification.getId()); return titleWrapper; }
public DebugPanelWidget(DebugPanelListener listener, final boolean showReset, Component... components) { this.listener = listener; this.components = components; initWidget(panel = new SimplePanel()); panel.setStyleName(Utils.style() + "-panel"); showLink = new CommandLink("Show Debug Panel", new Command() { //@Override public void execute() { show(showReset); } }); showLink.setStyleName(Utils.style() + "-link"); panel.add(showLink); }
public WorkPanel() { setElement(vPanel.getElement()); vPanel.setWidth("100%"); SimplePanel title = new SimplePanel(); vPanel.add(title); vPanel.add(mainPanel); title.setHeight("25px"); vPanel.setCellHeight(title, "25px"); titleLabel.setStyleName("WS-WorkPanel-title-label"); title.setStyleName("WS-WorkPanel-title"); vPanel.setStyleName("WS-WorkPanel-area"); titleInternal.add(titleLabel); title.setWidget(titleInternal); getElement().getStyle().setProperty("overflow", "scroll"); }
/** * Create close icon widget that contains an close notification icon. * * @return {@link SimplePanel} as close icon wrapper */ private SimplePanel createCloseWidget() { SimplePanel closeWrapper = new SimplePanel(); SVGImage closeImage = new SVGImage(resources.closeIcon()); closeImage.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { delegate.onClose(notification); } }); closeWrapper.add(closeImage); closeWrapper.setStyleName(resources.notificationCss().notificationCloseButtonWrapper()); closeImage.ensureDebugId(CLOSE_ICON_DBG_ID + notification.getId()); return closeWrapper; }
public EnableHyperlink(String text, boolean asHTML, String historyToken) { link = historyToken != null ? new Hyperlink(text, asHTML, historyToken) : new Anchor(text); html = new HTML(); panel.setStyleName(WidgetsCSS.C_hyperlink); html.setStyleName(link.getStyleName()); html.addStyleDependentName("disabled"); if (asHTML) { html.setHTML(text); } else { html.setText(text); } panel.setWidget(link); initWidget(panel); } /*
/** * Create close icon widget that contains an close notification icon. * * @return {@link SimplePanel} as close icon wrapper */ private SimplePanel createCloseWidget() { SimplePanel closeWrapper = new SimplePanel(); SVGImage closeImage = new SVGImage(resources.closeIcon()); closeImage.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { delegate.onClose(notification); } }); closeWrapper.add(closeImage); closeWrapper.setStyleName(resources.notificationCss().notificationPopupCloseButtonWrapper()); closeWrapper.ensureDebugId(CLOSE_ICON_DBG_ID + notification.getId()); return closeWrapper; }
@Override public void onModuleLoad() { populateMenu(); // Create view container final SimplePanel container = new SimplePanel(); container.setStyleName("container requestor-showcase-container"); RootPanel.get().add(container); // Main Factory (Dependency Injector) ShowcaseClientFactory clientFactory = CLIENT_FACTORY; EventBus eventBus = clientFactory.getEventBus(); PlaceController placeController = clientFactory.getPlaceController(); // Activity-Place binding ActivityMapper activityMapper = new ShowcaseActivityMapper(); ActivityManager activityManager = new ActivityManager(activityMapper, eventBus); activityManager.setDisplay(container); // Place-History binding PlaceHistoryMapper historyMapper = new ShowcasePlaceHistoryMapper(); PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper); historyHandler.register(placeController, eventBus, defaultPlace); // Add Loading widget RootPanel.get().add(new Loading(eventBus)); // Goes to place represented on URL or default place historyHandler.handleCurrentHistory(); }
private void init() { mainPanel.setStyleName(LightBoxStyle.MAIN_PANEL.toString()); titlePanel.setStyleName(LightBoxStyle.TITLE_PANEL.toString()); closeLink.setStyleName(LightBoxStyle.CLOSE_LINK.toString()); scrollPanel.setStyleName(LightBoxStyle.SCROLL_PANEL.toString()); buttonPanel.setStyleName(LightBoxStyle.BUTTON_PANEL.toString()); setGlassEnabled(true); super.setWidget(mainPanel); mainPanel.addNorth(closeLinkPanel, 1); mainPanel.addNorth(titlePanel, 0); mainPanel.addSouth(buttonPanel, BUTTON_HEIGHT); mainPanel.add(scrollPanel); closeLinkPanel.add(closeLink); //parent element sets overflow to hidden to allow background and other css styling on the titlePanel Element titlePanelContainer = mainPanel.getWidgetContainerElement(titlePanel); titlePanelContainer.getStyle().setOverflow(Overflow.VISIBLE); //parent element sets overflow to hidden, must reset overflow to visible to show the 'closeLink' Element closeLinkPanelContainer = mainPanel.getWidgetContainerElement(closeLinkPanel); closeLinkPanelContainer.getStyle().setOverflow(Overflow.VISIBLE); scrollPanel.add(contentPanel); installResizeHandler(); //super. closeLink.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { hide(); } }); super.setStyleName(LightBoxStyle.LIGHT_BOX.toString()); }