Class AbstractSelectionFieldDescriptor.OptionValue

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    AbstractSelectionFieldDescriptor

    public static class AbstractSelectionFieldDescriptor.OptionValue
    extends Object
    implements Serializable
    A class representing an option value. The name of the option value is what will be displayed in the GUI for the option and the value of the option value will be the actual value of the field.
    See Also:
    Serialized Form
    • Constructor Detail

      • OptionValue

        public OptionValue​(String name,
                           String value,
                           boolean aDefault)
        Constructor for when the OptionValue is a default.
        Parameters:
        name - The name of this option displayed in the GUI.
        value - The value that is returned if this option is selected.
        aDefault - Whether this option has been set as a default.
      • OptionValue

        public OptionValue​(String name,
                           String value)
        Create a new OptionValue.
        Parameters:
        name - The name of this option displayed in the GUI.
        value - The value that is returned if this option is selected.
    • Method Detail

      • getName

        public String getName()
        The name of this option displayed in the GUI.
        Returns:
        the name
      • getValue

        public String getValue()
        The value that is returned if this option is selected.
        Returns:
        the value
      • getIsDefault

        public boolean getIsDefault()
        Whether the current OptionValue has been set as a default.
        Returns:
        boolean