Class FieldOption

java.lang.Object
org.apache.guacamole.form.FieldOption

public class FieldOption extends Object
Describes an available legal value for an enumerated field.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new FieldOption with no associated value or title.
    FieldOption(String value, String title)
    Creates a new FieldOption having the given value and title.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the human-readable title describing the effect of this option.
    Returns the value that will be assigned if this option is chosen.
    void
    Sets the human-readable title describing the effect of this option.
    void
    Sets the value that will be assigned if this option is chosen.

    Methods inherited from class java.lang.Object

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

    • FieldOption

      public FieldOption()
      Creates a new FieldOption with no associated value or title.
    • FieldOption

      public FieldOption(String value, String title)
      Creates a new FieldOption having the given value and title.
      Parameters:
      value - The value to assign if this option is chosen.
      title - The human-readable title to associate with this option.
  • Method Details

    • getValue

      public String getValue()
      Returns the value that will be assigned if this option is chosen.
      Returns:
      The value that will be assigned if this option is chosen.
    • setValue

      public void setValue(String value)
      Sets the value that will be assigned if this option is chosen.
      Parameters:
      value - The value to assign if this option is chosen.
    • getTitle

      public String getTitle()
      Returns the human-readable title describing the effect of this option.
      Returns:
      The human-readable title describing the effect of this option.
    • setTitle

      public void setTitle(String title)
      Sets the human-readable title describing the effect of this option.
      Parameters:
      title - A human-readable title describing the effect of this option.