com.vaadin.client.widget.grid.events.
Class SelectAllEvent<T>
- java.lang.Object
-
- com.google.web.bindery.event.shared.Event<H>
-
- com.google.gwt.event.shared.GwtEvent<SelectAllHandler<T>>
-
- com.vaadin.client.widget.grid.events.SelectAllEvent<T>
-
Type Parameters:
T
- the type of the rows in gridpublic class SelectAllEvent<T> extends com.google.gwt.event.shared.GwtEvent<SelectAllHandler<T>>
A select all event, fired by the Grid when it needs all rows in data source to be selected, OR when all rows have been selected and are now deselected.
Since:
7.4
Author:
Vaadin Ltd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H extends Object>
-
-
Constructor Summary
Constructors Constructor Description SelectAllEvent(SelectionModel<T> selectionModel)
Constructs a new select all event when all rows in grid are selected.
SelectAllEvent(SelectionModel<T> selectionModel, boolean allSelected)
-
Method Summary
All Methods Modifier and Type Method Description protected void
dispatch(SelectAllHandler<T> handler)
com.google.gwt.event.shared.GwtEvent.Type<SelectAllHandler<T>>
getAssociatedType()
SelectionModel<T>
getSelectionModel()
The selection model in use.
static com.google.gwt.event.shared.GwtEvent.Type<SelectAllHandler<?>>
getType()
Gets the type of the handlers for this event.
boolean
isAllSelected()
Returns whether all the rows were selected, or deselected.
-
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
-
-
-
-
Constructor Detail
-
SelectAllEvent
public SelectAllEvent(SelectionModel<T> selectionModel)
Constructs a new select all event when all rows in grid are selected.
Parameters:
selectionModel
- the selection model in use
-
SelectAllEvent
public SelectAllEvent(SelectionModel<T> selectionModel, boolean allSelected)
Parameters:
selectionModel
- the selection model in useallSelected
-true
for all selected,false
for all deselected
-
-
Method Detail
-
getType
public static final com.google.gwt.event.shared.GwtEvent.Type<SelectAllHandler<?>> getType()
Gets the type of the handlers for this event.
Returns:
the handler type
-
getAssociatedType
public com.google.gwt.event.shared.GwtEvent.Type<SelectAllHandler<T>> getAssociatedType()
Specified by:
getAssociatedType
in classcom.google.gwt.event.shared.GwtEvent<SelectAllHandler<T>>
-
dispatch
protected void dispatch(SelectAllHandler<T> handler)
Specified by:
dispatch
in classcom.google.gwt.event.shared.GwtEvent<SelectAllHandler<T>>
-
getSelectionModel
public SelectionModel<T> getSelectionModel()
The selection model in use.
Returns:
the selection model
-
isAllSelected
public boolean isAllSelected()
Returns whether all the rows were selected, or deselected. Deselection can only happen if all rows were previously selected.
Returns:
true
for selecting all rows, orfalse
for deselecting all rows
-
-