com.vaadin.client.widget.grid.selection
Interface SelectionModel.Multi<T>

Type Parameters:
T - type parameter corresponding with Grid row type
All Superinterfaces:
SelectionModel<T>
All Known Subinterfaces:
SelectionModel.Multi.Batched<T>
All Known Implementing Classes:
MultiSelectionModelConnector.MultiSelectionModel, SelectionModelMulti
Enclosing interface:
SelectionModel<T>

public static interface SelectionModel.Multi<T>
extends SelectionModel<T>

Selection model that allows for several rows to be selected at once.


Nested Class Summary
static interface SelectionModel.Multi.Batched<T>
          A multi selection model that can send selections and deselections in a batch, instead of committing them one-by-one.
 
Nested classes/interfaces inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T>
 
Method Summary
 boolean deselect(java.util.Collection<T> rows)
          Deselect all rows in a Collection.
 boolean deselect(T... rows)
          Deselects one or more rows.
 boolean deselectAll()
          De-selects all rows.
 boolean select(java.util.Collection<T> rows)
          Select all rows in a Collection.
 boolean select(T... rows)
          Selects one or more rows.
 
Methods inherited from interface com.vaadin.client.widget.grid.selection.SelectionModel
getSelectedRows, getSelectionColumnRenderer, isSelected, reset, setGrid
 

Method Detail

select

boolean select(T... rows)
Selects one or more rows.

Parameters:
rows - Grid row objects
Returns:
true, if the set of selected rows was changed.

deselect

boolean deselect(T... rows)
Deselects one or more rows.

Parameters:
rows - Grid row objects
Returns:
true, if the set of selected rows was changed.

deselectAll

boolean deselectAll()
De-selects all rows.

Returns:
true, if any row was previously selected.

select

boolean select(java.util.Collection<T> rows)
Select all rows in a Collection.

Parameters:
rows - a collection of Grid row objects
Returns:
true, if the set of selected rows was changed.

deselect

boolean deselect(java.util.Collection<T> rows)
Deselect all rows in a Collection.

Parameters:
rows - a collection of Grid row objects
Returns:
true, if the set of selected rows was changed.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.