com.cognos.CAM_AAA.authentication

Class SelectOption

  • java.lang.Object
    • com.cognos.CAM_AAA.authentication.SelectOption
  • All Implemented Interfaces:
    ISelectOption


    public class SelectOption
    extends java.lang.Object
    implements ISelectOption
    Represents a value that the user can select. For operations where lists of values are presented to the user, each value is represented as a separate SelectOption object.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SelectOption(java.lang.String theID, java.lang.String theValue, boolean theDefaultFlag)
      Create a select option to be added to a list of selectable options.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getID()
      Returns the identifier for this option.
      java.lang.String getValue()
      Returns the value for this option.
      boolean isSelectedByDefault()
      Returns a flag indicating whether this option is selected by default.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SelectOption

        public SelectOption(java.lang.String theID,
                            java.lang.String theValue,
                            boolean theDefaultFlag)
        Create a select option to be added to a list of selectable options.
        Parameters:
        theID - The identifier of this select option.
        theValue - The text that should be displayed to the user.
        theDefaultFlag - A flag indicating whether this option is selected by default.
    • Method Detail

      • getID

        public java.lang.String getID()
        Description copied from interface: ISelectOption
        Returns the identifier for this option.
        Specified by:
        getID in interface ISelectOption
        Returns:
        The identifier for this option.
      • getValue

        public java.lang.String getValue()
        Description copied from interface: ISelectOption
        Returns the value for this option.
        Specified by:
        getValue in interface ISelectOption
        Returns:
        The value for this option.
      • isSelectedByDefault

        public boolean isSelectedByDefault()
        Description copied from interface: ISelectOption
        Returns a flag indicating whether this option is selected by default.
        Specified by:
        isSelectedByDefault in interface ISelectOption
        Returns:
        A flag indicating whether this option is selected by default.