Example usage for com.google.gwt.visualization.client Selection createCellSelection

List of usage examples for com.google.gwt.visualization.client Selection createCellSelection

Introduction

In this page you can find the example usage for com.google.gwt.visualization.client Selection createCellSelection.

Prototype

public static native Selection createCellSelection(int row, int column) ;

Source Link

Document

Create a selection that specifies a row and a column.

Usage

From source file:com.google.gwt.visualization.sample.customvisualization.client.CustomVisualization.java

License:Apache License

public JsArray<Selection> getSelections() {
    if (cell == null) {
        return ArrayHelper.toJsArray(Selection.createCellSelection(0, 0));
    } else {/*from  w  w  w.j ava2s .c  o m*/
        // -1 because of the title row
        return ArrayHelper
                .toJsArray(Selection.createCellSelection(cell.getRowIndex() - 1, cell.getCellIndex()));
    }
}