Added various methods to find out which items are selected, to select or
deselect items, and to listen to selection-events.