Select country = form.addItem().addSelect("country "); country.setLabel("Country"); country.addOption("", "Please select your country"); Enumeration<?> countries = ConfigurationManager.propertyNames("countries"); while (countries.hasMoreElements()) { String key = (String) countries.nextElement(); String value = ConfigurationManager.getProperty("countries", key); country.addOption(key, value); }
list.addItem().addHidden("button_required"); Select selectList = list.addItem().addSelect("licenseclass_chooser"); selectList.setLabel(T_license); selectList.setEvtBehavior("submitOnChange"); Iterator<CCLicense> iterator = cclookup.getLicenses(ConfigurationManager.getProperty("default.locale")).iterator();
select.setLabel(dcInput.getLabel()); select.setHelp(cleanHints(dcInput.getHints())); if (dcInput.isRequired())
list.setHead(T_head); Select select = list.addItem().addSelect("handle"); select.setLabel(T_collection); select.setHelp(T_collection_help);
select.setLabel(T_bundle_label);
select.setLabel(T_collection); select.setHelp(T_collection_help);
scope.setLabel(T_search_scope); buildScopeList(scope);
if (variableScope()) { Select scope = searchList.addItem().addSelect("scope"); scope.setLabel(T_search_scope); buildScopeList(scope);
month.setLabel(T_month); month.addOption(0,""); for (int i = 1; i < 13; i++)
supportLevel.setLabel(T_support); supportLevel.setHelp(T_support_help); supportLevel.addOption(0,T_support_0);
select.setLabel(dcInput.getLabel()); select.setHelp(cleanHints(dcInput.getHints())); if (dcInput.isRequired())
scope.setLabel(T_search_scope); scope.setHelp(T_search_scope_help); buildScopeList(scope);
format.setLabel(T_format_selected);
addName.setLabel(T_name_label); MetadataField[] fields = MetadataField.findAll(context); for (MetadataField field : fields)
p.addContent("This is single 'Select' (aka dropdown) field, "); Select select = p.addSelect("select"); select.setLabel("Select (single)"); if (help) p.addContent("This is multiple 'Select' field, "); select = p.addSelect("multi-select"); select.setLabel("Select (multiple)"); select.setMultiple(); select.setSize(4);
select.setLabel("Text"); select.enableAddOperation(); select.enableDeleteOperation();