Package org.apache.guacamole.form
Class FieldOption
java.lang.Object
org.apache.guacamole.form.FieldOption
Describes an available legal value for an enumerated field.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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 TypeMethodDescriptiongetTitle()
Returns the human-readable title describing the effect of this option.getValue()
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.
-
Constructor Details
-
FieldOption
public FieldOption()Creates a new FieldOption with no associated value or title. -
FieldOption
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
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
Sets the value that will be assigned if this option is chosen.- Parameters:
value
- The value to assign if this option is chosen.
-
getTitle
Returns the human-readable title describing the effect of this option.- Returns:
- The human-readable title describing the effect of this option.
-
setTitle
Sets the human-readable title describing the effect of this option.- Parameters:
title
- A human-readable title describing the effect of this option.
-