|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.visualization.client.Selection
public class Selection
Selection stores information about the current selection.
Constructor Summary | |
---|---|
protected |
Selection()
|
Method Summary | ||
---|---|---|
static
|
addSelectHandler(E viz,
SelectHandler handler)
Add a SelectHandler to an AbstractVisualization. |
|
static Selection |
createCellSelection(int row,
int column)
Create a selection that specifies a row and a column. |
|
static Selection |
createColumnSelection(int i)
Create a selection with a null row. |
|
static Selection |
createRowSelection(int i)
Create a selection with a null column. |
|
int |
getColumn()
|
|
int |
getRow()
|
|
static
|
getSelections(E viz)
Get the Selections that are currently selected. |
|
boolean |
isCell()
|
|
boolean |
isColumn()
|
|
boolean |
isRow()
|
|
static
|
setSelections(E viz,
com.google.gwt.core.client.JsArray<Selection> selections)
Set the selections that will be selected. |
|
static
|
triggerSelection(E viz,
com.google.gwt.core.client.JsArray<Selection> selections)
Trigger a select event. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Selection()
Method Detail |
---|
public static <E extends Visualization<?>,Selectable> void addSelectHandler(E viz, SelectHandler handler)
viz
- An AbstractVisualization that implements Selectable.handler
- The SelectHandler to add.public static Selection createCellSelection(int row, int column)
row
- the row of the selection.column
- The column of the selection.
public static Selection createColumnSelection(int i)
i
- The column of the selection.
public static Selection createRowSelection(int i)
i
- The row of the selection.
public static final <E extends Visualization<?>,Selectable> com.google.gwt.core.client.JsArray<Selection> getSelections(E viz)
viz
- A Selectable visualization.
public static final <E extends Visualization<?>,Selectable> void setSelections(E viz, com.google.gwt.core.client.JsArray<Selection> selections)
viz
- A Selectable visualization.selections
- The Selections that will be selected.public static <E extends Visualization<?>,Selectable> void triggerSelection(E viz, com.google.gwt.core.client.JsArray<Selection> selections)
viz
- A Selectable visualization.selections
- The selections that will be selected.public final int getColumn()
public final int getRow()
public final boolean isCell()
true
if the selection is a cell,
otherwise false
.public final boolean isColumn()
true
if the selection is a column,
otherwise false
.public final boolean isRow()
true
if the selection is a row,
otherwise false
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |