Package com.google.gwt.cell.client
Class Cell.Context
java.lang.Object
com.google.gwt.cell.client.Cell.Context
Contains information about the context of the Cell.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Context
Create a newCell.Context
.- Parameters:
index
- the absolute index of the valuecolumn
- the column index of the cell, or 0key
- the unique key that represents the row value
-
Context
Create a newCell.Context
.- Parameters:
index
- the absolute index of the valuecolumn
- the column index of the cell, or 0key
- the unique key that represents the row valuesubindex
- the child index
-
-
Method Details
-
getColumn
public int getColumn()Get the column index of the cell. If the view only contains a single column, this method returns 0.- Returns:
- the column index of the cell
-
getIndex
public int getIndex()Get the absolute index of the value.- Returns:
- the index
-
getKey
Get the key that uniquely identifies the row object.- Returns:
- the unique key
-
getSubIndex
public int getSubIndex()Get the sub index of the rendered row value. If the row value renders to a single row element, the sub index is 0. If the row value renders to more than one row element, the sub index may be greater than zero.
-