Package org.sourceid.saml20.adapter.gui
Class AbstractSelectionFieldDescriptor
- java.lang.Object
-
- org.sourceid.saml20.adapter.gui.FieldDescriptor
-
- org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RadioGroupFieldDescriptor,SelectFieldDescriptor
public abstract class AbstractSelectionFieldDescriptor extends FieldDescriptor
An abstract base type for describing GUI fields that have multiple options the user can select from.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractSelectionFieldDescriptor.OptionValueA class representing an option value.-
Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
FieldDescriptor.FieldValidationWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static StringNONE_SELECTED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFormattedValue(String value)Gets the option name associated with the specified value.List<AbstractSelectionFieldDescriptor.OptionValue>getOptionValues()Gets the available option values for this field.voidsetOptionValues(List<AbstractSelectionFieldDescriptor.OptionValue> optionValues)Sets the available option values for this field.-
Methods inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
addValidator, addValidator, getDefaultForLegacyConfig, getDefaultValue, getDescription, getLabel, getName, getValidationChain, isHidden, setDefaultForLegacyConfig, setDefaultValue, setHidden, setLabel
-
-
-
-
Field Detail
-
NONE_SELECTED
public static final String NONE_SELECTED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOptionValues
public List<AbstractSelectionFieldDescriptor.OptionValue> getOptionValues()
Gets the available option values for this field.- Returns:
- the list of option values.
-
setOptionValues
public void setOptionValues(List<AbstractSelectionFieldDescriptor.OptionValue> optionValues)
Sets the available option values for this field. This can be used to change the options dynamically and should be used with care.- Parameters:
optionValues- the new list of option values.- Since:
- 6.6
-
getFormattedValue
public String getFormattedValue(String value)
Gets the option name associated with the specified value.- Overrides:
getFormattedValuein classFieldDescriptor- Parameters:
value- The option value.- Returns:
- A String representing the option name that is paired with the specified option value.
-
-