menuDelete.setTextInputAllowed(false); menuDelete.setId("a" + UUID.randomUUID().toString().replace('-', 'x')); menuDelete.setWidth("0px"); menuDelete.setNullSelectionAllowed(false); menuDelete.addValueChangeListener(new Property.ValueChangeListener() {
private void construct() { mainLayout.setPrimaryStyleName("switcher"); mainLayout.addStyleName(VARIATION_GREEN.equals(colorVariation) ? cssGreenVariationClassname : cssBlackVariationClassname); // back-arrow back = new Button(""); back.setPrimaryStyleName(cssSwitcherArrowClassname); back.addStyleName("icon-arrow2_w"); mainLayout.addComponent(back); // combobox with descriptionLabel below wrapped in verticalLayout // comboLayout.setWidth(100, Unit.PERCENTAGE); combobox.setWidth(100, Unit.PERCENTAGE); comboLayout.addComponent(combobox); // descriptionLabel descriptionLabel = new Label(""); descriptionLabel.setPrimaryStyleName("switcherItemDescription"); descriptionLabel.addStyleName("descriptionLabel"); comboLayout.addComponent(descriptionLabel); mainLayout.addComponent(comboLayout); mainLayout.setExpandRatio(comboLayout, 1.0f); // forward arrow forward = new Button(""); forward.setPrimaryStyleName(cssSwitcherArrowClassname); forward.addStyleName("icon-arrow2_e"); mainLayout.addComponent(forward); updateButtonState(getValue()); updateItemDescription(); }
/** * Instantiates a new color picker select. */ public ColorPickerSelect() { VerticalLayout layout = new VerticalLayout(); setCompositionRoot(layout); setStyleName("colorselect"); setWidth("100%"); range = new ComboBox(); range.setImmediate(true); range.setImmediate(true); range.setNullSelectionAllowed(false); range.setNewItemsAllowed(false); range.setWidth("100%"); range.addValueChangeListener(this); for (ColorRangePropertyId id : ColorRangePropertyId.values()) { range.addItem(id); } range.select(ColorRangePropertyId.ALL); layout.addComponent(range); grid = new ColorPickerGrid(createAllColors(14, 10)); grid.setWidth("100%"); layout.addComponent(grid); }
filter.setWidth("100%");
m_childServiceComponent.setNewItemsAllowed(false); m_childServiceComponent.setNullSelectionAllowed(false); m_childServiceComponent.setWidth(100.0f, Unit.PERCENTAGE); m_childServiceComponent.setVisible(false); m_childServiceComponent.setImmediate(true); m_ipServiceComponent.setNewItemsAllowed(false); m_ipServiceComponent.setNullSelectionAllowed(false); m_ipServiceComponent.setWidth(100.0f, Unit.PERCENTAGE); m_ipServiceComponent.setVisible(false); m_ipServiceComponent.setImmediate(true); m_applicationComponent.setNewItemsAllowed(false); m_applicationComponent.setNullSelectionAllowed(false); m_applicationComponent.setWidth(100.0f, Unit.PERCENTAGE); m_applicationComponent.setVisible(false); m_applicationComponent.setImmediate(true);
itemsPerPageSelect.setWidth(null); itemsPerPageSelect.addValueChangeListener(e -> setPageLength((Integer) e.getProperty().getValue())); if (itemsPerPageSelect.containsId(getPageLength())) {
parentSelect.setWidth("250px"); parentSelect.setNullSelectionAllowed(true); fillParentSelect(); presentation = new ComboBox(); presentation.setCaption(getMessage("folders.folderEditWindow.presentation")); presentation.setWidth("250px"); presentation.setNullSelectionAllowed(true); fillPresentations(presentations);