com.google.gwt.view.client.SelectionModel<T> |
Known Indirect Subclasses |
A model for selection within a list.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SelectionModel.AbstractSelectionModel<T> | A default implementation of SelectionModel that provides listener
addition and removal. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a
SelectionChangeEvent handler. | |||||||||||
Check if an object is selected.
| |||||||||||
Set the selected state of an object and fire a
SelectionChangeEvent if the selection has
changed. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.view.client.ProvidesKey
|
Adds a SelectionChangeEvent
handler.
handler | the handler |
---|
Check if an object is selected.
object | the object |
---|
Set the selected state of an object and fire a
SelectionChangeEvent
if the selection has
changed. Subclasses should not fire an event in the case where
selected is true and the object was already selected, or selected
is false and the object was not previously selected.
object | the object to select or deselect |
---|---|
selected | true to select, false to deselect |