/** * Constructs an empty VerticalLayout. */ public VerticalLayout() { setWidth("100%"); setSpacing(true); setMargin(true); }
/** * Create the content for the login form with the supplied user name field, * password field and the login button. You cannot use any other text fields * or buttons for this purpose. To replace these components with your own * implementations, override {@link #createUsernameField()}, * {@link #createPasswordField()} and {@link #createLoginButton()}. If you * only want to change the default captions, override * {@link #getUsernameCaption()}, {@link #getPasswordCaption()} and * {@link #getLoginButtonCaption()}. You do not have to use the login button * in your layout. * * @param userNameField * the user name text field * @param passwordField * the password field * @param loginButton * the login button * @return content component * @since 7.7 */ protected Component createContent(TextField userNameField, PasswordField passwordField, Button loginButton) { VerticalLayout layout = new VerticalLayout(); layout.setSpacing(true); layout.setMargin(true); layout.addComponent(userNameField); layout.addComponent(passwordField); layout.addComponent(loginButton); return layout; }
/** * Creates the select tab. * * @return the component */ private Component createSelectTab() { VerticalLayout selLayout = new VerticalLayout(); selLayout.setMargin(new MarginInfo(false, false, true, false)); selLayout.addComponent(selPreview); selLayout.addStyleName("seltab"); colorSelect = new ColorPickerSelect(); colorSelect.addValueChangeListener(this::colorChanged); selLayout.addComponent(colorSelect); return selLayout; }
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); }
hsvLayout.setMargin(new MarginInfo(false, false, true, false)); hsvLayout.addComponent(hsvPreview); hsvLayout.setStyleName("hsvtab");
public Stub() { super( new com.vaadin.ui.VerticalLayout() ); addStyleName( "light" ); ((com.vaadin.ui.VerticalLayout) getContent()).setMargin( false ); }
protected void initLayout() { layout = new VerticalLayout(); layout.setMargin(true); layout.setSpacing(true); setContent(layout); }
rgbLayout.setMargin(new MarginInfo(false, false, true, false)); rgbLayout.addComponent(rgbPreview); rgbLayout.setStyleName("rgbtab");
private void createUnreadMessagesLayout() { final VerticalLayout notificationsLayout = new VerticalLayout(); notificationsLayout.setMargin(true); notificationsLayout.setSpacing(true); final Label title = new Label(i18n.getMessage(TITLE)); title.addStyleName(ValoTheme.LABEL_H3); title.addStyleName(ValoTheme.LABEL_NO_MARGIN); notificationsLayout.addComponent(title); unreadNotifications.values().stream().forEach(value -> createNotification(notificationsLayout, value)); notificationsWindow.setContent(notificationsLayout); }
@Override protected Component buildContent() { VerticalLayout root = new VerticalLayout(); root.setSpacing(true); root.setMargin(false); Responsive.makeResponsive(root); form.layout(); root.addComponent(form); return root; }
public DialogComponent() { layout.addStyleName("detail"); layout.setMargin(false); layout.setSpacing(false); layout.setSizeFull(); setCompositionRoot(layout); setSizeFull(); }
protected void initDetailsActions() { VerticalLayout actionLayout = new VerticalLayout(); actionLayout.setSpacing(true); actionLayout.setMargin(false, false, false, true); userDetailsLayout.addComponent(actionLayout); if (!editingDetails) { initEditButton(actionLayout); initDeleteButton(actionLayout); } else { initSaveButton(actionLayout); } }
private void refreshWindow(ComponentContainer header, ComponentContainer windowContainer) { mainWindow.removeAllComponents(); VerticalLayout main = new VerticalLayout(); main.setMargin(true); main.setSpacing(true); main.addComponent(header); main.addComponent(windowContainer); mainWindow.setContent(main); }
public void init() { this.setSizeFull(); VerticalLayout layout = new VerticalLayout(); layout.setSizeFull(); layout.setMargin(true); layout.addComponent( createReplayEventDetailsPanel()); this.setContent(layout); }
public void init() { this.setSizeFull(); VerticalLayout layout = new VerticalLayout(); layout.setSizeFull(); layout.setMargin(true); layout.addComponent(createPanel()); this.setContent(layout); }
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); }
/** * @see org.opencms.ui.apps.I_CmsWorkplaceApp#initUI(org.opencms.ui.apps.I_CmsAppUIContext) */ public void initUI(I_CmsAppUIContext context) { Label label = new Label(CmsVaadinUtils.getMessageText(Messages.GUI_APP_NOT_AVAILABLE_0)); label.addStyleName(ValoTheme.LABEL_H2); label.addStyleName(OpenCmsTheme.LABEL_ERROR); VerticalLayout content = new VerticalLayout(); content.setMargin(true); content.addComponent(label); context.setAppContent(content); }
@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; }
private VerticalLayout getTokenFieldLayout() { final TokenField tokenField = targetBulkTokenTags.getTokenField(); final VerticalLayout tokenLayout = SPUIComponentProvider.getDetailTabLayout(); tokenLayout.addStyleName("bulk-target-tags-layout"); tokenLayout.addComponent(tokenField); tokenLayout.setSpacing(false); tokenLayout.setMargin(false); tokenLayout.setSizeFull(); tokenLayout.setHeight("100px"); tokenLayout.setId(UIComponentIdProvider.BULK_UPLOAD_TAG); return tokenLayout; }
private Panel wrapToPanel(Component component) { Panel panel = new Panel(component.getCaption()); panel.setSizeFull(); VerticalLayout layout = new VerticalLayout(); layout.setMargin(false); layout.setSpacing(false); layout.setSizeFull(); layout.addComponent(component); panel.setContent(layout); component.setCaption(null); return panel; }