Example usage for com.vaadin.v7.client.widgets Grid addBodyClickHandler

List of usage examples for com.vaadin.v7.client.widgets Grid addBodyClickHandler

Introduction

In this page you can find the example usage for com.vaadin.v7.client.widgets Grid addBodyClickHandler.

Prototype

public HandlerRegistration addBodyClickHandler(BodyClickHandler handler) 

Source Link

Document

Register a BodyClickHandler to this Grid.

Usage

From source file:com.haulmont.cuba.web.widgets.client.grid.selection.CubaMultiSelectionModelConnector.java

License:Apache License

@Override
protected void extend(ServerConnector target) {
    super.extend(target);

    if (!Tools.isUseSimpleMultiselectForTouchDevice()) {
        if (clickHandler != null) {
            clickHandler.removeHandler();
            clickHandler = null;//w  w w.j  a  v  a2 s .com
        }

        Grid<JsonObject> grid = getGrid();
        BodyClickHandler handler = createBodyClickHandler(grid);
        clickHandler = grid.addBodyClickHandler(handler);
    }
}