buttons.addComponent(ok); buttons.addComponent(cancel); buttons.setWidth("100%"); buttons.setHeight("30px");
private HorizontalLayout enableMaintenanceWindowLayout() { final HorizontalLayout layout = new HorizontalLayout(); layout.addComponent(enableMaintenanceWindowControl()); layout.addComponent(maintenanceWindowHelpLinkControl()); return layout; }
private HorizontalLayout enableMaintenanceWindowLayout() { final HorizontalLayout layout = new HorizontalLayout(); layout.addComponent(enableMaintenanceWindowControl()); layout.addComponent(maintenanceWindowHelpLinkControl()); return layout; }
@Override public void addComponent(Component c) { super.addComponent(c); setComponentAlignment(c, alignment); if (alwaysCalculateExpandRatios) { recalculateExpandRatios(); } }
public void initProcessDefinitionInfo() { if(definitionInfoComponent == null) { definitionInfoComponent = new EditorProcessDefinitionInfoComponent(modelData); } detailContainer.removeAllComponents(); detailContainer.addComponent(definitionInfoComponent); }
public static HorizontalLayout horizontalLayout(com.vaadin.ui.Component c1, com.vaadin.ui.Component c2) { HorizontalLayout hl = new HorizontalLayout(); hl.setWidth(100, Sizeable.UNITS_PERCENTAGE); hl.setSpacing(true); hl.addComponent(c1); hl.addComponent(c2); hl.setComponentAlignment(c2, Alignment.TOP_RIGHT); hl.setExpandRatio(c1, 1.0f); return hl; }
private void initLayout() { setSpacing(true); addComponent(queueDescriptionLabel); HorizontalLayout addQueueLayout = new HorizontalLayout(); addQueueLayout.setSpacing(true); addQueueLayout.addComponent(addQueueNameField); addQueueLayout.addComponent(addQueueButton); addComponent(addQueueLayout); }
private void setUpCaptionLayout(final boolean isCreateView) { captionLayout.removeAllComponents(); if (isCreateView) { nameTextField.removeBlurListener(nameTextFieldBlurListener); captionLayout.removeLayoutClickListener(nameLayoutClickListner); captionLayout.addComponent(nameTextField); } else { captionLayout.addComponent(nameLabel); nameTextField.addBlurListener(nameTextFieldBlurListener); captionLayout.addLayoutClickListener(nameLayoutClickListner); } }
public static HorizontalLayout horizontalLayout(String width, com.vaadin.ui.Component... components) { HorizontalLayout hl = new HorizontalLayout(); hl.setSpacing(true); hl.setWidth(width); if (components != null) { for (com.vaadin.ui.Component c : components) { hl.addComponent(c); } } return hl; }
public void setFooter(HorizontalLayout layout) { HorizontalLayout l = new HorizontalLayout(); l.addComponent(layout); l.setComponentAlignment(layout, Alignment.MIDDLE_CENTER); super.setFooter(l); }
protected void initEventTitle(HorizontalLayout eventsHeader) { Label usersHeader = new Label(i18nManager.getMessage(Messages.ADMIN_DEFINITIONS)); usersHeader.addStyleName(ExplorerLayout.STYLE_H3); eventsHeader.addComponent(usersHeader); }
/** * Creates a sub-layout for the footer. * * @return the footer sub-layout. */ private Layout createFooterMessageComponent() { final HorizontalLayout footerLayout = new HorizontalLayout(); footerLayout.addComponent(getFooterMessageLabel()); footerLayout.setWidth(100, Unit.PERCENTAGE); return footerLayout; }
protected void initCreateTime(HorizontalLayout propertiesLayout) { PrettyTimeLabel createLabel = new PrettyTimeLabel( i18nManager.getMessage(Messages.TASK_CREATED_SHORT), task.getCreateTime(), "", true); createLabel.addStyleName(ExplorerLayout.STYLE_TASK_HEADER_CREATE_TIME); propertiesLayout.addComponent(createLabel); }
protected void initImagePanel() { imageLayout = new VerticalLayout(); imageLayout.setSpacing(true); imageLayout.setHeight("100%"); profilePanelLayout.addComponent(imageLayout); initPicture(); }
protected void initCountComponent() { countButton = new Button(count + ""); countButton.addStyleName(Reindeer.BUTTON_LINK); countButton.addStyleName(ExplorerLayout.STYLE_TOOLBAR_COUNT); // Initially hidden countButton.setVisible(false); layout.addComponent(countButton); layout.setComponentAlignment(countButton, Alignment.MIDDLE_LEFT); }
protected void initTitle(HorizontalLayout headerLayout) { title = new Label(i18nManager.getMessage(Messages.TASK_PEOPLE)); title.addStyleName(ExplorerLayout.STYLE_H3); title.setWidth(100, UNITS_PERCENTAGE); headerLayout.addComponent(title); headerLayout.setExpandRatio(title, 1.0f); }
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); } }
public void initializeComponent() { removeAllComponents(); initializeLayout(); initLeftCheckboxes(); initOrganisaatioTyyppiCombo(); initOppilaitostyyppi(); initRightCheckboxes(); //model.setSuunnitellut(true); bodyArea.addComponent(rightPanel); addComponent(bodyArea); }
protected void showOverview(boolean setLinking) { if (menuLeave != null) menuLeave.setEnabled(false); contentScreen.removeAllComponents(); cleanupMenu(); currentSpace = null; contentScreen.addComponent(overView); contentScreen.setExpandRatio(overView, 1f); menuHistory.setText(MNls.find(this, "menu.history=History")); if (setLinking) UI.getCurrent().getPage().setUriFragment(""); }
@Override protected void buildActions(HorizontalLayout actionsContainer) { Button btn = Components .button().styleName(ValoTheme.BUTTON_PRIMARY).fullWidth().caption(Localizable.builder() .message(DEFAULT_BUTTON_MESSAGE).messageCode(DEFAULT_BUTTON_MESSAGE_CODE).build()) .onClick(e -> onDialogButtonClick(e.getButton())).build(); // configurator getOkButtonConfigurator().ifPresent(c -> c.configureDialogButton(Components.configure(btn))); actionsContainer.addComponent(btn); }