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.
See Also:
  • Field Details

  • Method Details

    • 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:
      getFormattedValue in class FieldDescriptor
      Parameters:
      value - The option value.
      Returns:
      A String representing the option name that is paired with the specified option value.