/** * Constructs an empty VerticalLayout. */ public VerticalLayout() { setWidth("100%"); setSpacing(true); setMargin(true); }
@Override public OptionDialogBuilder withWidth(String width) { window.setWidth(width); if (getWidth() < 0) { messageLabel.setWidthUndefined(); layout.setWidthUndefined(); } else { messageLabel.setWidth(100, Sizeable.Unit.PERCENTAGE); layout.setWidth(100, Sizeable.Unit.PERCENTAGE); } return this; }
private ColorPickerPopup() { // Set the layout layout = new VerticalLayout(); layout.setSpacing(false); layout.setMargin(false); layout.setWidth("100%"); layout.setHeight(null); setContent(layout); setStyleName(STYLENAME); setResizable(false); // Create the history history = new ColorPickerHistory(); history.addValueChangeListener(this::colorChanged); }
@Override public MessageDialogBuilder withWidth(String width) { window.setWidth(width); if (getWidth() < 0) { messageLabel.setWidthUndefined(); layout.setWidthUndefined(); } else { messageLabel.setWidth(100, Sizeable.Unit.PERCENTAGE); layout.setWidth(100, Sizeable.Unit.PERCENTAGE); } return this; }
public VerticalLayoutWidget() { vl.setMargin(true); vl.setSpacing(true); vl.setWidth(100, Sizeable.UNITS_PERCENTAGE); }
public void setWidth(int width) { if (width < 0) return; VerticalLayout innerLayout = (VerticalLayout)getContent(); if (!isFull) innerLayout.setWidth(width,Unit.PIXELS); this.width = width; doRememberSize(new int[] {width,height,isFull?1:0}); }
public static VerticalLayout wrapPagedTable(I18NSource messageSource, LocalizedPagedTable table) { VerticalLayout tableCarrier = new VerticalLayout(); tableCarrier.setWidth(100, Sizeable.UNITS_PERCENTAGE); tableCarrier.addComponent(table); tableCarrier.addComponent(tableControls(messageSource, table)); return tableCarrier; }
public static VerticalLayout VERTICAL(final boolean margin, final Component...components) { VerticalLayout layout = new VerticalLayout(); layout.setSpacing(margin); layout.setWidth(100.0f, Unit.PERCENTAGE); for (Component component : components) { if (component != null) { component.setWidth(100.0f, Unit.PERCENTAGE); layout.addComponent(component); } } return layout; }
public void init() { this.setSizeFull(); VerticalLayout layout = new VerticalLayout(); layout.setWidth("100%"); layout.addComponent(createExclusionEventDetailsPanel()); this.setContent(layout); }
private Layout createContent(final String description) { VerticalLayout content = new VerticalLayout(); content.setWidth(100, Unit.PERCENTAGE); Layout footer = createFooter(); Layout mainArea = createMainArea(description); content.addComponent(mainArea); content.addComponent(footer); content.setExpandRatio(mainArea, 1); return content; }
private Layout createContent(final String description) { VerticalLayout content = new VerticalLayout(); content.setWidth(100, Unit.PERCENTAGE); Layout footer = createFooter(); Layout mainArea = createMainArea(description); content.addComponent(mainArea); content.addComponent(footer); content.setExpandRatio(mainArea, 1); return content; }
@Override protected AbstractOrderedLayout createContent() { VerticalLayout vl = new VerticalLayout(); vl.setSpacing(true); vl.setMargin(true); vl.setWidth(600, Sizeable.UNITS_PIXELS); vl.addComponent(new Label(getMessage(CAPTION_PREFIX + "text"), Label.CONTENT_XHTML)); return vl; }
private static VerticalLayout getMenuLayout() { final VerticalLayout menuContent = new VerticalLayout(); menuContent.addStyleName(ValoTheme.MENU_PART); menuContent.addStyleName("sidebar"); menuContent.addStyleName("no-vertical-drag-hints"); menuContent.addStyleName("no-horizontal-drag-hints"); menuContent.setWidth(null); menuContent.setHeight("100%"); return menuContent; }
private static VerticalLayout getMenuLayout() { final VerticalLayout menuContent = new VerticalLayout(); menuContent.addStyleName(ValoTheme.MENU_PART); menuContent.addStyleName("sidebar"); menuContent.addStyleName("no-vertical-drag-hints"); menuContent.addStyleName("no-horizontal-drag-hints"); menuContent.setWidth(null); menuContent.setHeight("100%"); return menuContent; }
@Override protected AbstractOrderedLayout createContent() { VerticalLayout vl = new VerticalLayout(); vl.setSpacing(true); vl.setMargin(true); vl.setWidth(600, Sizeable.UNITS_PIXELS); vl.addComponent(new Label(getMessage(content), Label.CONTENT_XHTML)); return vl; }
private void initView() { itemsLayout = new VerticalLayout(); itemsLayout.setMargin(false, false, true, false); itemsLayout.setSpacing(true); itemsLayout.setWidth("100%"); noValuesLabel = new Label("<i>" + getMessage("dict.item.novalues") + "</i>", Label.CONTENT_XHTML); setCompositionRoot(itemsLayout); }
@Override protected AbstractOrderedLayout createContent() { VerticalLayout vl = new VerticalLayout(); vl.setMargin(true); vl.setWidth(600, Sizeable.UNITS_PIXELS); vl.addComponent(new Label(getHelpContents(), Label.CONTENT_XHTML)); vl.addComponent(form = getCommentDetailsForm()); return vl; }
protected void initUI() { setWidth("100%"); setHeight("100px"); description = new Label(); description.setContentMode(ContentMode.HTML); //description.setWidth("100%"); VerticalLayout layout = new VerticalLayout(); layout.addComponent(description); layout.setWidth("100%"); setContent(layout); }
public void init() { this.setModal(true); this.setResizable(false); this.setHeight("90%"); this.setWidth("90%"); VerticalLayout layout = new VerticalLayout(); layout.setWidth("100%"); ActionedExclusionEventViewPanel panel = new ActionedExclusionEventViewPanel (errorOccurrence, action, hospitalManagementService, topologyService); this.setContent(panel); }