27 #include <avr/pgmspace.h>
29 typedef PGM_P ListItem;
30 typedef const PROGMEM ListItem *ListItems;
41 ListItems
items()
const {
return _items; }
44 int value()
const {
return _value; }
ListField(const String &label)
Constructs a new list field with a specific label.
Manages a single data input/output field within a Form.
int value() const
Returns the value of this list; i.e. the index within items() of the selected item.
Form * form() const
Returns the Form that owns this field; null if not associated with a Form.
void setItems(ListItems items)
Sets the array of items for this list.
const String & label() const
Returns the label to display in the first line of this field.
ListItems items() const
Returns the array of items in this list.
void enterField(bool reverse)
Enters the field due to form navigation.
void setValue(int value)
Sets the value of this list; i.e. the index within items() of the selected item.
Field that manages selection from a static list of items.
int dispatch(int event)
Dispatches event via this field.