|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.view.client.SelectionModel.AbstractSelectionModel<T>
com.google.gwt.view.client.DefaultSelectionModel<T>
T - the data type of records in the listpublic abstract class DefaultSelectionModel<T>
A convenience SelectionModel that allows items to be selected
according to a subclass-defined rule, plus a list of positive or negative
exceptions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.gwt.view.client.SelectionModel |
|---|
SelectionModel.AbstractSelectionModel<T> |
| Constructor Summary | |
|---|---|
DefaultSelectionModel()
Constructs a DefaultSelectionModel without a key provider. |
|
DefaultSelectionModel(ProvidesKey<T> keyProvider)
Constructs a DefaultSelectionModel with the given key provider. |
|
| Method Summary | |
|---|---|
void |
clearExceptions()
Removes all exceptions. |
protected void |
fireSelectionChangeEvent()
Fire a SelectionChangeEvent. |
protected java.util.Map<java.lang.Object,java.lang.Boolean> |
getExceptions(java.util.Map<java.lang.Object,java.lang.Boolean> output)
Copies the exceptions map into a user-supplied map. |
abstract boolean |
isDefaultSelected(T item)
Returns true if the given item should be selected by default. |
boolean |
isSelected(T item)
If the given item is marked as an exception, return the exception value. |
void |
setSelected(T item,
boolean selected)
Sets an item's selection state. |
| Methods inherited from class com.google.gwt.view.client.SelectionModel.AbstractSelectionModel |
|---|
addSelectionChangeHandler, fireEvent, 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 DefaultSelectionModel()
public DefaultSelectionModel(ProvidesKey<T> keyProvider)
keyProvider - an instance of ProvidesKey| Method Detail |
|---|
public void clearExceptions()
public abstract boolean isDefaultSelected(T item)
item - an object of this SelectionModel's type
public boolean isSelected(T item)
item - the object
public void setSelected(T item,
boolean selected)
item - the object to select or deselectselected - true to select, false to deselectprotected void fireSelectionChangeEvent()
SelectionModel.AbstractSelectionModelSelectionChangeEvent. Multiple firings may be coalesced.
fireSelectionChangeEvent in class SelectionModel.AbstractSelectionModel<T>protected java.util.Map<java.lang.Object,java.lang.Boolean> getExceptions(java.util.Map<java.lang.Object,java.lang.Boolean> output)
output - the user supplied map
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||