|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<SelectionHandler>
com.vaadin.client.widget.grid.selection.SelectionEvent<T>
public class SelectionEvent<T>
Event object describing a change in Grid row selection state.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
com.google.gwt.event.shared.GwtEvent.Type<H> |
| Constructor Summary | |
|---|---|
SelectionEvent(Grid<T> grid,
java.util.Collection<T> added,
java.util.Collection<T> removed,
boolean batched)
Creates an event where several rows have been added or removed. |
|
SelectionEvent(Grid<T> grid,
T added,
T removed,
boolean batched)
Creates an event with a single added or removed row. |
|
| Method Summary | |
|---|---|
protected void |
dispatch(SelectionHandler handler)
|
java.util.Collection<T> |
getAdded()
Gets all rows added to the selection since the last SelectionEvent . |
com.google.gwt.event.shared.GwtEvent.Type<SelectionHandler> |
getAssociatedType()
|
java.util.Collection<T> |
getRemoved()
Gets all rows removed from the selection since the last SelectionEvent. |
java.util.Collection<T> |
getSelected()
Gets currently selected rows. |
Grid<T> |
getSource()
Gets a reference to the Grid object that fired this event. |
static com.google.gwt.event.shared.GwtEvent.Type<SelectionHandler> |
getType()
Gets a type identifier for this event. |
boolean |
isBatchedSelection()
Checks if this selection change event is fired during a batched selection/deselection operation. |
| Methods inherited from class com.google.gwt.event.shared.GwtEvent |
|---|
assertLive, isLive, kill, revive |
| Methods inherited from class com.google.web.bindery.event.shared.Event |
|---|
setSource, toDebugString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionEvent(Grid<T> grid,
T added,
T removed,
boolean batched)
grid - grid reference, used for getSourceadded - the added row, or null if a row was not addedremoved - the removed row, or null if a row was not removedbatched - whether or not this selection change event is triggered during
a batched selection/deselection actionSelectionModel.Multi.Batched
public SelectionEvent(Grid<T> grid,
java.util.Collection<T> added,
java.util.Collection<T> removed,
boolean batched)
grid - Grid reference, used for getSourceadded - a collection of added rows, or null if no rows
were addedremoved - a collection of removed rows, or null if no rows
were removedbatched - whether or not this selection change event is triggered during
a batched selection/deselection actionSelectionModel.Multi.Batched| Method Detail |
|---|
public Grid<T> getSource()
public java.util.Collection<T> getAdded()
SelectionEvent .
public java.util.Collection<T> getRemoved()
SelectionEvent.
public java.util.Collection<T> getSelected()
public static com.google.gwt.event.shared.GwtEvent.Type<SelectionHandler> getType()
Type identifier.public com.google.gwt.event.shared.GwtEvent.Type<SelectionHandler> getAssociatedType()
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<SelectionHandler>protected void dispatch(SelectionHandler handler)
dispatch in class com.google.gwt.event.shared.GwtEvent<SelectionHandler>public boolean isBatchedSelection()
true iff this event is fired during a batched
selection/deselection operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||