public DefaultVerticalLayoutBuilder() { super(new VerticalLayout()); getInstance().setSizeUndefined(); }
l.addComponent(wrappedField); setCompositionRoot(l); l.setSizeUndefined(); this.setSizeUndefined(); wrappedField.setSizeUndefined();
public DefaultVerticalLayoutBuilder() { super(new VerticalLayout()); getInstance().setSizeUndefined(); getInstance().setMargin(false); getInstance().setSpacing(false); }
public ImagePanel(Embedded image) { setWidth("100%"); setHeight("-1px"); VerticalLayout layout = new VerticalLayout(); setContent(layout); // enable scrolling layout.setSizeUndefined(); addStyleName(ChameleonTheme.PANEL_BORDERLESS); layout.addComponent(image); } }
private Component buildLoginForm() { final VerticalLayout loginPanel = new VerticalLayout(); loginPanel.setSizeUndefined(); loginPanel.setSpacing(true); Responsive.makeResponsive(loginPanel); loginPanel.addStyleName("login-panel"); loginPanel.addComponent(buildLabels()); loginPanel.addComponent(buildFields()); //loginPanel.addComponent(new CheckBox("Remember me", true)); return loginPanel; }
contextMenuPopup.setMargin(false); contextMenuPopup.setSizeUndefined(); contextMenuPopup.setStyleName("c-cm-container");
protected Component buildLoginForm() { final VerticalLayout loginPanel = new VerticalLayout(); loginPanel.setSizeUndefined(); loginPanel.setSpacing(true); loginPanel.addStyleName("login-panel"); Responsive.makeResponsive(loginPanel); loginPanel.addComponent(buildFields()); if (isDemo) { loginPanel.addComponent(buildDisclaimer()); } loginPanel.addComponent(buildLinks()); checkBrowserSupport(loginPanel); return loginPanel; }
protected Component buildLoginForm() { final VerticalLayout loginPanel = new VerticalLayout(); loginPanel.setSizeUndefined(); loginPanel.setSpacing(true); loginPanel.addStyleName("login-panel"); Responsive.makeResponsive(loginPanel); loginPanel.addComponent(buildFields()); if (isDemo) { loginPanel.addComponent(buildDisclaimer()); } loginPanel.addComponent(buildLinks()); checkBrowserSupport(loginPanel); return loginPanel; }
public GridComponent(VisualizerInput input, MediaController mediaController, PDFController pdfController, boolean forceToken, STextualDS enforcedText) { this.input = input; this.mediaController = mediaController; this.pdfController = pdfController; this.enforcedText = enforcedText; setWidth("100%"); setHeight("-1"); layout = new VerticalLayout(); setContent(layout); layout.setSizeUndefined(); addStyleName(ChameleonTheme.PANEL_BORDERLESS); lblEmptyToken = new Label("(Empty token list, you may want to select another base text from the menu above.)"); lblEmptyToken.setVisible(false); lblEmptyToken.addStyleName("empty_token_hint"); layout.addComponent(lblEmptyToken); if (input != null) { this.manuallySelectedTokenAnnos = input.getVisibleTokenAnnos(); this.segmentationName = forceToken ? null : input.getSegmentationName(); List<STextualDS> texts = input.getDocument().getDocumentGraph().getTextualDSs(); if (texts != null && texts.size() > 0 && !Helper.isRTLDisabled()) { if (CommonHelper.containsRTLText(texts.get(0).getText())) { addStyleName("rtl"); } } createAnnotationGrid(); } // end if input not null }
UploadProgressInfoWindow(final UIEventBus eventBus, final ArtifactUploadState artifactUploadState, final VaadinMessageSource i18n) { this.artifactUploadState = artifactUploadState; this.i18n = i18n; setPopupProperties(); createStatusPopupHeaderComponents(); mainLayout = new VerticalLayout(); mainLayout.setSpacing(Boolean.TRUE); mainLayout.setSizeUndefined(); setPopupSizeInMinMode(); uploads = getGridContainer(); grid = createGrid(); setGridColumnProperties(); mainLayout.addComponents(getCaptionLayout(), grid); mainLayout.setExpandRatio(grid, 1.0F); setContent(mainLayout); eventBus.subscribe(this); ui = UI.getCurrent(); }
protected void buildLayout() { setModal(true); setResizable(true); center(); contentLayout.setWidth("100%"); contentLayout.setSpacing(true); contentLayout.setMargin(true); buttonLayout.setWidth("100%"); buttonLayout.setSpacing(true); buttonLayout.setMargin(true); VerticalLayout layout = new VerticalLayout(); layout.setSizeFull(); layout.addComponent(contentLayout); layout.addComponent(buttonLayout); setContent(layout); layout.setSizeUndefined(); layout.setComponentAlignment(buttonLayout, Alignment.MIDDLE_CENTER); }
UploadProgressInfoWindow(final UIEventBus eventBus, final ArtifactUploadState artifactUploadState, final VaadinMessageSource i18n) { this.artifactUploadState = artifactUploadState; this.i18n = i18n; setPopupProperties(); createStatusPopupHeaderComponents(); mainLayout = new VerticalLayout(); mainLayout.setSpacing(Boolean.TRUE); mainLayout.setSizeUndefined(); setPopupSizeInMinMode(); uploads = getGridContainer(); grid = createGrid(); setGridColumnProperties(); mainLayout.addComponents(getCaptionLayout(), grid); mainLayout.setExpandRatio(grid, 1.0F); setContent(mainLayout); eventBus.subscribe(this); ui = UI.getCurrent(); }
private void buildLayout() { mainLayout = new VerticalLayout(); mainLayout.setSpacing(Boolean.TRUE); mainLayout.setSizeUndefined(); mainLayout.setWidth("200px"); final HorizontalLayout captionLayout = new HorizontalLayout(); captionLayout.setSizeFull(); captionLayout.addComponents(windowCaption, minimizeButton, closeButton); captionLayout.setExpandRatio(windowCaption, 1.0F); captionLayout.addStyleName("v-window-header"); final HorizontalLayout uploaderLayout = new HorizontalLayout(); uploaderLayout.addComponent(bulkUploader); uploaderLayout.addComponent(linkToSystemConfigHelp); uploaderLayout.setComponentAlignment(linkToSystemConfigHelp, Alignment.BOTTOM_RIGHT); uploaderLayout.setExpandRatio(bulkUploader, 1.0F); uploaderLayout.setSizeFull(); mainLayout.addComponents(captionLayout, dsNamecomboBox, descTextArea, tokenVerticalLayout, descTextArea, progressBar, targetsCountLabel, uploaderLayout); }
private void buildLayout() { mainLayout = new VerticalLayout(); mainLayout.setSpacing(Boolean.TRUE); mainLayout.setSizeUndefined(); mainLayout.setWidth("200px"); final HorizontalLayout captionLayout = new HorizontalLayout(); captionLayout.setSizeFull(); captionLayout.addComponents(windowCaption, minimizeButton, closeButton); captionLayout.setExpandRatio(windowCaption, 1.0F); captionLayout.addStyleName("v-window-header"); final HorizontalLayout uploaderLayout = new HorizontalLayout(); uploaderLayout.addComponent(bulkUploader); uploaderLayout.addComponent(linkToSystemConfigHelp); uploaderLayout.setComponentAlignment(linkToSystemConfigHelp, Alignment.BOTTOM_RIGHT); uploaderLayout.setExpandRatio(bulkUploader, 1.0F); uploaderLayout.setSizeFull(); mainLayout.addComponents(captionLayout, dsNamecomboBox, descTextArea, tokenVerticalLayout, descTextArea, progressBar, targetsCountLabel, uploaderLayout); }
panel.setSizeUndefined(); panel.addComponent((VerticalLayout)form); panel.markAsDirty();
private void onMenuAbout() { Window helpWindow = new Window(); helpWindow.setCaption("About"); helpWindow.setModal(true); helpWindow.setResizable(false); helpWindow.setSizeUndefined(); VerticalLayout content = new VerticalLayout(); content.setSizeUndefined(); content.setMargin(true); content.setSpacing(true); Label aboutLabel = new Label("Electron+Vaadin Demo\nAuthor: Yuriy Artamonov"); aboutLabel.setContentMode(ContentMode.PREFORMATTED); aboutLabel.setSizeUndefined(); content.addComponent(aboutLabel); Button okBtn = new Button("Ok", VaadinIcons.CHECK); okBtn.focus(); okBtn.addClickListener(event -> helpWindow.close()); content.addComponent(okBtn); content.setComponentAlignment(okBtn, Alignment.MIDDLE_CENTER); helpWindow.setContent(content); getUI().addWindow(helpWindow); }
protected void buildLayout() { mainLayout = new GridLayout(3, 2); mainLayout.setSpacing(true); colorPickerLayout = new ColorPickerLayout(); ColorPickerHelper.setRgbSliderValues(colorPickerLayout); contentLayout = new VerticalLayout(); colorLabelLayout = new HorizontalLayout(); colorLabelLayout.setMargin(false); colorLabelLayout.addComponents(colorLabel, tagColorPreviewBtn); formLayout.addComponent(tagName); formLayout.addComponent(tagDesc); formLayout.setSizeFull(); contentLayout.addComponent(formLayout); contentLayout.addComponent(colorLabelLayout); contentLayout.setComponentAlignment(formLayout, Alignment.MIDDLE_CENTER); contentLayout.setComponentAlignment(colorLabelLayout, Alignment.MIDDLE_LEFT); contentLayout.setSizeUndefined(); mainLayout.setSizeFull(); mainLayout.addComponent(contentLayout, 0, 0); colorPickerLayout.setVisible(false); mainLayout.addComponent(colorPickerLayout, 1, 0); mainLayout.setComponentAlignment(colorPickerLayout, Alignment.MIDDLE_CENTER); setCompositionRoot(mainLayout); tagName.focus(); }
protected void buildLayout() { mainLayout = new GridLayout(3, 2); mainLayout.setSpacing(true); colorPickerLayout = new ColorPickerLayout(); ColorPickerHelper.setRgbSliderValues(colorPickerLayout); contentLayout = new VerticalLayout(); colorLabelLayout = new HorizontalLayout(); colorLabelLayout.setMargin(false); colorLabelLayout.addComponents(colorLabel, tagColorPreviewBtn); formLayout.addComponent(tagName); formLayout.addComponent(tagDesc); formLayout.setSizeFull(); contentLayout.addComponent(formLayout); contentLayout.addComponent(colorLabelLayout); contentLayout.setComponentAlignment(formLayout, Alignment.MIDDLE_CENTER); contentLayout.setComponentAlignment(colorLabelLayout, Alignment.MIDDLE_LEFT); contentLayout.setSizeUndefined(); mainLayout.setSizeFull(); mainLayout.addComponent(contentLayout, 0, 0); colorPickerLayout.setVisible(false); mainLayout.addComponent(colorPickerLayout, 1, 0); mainLayout.setComponentAlignment(colorPickerLayout, Alignment.MIDDLE_CENTER); setCompositionRoot(mainLayout); tagName.focus(); }
@Override public void doBuild(ViewChangeBusMessage event) { super.doBuild(event); centrePanel = new Panel(); centrePanel.addStyleName(ChameleonTheme.PANEL_BUBBLE); centrePanel.setSizeUndefined(); VerticalLayout vl = new VerticalLayout(); centrePanel.setContent(vl); vl.setSpacing(true); vl.setSizeUndefined(); label = new Label(); usernameBox = new TextField(); passwordBox = new PasswordField(); Label demoInfoLabel = new Label("for this demo, enter any user name, and a password of 'password'"); Label demoInfoLabel2 = new Label("In a real application your Shiro Realm implementation defines how to authenticate"); submitButton = new Button(); submitButton.addClickListener(this); statusMsgLabel = new Label("Please enter your username and password"); vl.addComponent(label); vl.addComponent(demoInfoLabel); vl.addComponent(demoInfoLabel2); vl.addComponent(usernameBox); vl.addComponent(passwordBox); vl.addComponent(submitButton); vl.addComponent(statusMsgLabel); setMiddleCentre(centrePanel); }
public Component getDetailComponent(Attachment attachment) { VerticalLayout verticalLayout = new VerticalLayout(); verticalLayout.setSizeUndefined(); verticalLayout.setSpacing(true); verticalLayout.setMargin(true);