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
An abstract base type for describing GUI fields that have multiple options the user can select from.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class representing an option value.Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
FieldDescriptor.FieldValidationWrapper -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetFormattedValue(String value) Gets the option name associated with the specified value.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 Details
-
NONE_SELECTED
- See Also:
-
-
Method Details
-
getOptionValues
Gets the available option values for this field.- Returns:
- the list of option values.
-
setOptionValues
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
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.
-