org.sourceid.saml20.adapter.gui
Class SelectFieldDescriptor

java.lang.Object
  extended by org.sourceid.saml20.adapter.gui.FieldDescriptor
      extended by org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
          extended by org.sourceid.saml20.adapter.gui.SelectFieldDescriptor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CustomSourceFieldDescriptor, JdbcDatastoreFieldDescriptor, LdapDatastoreFieldDescriptor

public class SelectFieldDescriptor
extends AbstractSelectionFieldDescriptor

A field descriptor that will render a select (drop down) field on the GUI configuration screen.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
AbstractSelectionFieldDescriptor.OptionValue
 
Nested classes/interfaces inherited from class org.sourceid.saml20.adapter.gui.FieldDescriptor
FieldDescriptor.FieldValidationWrapper
 
Field Summary
static AbstractSelectionFieldDescriptor.OptionValue SELECT_ONE
          Add this OptionValue as the first in the OptionValue list if you want the select box to contain a '-- Select One --' option with an empty value.
 
Fields inherited from class org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
optionValues
 
Constructor Summary
protected SelectFieldDescriptor(java.lang.String name, java.lang.String description)
           
  SelectFieldDescriptor(java.lang.String name, java.lang.String description, java.util.List<AbstractSelectionFieldDescriptor.OptionValue> optionValues)
          Create a new SelectFieldDescriptor with the specified option values.
  SelectFieldDescriptor(java.lang.String name, java.lang.String description, java.lang.String[] optionValues)
          Create a new SelectFieldDescriptor with the specified option values.
 
Method Summary
 
Methods inherited from class org.sourceid.saml20.adapter.gui.AbstractSelectionFieldDescriptor
getOptionValues
 
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

SELECT_ONE

public static final AbstractSelectionFieldDescriptor.OptionValue SELECT_ONE
Add this OptionValue as the first in the OptionValue list if you want the select box to contain a '-- Select One --' option with an empty value.

Constructor Detail

SelectFieldDescriptor

protected SelectFieldDescriptor(java.lang.String name,
                                java.lang.String description)

SelectFieldDescriptor

public SelectFieldDescriptor(java.lang.String name,
                             java.lang.String description,
                             java.lang.String[] optionValues)
Create a new SelectFieldDescriptor 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.

SelectFieldDescriptor

public SelectFieldDescriptor(java.lang.String name,
                             java.lang.String description,
                             java.util.List<AbstractSelectionFieldDescriptor.OptionValue> optionValues)
Create a new SelectFieldDescriptor 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.


Copyright 2007 Ping Identity Corp. All rights reserved.