com.vaadin.client.ui.grid.selection
Interface SelectionModel.Single<T>

Type Parameters:
T - type parameter corresponding with Grid row type
All Superinterfaces:
SelectionModel<T>
All Known Implementing Classes:
SelectionModelSingle
Enclosing interface:
SelectionModel<T>

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

Selection model that allows a maximum of one row to be selected at any one time.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.client.ui.grid.selection.SelectionModel
SelectionModel.Multi<T>, SelectionModel.None<T>, SelectionModel.Single<T>
 
Method Summary
 boolean deselect(T row)
          Deselects a row.
 T getSelectedRow()
          Returns the currently selected row.
 boolean select(T row)
          Selects a row.
 
Methods inherited from interface com.vaadin.client.ui.grid.selection.SelectionModel
getSelectedRows, getSelectionColumnRenderer, isSelected, reset, setGrid
 

Method Detail

select

boolean select(T row)
Selects a row.

Parameters:
row - a Grid row object
Returns:
true, if this row as not previously selected.

deselect

boolean deselect(T row)
Deselects a row.

This is a no-op unless row is the currently selected row.

Parameters:
row - a Grid row object
Returns:
true, if the currently selected row was deselected.

getSelectedRow

T getSelectedRow()
Returns the currently selected row.

Returns:
a Grid row object or null, if nothing is selected.


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