Package org.apache.guacamole.form
Class BooleanField
java.lang.Object
org.apache.guacamole.form.Field
org.apache.guacamole.form.BooleanField
Represents a field with strictly one possible value. It is assumed that the
field may be blank, but that its sole non-blank value is the value provided.
The provided value represents "true" while all other values, including
having no associated value, represent "false".
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.guacamole.form.Field
Field.Type
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanField
(String name, String truthValue) Creates a new BooleanField with the given name and truth value. -
Method Summary
Methods inherited from class org.apache.guacamole.form.Field
getName, getOptions, getType, setName, setOptions, setType
-
Constructor Details
-
BooleanField
Creates a new BooleanField with the given name and truth value. The truth value is the value that, when assigned to this field, means that this field is "true".- Parameters:
name
- The unique name to associate with this field.truthValue
- The value to consider "true" for this field. All other values will be considered "false".
-