/** * Create a new legacy window. */ public LegacyWindow() { super(new VerticalLayout()); ((VerticalLayout) getContent()).setSpacing(false); }
/** * 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; }
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); }
public void startContainerLayout( ComponentContainer container, VaadinMetawidget metawidget ) { com.vaadin.ui.VerticalLayout layout = new com.vaadin.ui.VerticalLayout(); layout.setSpacing( true ); container.addComponent( layout ); }
protected void initLayout() { layout = new VerticalLayout(); layout.setMargin(true); layout.setSpacing(true); setContent(layout); }
protected void initImagePanel() { imageLayout = new VerticalLayout(); imageLayout.setSpacing(true); imageLayout.setHeight("100%"); profilePanelLayout.addComponent(imageLayout); initPicture(); }
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; }
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 initWindow() { windowLayout.setSpacing(true); addStyleName(Reindeer.WINDOW_LIGHT); setModal(true); center(); String name = processDefinition.getName(); if (StringUtils.isEmpty(name)) { name = processDefinition.getKey(); } setCaption(i18nManager.getMessage(Messages.PROCESS_CONVERT_POPUP_CAPTION, name)); }
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); }
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); }
protected void initWindow() { windowLayout.setSpacing(true); addStyleName(Reindeer.WINDOW_LIGHT); setModal(true); setWidth("300px"); center(); setCaption(i18nManager.getMessage(Messages.PROCESS_DELETE_POPUP_CAPTION, modelData.getName())); }
protected void initWindow() { windowLayout.setSpacing(true); addStyleName(Reindeer.WINDOW_LIGHT); setModal(true); setWidth("460px"); setHeight("470px"); center(); setCaption(i18nManager.getMessage(Messages.PROCESS_NEW_POPUP_CAPTION)); }
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; }
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; }