118 lcd()->print(_label);
149 unsigned int prevLen = _label.length();
150 unsigned int newLen = label.length();
152 lcd()->setCursor(0, 0);
154 while (newLen++ < prevLen)
virtual void enterField(bool reverse)
Enters the field due to form navigation.
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...