public class SelectionEvent<T> extends com.google.gwt.event.shared.GwtEvent<SelectionHandler>
| Constructor and Description |
|---|
SelectionEvent(Grid<T> grid,
Collection<T> added,
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(SelectionHandler handler) |
Collection<T> |
getAdded()
Gets all rows added to the selection since the last
SelectionEvent . |
com.google.gwt.event.shared.GwtEvent.Type<SelectionHandler> |
getAssociatedType() |
Collection<T> |
getRemoved()
Gets all rows removed from the selection since the last
SelectionEvent. |
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.
|
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.Batchedpublic SelectionEvent(Grid<T> grid, Collection<T> added, 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.Batchedpublic Grid<T> getSource()
getSource in class com.google.gwt.event.shared.GwtEvent<SelectionHandler>public Collection<T> getAdded()
SelectionEvent .public Collection<T> getRemoved()
SelectionEvent.public 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 operationCopyright © 2016 Vaadin Ltd. All rights reserved.