java.lang.Object | ||
↳ | com.google.gwt.view.client.SelectionModel.AbstractSelectionModel<T> | |
↳ | com.google.gwt.view.client.DefaultSelectionModel<T> |
A convenience SelectionModel
that allows records to be selected
according to a subclass-defined rule, plus a list of positive or negative
exceptions.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a DefaultSelectionModel without a key provider.
| |||||||||||
Constructs a DefaultSelectionModel with the given key provider.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Removes all exceptions.
| |||||||||||
Returns true if the given object should be selected by default.
| |||||||||||
If the given object is marked as an exception, return the exception value.
| |||||||||||
Sets an object's selection state.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fire a
SelectionChangeEvent . | |||||||||||
Copies the exceptions map into a user-supplied map.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.view.client.SelectionModel.AbstractSelectionModel
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.view.client.ProvidesKey
| |||||||||||
From interface
com.google.gwt.view.client.SelectionModel
|
Constructs a DefaultSelectionModel without a key provider.
Constructs a DefaultSelectionModel with the given key provider.
keyProvider | an instance of ProvidesKey |
---|
Removes all exceptions.
Returns true if the given object should be selected by default. Subclasses implement this method in order to define the default selection behavior.
object | an object of this SelectionModel 's type |
---|
If the given object is marked as an exception, return the exception value. Otherwise, return the value of isDefaultSelected for the given object.
Sets an object's selection state. If the object is currently marked as an exception, and the new selected state differs from the previous selected state, the object is removed from the list of exceptions. Otherwise, the object is added to the list of exceptions with the given selected state.
Fire a SelectionChangeEvent
. Multiple firings may be coalesced.
Copies the exceptions map into a user-supplied map.
output | the user supplied map |
---|