com.vaadin.client.widget.grid.selection
Class ClickSelectHandler<T>

java.lang.Object
  extended by com.vaadin.client.widget.grid.selection.ClickSelectHandler<T>

public class ClickSelectHandler<T>
extends java.lang.Object

Generic class to perform selections when clicking on cells in body of Grid.

Since:
7.4
Author:
Vaadin Ltd

Constructor Summary
ClickSelectHandler(Grid<T> grid)
          Constructor for ClickSelectHandler.
 
Method Summary
 void removeHandler()
          Clean up function for removing all now obsolete handlers.
 void setDeselectAllowed(boolean deselectAllowed)
          Sets whether clicking the currently selected row should deselect the row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickSelectHandler

public ClickSelectHandler(Grid<T> grid)
Constructor for ClickSelectHandler. This constructor will add all necessary handlers for selecting rows by clicking cells.

Parameters:
grid - grid to attach to
Method Detail

removeHandler

public void removeHandler()
Clean up function for removing all now obsolete handlers.


setDeselectAllowed

public void setDeselectAllowed(boolean deselectAllowed)
Sets whether clicking the currently selected row should deselect the row.

Parameters:
deselectAllowed - true to allow deselecting the selected row; otherwise false


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