org.sourceid.saml20.adapter.gui
Class AbstractSelectionFieldDescriptor

java.lang.Object
  extended by org.sourceid.saml20.adapter.gui.FieldDescriptor
      extended by org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
All Implemented Interfaces:
java.io.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.

Author:
Brian Campbell
See Also:
AdapterConfigurationGuiDescriptor.addField(FieldDescriptor), AdapterConfigurationGuiDescriptor.addAdvancedField(FieldDescriptor), TableDescriptor.addRowField(FieldDescriptor), Serialized Form

Nested Class Summary
static class AbstractSelectionFieldDescriptor.OptionValue
          A class representing an option value.
 
Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
FieldDescriptor.FieldValidationWrapper
 
Field Summary
protected  java.util.List<AbstractSelectionFieldDescriptor.OptionValue> optionValues
           
 
Constructor Summary
protected AbstractSelectionFieldDescriptor(java.lang.String name, java.lang.String description, java.util.List<AbstractSelectionFieldDescriptor.OptionValue> optionValues)
          Create a new AbstractSelectionFieldDescriptor with the specified option values.
protected AbstractSelectionFieldDescriptor(java.lang.String name, java.lang.String description, java.lang.String[] optionValues)
          Create a new AbstractSelectionFieldDescriptor with the specified option values.
 
Method Summary
 java.util.List<AbstractSelectionFieldDescriptor.OptionValue> getOptionValues()
          Gets the available option values for this field.
 
Methods inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
addValidator, addValidator, getDefaultValue, getDescription, getName, getValidationChain, setDefaultValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optionValues

protected java.util.List<AbstractSelectionFieldDescriptor.OptionValue> optionValues
Constructor Detail

AbstractSelectionFieldDescriptor

protected AbstractSelectionFieldDescriptor(java.lang.String name,
                                           java.lang.String description,
                                           java.lang.String[] optionValues)
Create a new AbstractSelectionFieldDescriptor with the specified option values.

Parameters:
name - the field name (must be unique per AdapterConfigurationGuiDescriptor or TableDescriptor).
description - a helpful description of the field.
optionValues - a String array to build the OptionValue list from. One OptionValue will be created for each value in the array and the name and value fields will be the same.

AbstractSelectionFieldDescriptor

protected AbstractSelectionFieldDescriptor(java.lang.String name,
                                           java.lang.String description,
                                           java.util.List<AbstractSelectionFieldDescriptor.OptionValue> optionValues)
Create a new AbstractSelectionFieldDescriptor with the specified option values.

Parameters:
name - the field name (must be unique per AdapterConfigurationGuiDescriptor or TableDescriptor).
description - a helpful description of the field.
optionValues - a List of OptionValues that will make up the available options the user can choose from.
Method Detail

getOptionValues

public java.util.List<AbstractSelectionFieldDescriptor.OptionValue> getOptionValues()
Gets the available option values for this field.

Returns:
the list of option values.


Copyright 2007 Ping Identity Corp. All rights reserved.