28 #define TIMEFIELD_READ_ONLY true
29 #define TIMEFIELD_READ_WRITE false
41 unsigned long value()
const {
return _value; }
58 int printField(
unsigned long value);
void setMaxHours(int maxHours)
Sets the maximum number of hours before the field wraps around to maxHours.
unsigned long value() const
Returns the current value of this time field, in seconds.
void setReadOnly(bool value)
Sets the read-only state of this field to value.
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.
int maxHours() const
Returns the maximum number of hours before the field wraps around.
const String & label() const
Returns the label to display in the first line of this field.
int dispatch(int event)
Dispatches event via this field.
Field that manages the display and editing of a time value.
bool readOnly() const
Returns TIMEFIELD_READ_ONLY (true) or TIMEFIELD_READ_WRITE (false).
void enterField(bool reverse)
Enters the field due to form navigation.
TimeField(const String &label)
Constructs a new time field with a specific label.
void exitField()
Exits the field due to form navigation.
void setValue(unsigned long value)
Sets the value of this time field, in seconds.