Package org.apache.guacamole.form
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 FieldOption()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTitle()
Returns the human-readable title describing the effect of this option.String
getValue()
Returns the value that will be assigned if this option is chosen.void
setTitle(String title)
Sets the human-readable title describing the effect of this option.void
setValue(String value)
Sets the value that will be assigned if this option is chosen.
-
-
-
Method Detail
-
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.
-
-