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 . |
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.Batched
public 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.Batched
public Grid<T> getSource()
getSource
in class com.google.gwt.event.shared.GwtEvent<SelectionHandler>
public Collection<T> getAdded()
SelectionEvent
.public Collection<T> getRemoved()
SelectionEvent
.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
if this event is fired during a batched
selection/deselection operationCopyright © 2019 Vaadin Ltd. All rights reserved.