public class ChoiceSettingDefinition extends AbstractSettingDefinition<ChoiceSettingDefinition,String>
SettingDefinition
resulting in a drop down menu offering different
options.By default the options are sorted by their display name (it's set
to value if not provided).Constructor and Description |
---|
ChoiceSettingDefinition() |
Modifier and Type | Method and Description |
---|---|
ChoiceSettingDefinition |
addOption(String option) |
ChoiceSettingDefinition |
addOption(String option,
String displayName) |
Map<String,String> |
getOptions() |
boolean |
hasOption(String value) |
equals, getDefaultValue, getDescription, getGroup, getKey, getSuborder, getTitle, getType, hasDefaultValue, hasDescription, hasGroup, hashCode, hasStringProperty, hasTitle, isOptional, setDefaultValue, setDescription, setGroup, setKey, setOptional, setTitle, setType, toString
compareTo, getOrder, setOrder
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public boolean hasOption(String value)
public ChoiceSettingDefinition addOption(String option)
public ChoiceSettingDefinition addOption(String option, String displayName)
Copyright © 2012-2015 52north.org. All Rights Reserved.