|
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>
T - the data type of records in the listpublic abstract static class SelectionModel.AbstractSelectionModel<T>
A default implementation of SelectionModel that provides listener
addition and removal.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.gwt.view.client.SelectionModel |
|---|
SelectionModel.AbstractSelectionModel<T> |
| Constructor Summary | |
|---|---|
protected |
SelectionModel.AbstractSelectionModel(ProvidesKey<T> keyProvider)
Construct an AbstractSelectionModel with a given key provider. |
| Method Summary | |
|---|---|
HandlerRegistration |
addSelectionChangeHandler(SelectionChangeEvent.Handler handler)
Adds a SelectionChangeEvent handler. |
void |
fireEvent(GwtEvent<?> event)
Fires the given event to the handlers listening to the event's type. |
protected void |
fireSelectionChangeEvent()
Fire a SelectionChangeEvent. |
java.lang.Object |
getKey(T item)
Get the key for a list item. |
ProvidesKey<T> |
getKeyProvider()
Returns a ProvidesKey instance that simply returns the input data
item. |
protected boolean |
isEventCancelled()
Return true if the next scheduled event should be canceled. |
protected boolean |
isEventScheduled()
Return true if an event is scheduled to be fired. |
protected void |
scheduleSelectionChangeEvent()
Schedules a SelectionChangeEvent to fire at the
end of the current event loop. |
protected void |
setEventCancelled(boolean isEventCancelled)
Set whether the next scheduled event should be canceled. |
protected void |
setEventScheduled(boolean isEventScheduled)
Set whether an event is scheduled to be fired. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.view.client.SelectionModel |
|---|
isSelected, setSelected |
| Constructor Detail |
|---|
protected SelectionModel.AbstractSelectionModel(ProvidesKey<T> keyProvider)
keyProvider - an instance of ProvidesKey| Method Detail |
|---|
public HandlerRegistration addSelectionChangeHandler(SelectionChangeEvent.Handler handler)
SelectionModelSelectionChangeEvent handler.
addSelectionChangeHandler in interface SelectionChangeEvent.HasSelectionChangedHandlersaddSelectionChangeHandler in interface SelectionModel<T>handler - the handler
public void fireEvent(GwtEvent<?> event)
HasHandlers
Any exceptions thrown by handlers will be bundled into a
UmbrellaException and then re-thrown after all handlers have
completed. An exception thrown by a handler will not prevent other handlers
from executing.
fireEvent in interface HasHandlersevent - the eventpublic java.lang.Object getKey(T item)
ProvidesKey
getKey in interface ProvidesKey<T>item - the list item
public ProvidesKey<T> getKeyProvider()
ProvidesKey instance that simply returns the input data
item.
protected void fireSelectionChangeEvent()
SelectionChangeEvent. Multiple firings may be coalesced.
protected boolean isEventCancelled()
protected boolean isEventScheduled()
protected void scheduleSelectionChangeEvent()
SelectionChangeEvent to fire at the
end of the current event loop.
protected void setEventCancelled(boolean isEventCancelled)
isEventCancelled - if true, cancel the eventprotected void setEventScheduled(boolean isEventScheduled)
isEventScheduled - if true, schedule the event
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||