Package org.n52.faroe.settings
Class ChoiceSettingDefinition
- java.lang.Object
-
- org.n52.faroe.AbstractOrdered
-
- org.n52.faroe.AbstractSettingDefinition<String>
-
- org.n52.faroe.settings.ChoiceSettingDefinition
-
- All Implemented Interfaces:
Serializable,Comparable<Ordered>,Ordered,SettingDefinition<String>
public class ChoiceSettingDefinition extends AbstractSettingDefinition<String>
SettingDefinitionresulting 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).- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChoiceSettingDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChoiceSettingDefinitionaddOption(String option)ChoiceSettingDefinitionaddOption(String option, String displayName)Map<String,String>getOptions()booleanhasOption(String value)ChoiceSettingDefinitionsetOptions(Map<String,String> options)-
Methods inherited from class org.n52.faroe.AbstractSettingDefinition
equals, getDefaultValue, getDescription, getGroup, getKey, getSuborder, getTitle, getType, hasDefaultValue, hasDescription, hasGroup, hashCode, hasStringProperty, hasTitle, isOptional, setDefaultValue, setDescription, setGroup, setKey, setOptional, setTitle, toString
-
Methods inherited from class org.n52.faroe.AbstractOrdered
compareTo, getOrder, setOrder
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.n52.faroe.SettingDefinition
getGroup, getOptionalDefaultValue
-
-
-
-
Method Detail
-
hasOption
public boolean hasOption(String value)
-
setOptions
public ChoiceSettingDefinition setOptions(Map<String,String> options)
-
addOption
public ChoiceSettingDefinition addOption(String option)
-
addOption
public ChoiceSettingDefinition addOption(String option, String displayName)
-
-