Class OptionGroup

  • All Implemented Interfaces:
    Serializable

    public class OptionGroup
    extends Object
    implements Serializable
    Provides a way of grouping options inside list-type controls.
    Since:
    1.0.0
    Author:
    Yiannis Paschalidis
    See Also:
    Serialized Form
    • Constructor Detail

      • OptionGroup

        public OptionGroup()
        Creates an option group with no options or description.
      • OptionGroup

        public OptionGroup​(String description)
        Creates an option group with the given description.
        Parameters:
        description - the group description.
      • OptionGroup

        public OptionGroup​(String description,
                           List options)
        Creates an option group with the given description and contents.
        Parameters:
        description - the group description.
        options - the options.
    • Method Detail

      • getOptions

        public List getOptions()
        Returns:
        the options contained in this group.
      • getDesc

        public String getDesc()
        Returns:
        the textual description of this group.
      • setDescription

        public void setDescription​(String description)
        Parameters:
        description - The description to set.
      • setOptions

        public void setOptions​(List options)
        Parameters:
        options - The options to set.