/** * @return a new ComboBox */ public ComboBox buildCombBox() { final ComboBox comboBox = SPUIComponentProvider.getComboBox(null, "", null, ValoTheme.COMBOBOX_SMALL, false, "", prompt); comboBox.setImmediate(true); comboBox.setPageLength(7); comboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME); comboBox.setSizeUndefined(); if (caption != null) { comboBox.setCaption(caption); } if (id != null) { comboBox.setId(id); } if (valueChangeListener != null) { comboBox.addValueChangeListener(valueChangeListener); } return comboBox; } }
/** * @return a new ComboBox */ public ComboBox buildCombBox() { final ComboBox comboBox = SPUIComponentProvider.getComboBox(null, "", null, ValoTheme.COMBOBOX_SMALL, false, "", prompt); comboBox.setImmediate(true); comboBox.setPageLength(7); comboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME); comboBox.setSizeUndefined(); if (caption != null) { comboBox.setCaption(caption); } if (id != null) { comboBox.setId(id); } if (valueChangeListener != null) { comboBox.addValueChangeListener(valueChangeListener); } return comboBox; } }
private ComboBox getDsComboField() { final Container container = createContainer(); final ComboBox dsComboBox = SPUIComponentProvider.getComboBox(i18n.getMessage("bulkupload.ds.name"), "", null, null, false, "", i18n.getMessage("bulkupload.ds.name")); dsComboBox.setSizeUndefined(); dsComboBox.addStyleName(SPUIDefinitions.BULK_UPLOD_DS_COMBO_STYLE); dsComboBox.setImmediate(true); dsComboBox.setFilteringMode(FilteringMode.STARTSWITH); dsComboBox.setPageLength(7); dsComboBox.setContainerDataSource(container); dsComboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME_VERSION); dsComboBox.setId(UIComponentIdProvider.BULK_UPLOAD_DS_COMBO); dsComboBox.setWidth("100%"); return dsComboBox; }
private ComboBox getDsComboField() { final Container container = createContainer(); final ComboBox dsComboBox = SPUIComponentProvider.getComboBox(i18n.getMessage("bulkupload.ds.name"), "", null, null, false, "", i18n.getMessage("bulkupload.ds.name")); dsComboBox.setSizeUndefined(); dsComboBox.addStyleName(SPUIDefinitions.BULK_UPLOD_DS_COMBO_STYLE); dsComboBox.setImmediate(true); dsComboBox.setFilteringMode(FilteringMode.STARTSWITH); dsComboBox.setPageLength(7); dsComboBox.setContainerDataSource(container); dsComboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME_VERSION); dsComboBox.setId(UIComponentIdProvider.BULK_UPLOAD_DS_COMBO); dsComboBox.setWidth("100%"); return dsComboBox; }