List Events
- List can be single-select or multiple-select
- When an item is selected or deselected an event is posted
- When item is selected, event id is LIST_SELECT
- When item is deselected, event id is LIST_DESELECT
handleEvent()
in Component does not handle these events
and returns false
- Need a custom
handleEvent()
instead
- Clean solution defines a new class SelectList with new constructors,
overridden
handleEvent()
and new methods selected()
and
deselected()
Slide 50