37 bool value()
const {
return _value; }
40 const String &
trueLabel()
const {
return _trueLabel; }
BoolField(const String &label)
Constructs a new boolean field with a specific label.
void setValue(bool value)
Sets the current value of this field to value.
const String & trueLabel() const
Returns the string that is displayed when value() is true.
Manages a single data input/output field within a Form.
Form * form() const
Returns the Form that owns this field; null if not associated with a Form.
void setTrueLabel(const String &trueLabel)
Sets the string that is displayed when value() is true to trueLabel.
const String & label() const
Returns the label to display in the first line of this field.
void setFalseLabel(const String &falseLabel)
Sets the string that is displayed when value() is false to falseLabel.
int dispatch(int event)
Dispatches event via this field.
void enterField(bool reverse)
Enters the field due to form navigation.
const String & falseLabel() const
Returns the string that is displayed when value() is false.
bool value() const
Returns the current value of this field, true or false.
Field that manages the input of a boolean value.