|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.view.client.SelectionModel.AbstractSelectionModel<T> com.google.gwt.view.client.NoSelectionModel<T>
T
- the record data typepublic class NoSelectionModel<T>
A selection model that does not allow selection, but fires selection change events. Use this model if you want to know when a user selects an item, but do not want the view to update based on the selection.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.google.gwt.view.client.SelectionModel |
---|
SelectionModel.AbstractSelectionModel<T> |
Constructor Summary | |
---|---|
NoSelectionModel()
Constructs a NoSelectionModel without a key provider. |
|
NoSelectionModel(ProvidesKey<T> keyProvider)
Constructs a NoSelectionModel with the given key provider. |
Method Summary | |
---|---|
T |
getLastSelectedObject()
Gets the item that was last selected. |
boolean |
isSelected(T item)
Check if an object is selected. |
void |
setSelected(T item,
boolean selected)
Set the selected state of an object and fire a SelectionChangeEvent if the selection has
changed. |
Methods inherited from class com.google.gwt.view.client.SelectionModel.AbstractSelectionModel |
---|
addSelectionChangeHandler, fireEvent, fireSelectionChangeEvent, getKey, getKeyProvider, isEventCancelled, isEventScheduled, scheduleSelectionChangeEvent, setEventCancelled, setEventScheduled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoSelectionModel()
public NoSelectionModel(ProvidesKey<T> keyProvider)
keyProvider
- an instance of ProvidesKeyMethod Detail |
---|
public T getLastSelectedObject()
public boolean isSelected(T item)
SelectionModel
item
- the object
public void setSelected(T item, boolean selected)
SelectionModel
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.
item
- the object to select or deselectselected
- true to select, false to deselect
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |