41 const String &
label()
const {
return _label; }
47 LiquidCrystal *
lcd()
const {
return _form->_lcd; }
Manages a single data input/output field within a Form.
virtual void enterField(bool reverse)
Enters the field due to form navigation.
Form * form() const
Returns the Form that owns this field; null if not associated with a Form.
virtual int dispatch(int event)
Dispatches event via this field.
const String & label() const
Returns the label to display in the first line of this field.
LiquidCrystal * lcd() const
Returns the LCD that this field is being drawn on.
Field(const String &label)
Constructs a new field with a specific label.
virtual void exitField()
Exits the field due to form navigation.
virtual void updateCursor()
Updates the cursor position after the label has been drawn by setLabel().
void setLabel(const String &label)
Sets the label to display in the first line of this field.
~Field()
Destroys this field and removes it from its owning Form.
bool isCurrent() const
Returns true if this field is the currently-displayed field in its owning form; false otherwise...