Package com.google.gwt.cell.client
Class Cell.Context
- java.lang.Object
-
- com.google.gwt.cell.client.Cell.Context
-
-
Constructor Summary
Constructors Constructor Description Context(int index, int column, java.lang.Object key)Create a newCell.Context.Context(int index, int column, java.lang.Object key, int subindex)Create a newCell.Context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()Get the column index of the cell.intgetIndex()Get the absolute index of the value.java.lang.ObjectgetKey()Get the key that uniquely identifies the row object.intgetSubIndex()Get the sub index of the rendered row value.
-
-
-
Constructor Detail
-
Context
public Context(int index, int column, java.lang.Object key)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
public Context(int index, int column, java.lang.Object key, int subindex)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 Detail
-
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
public java.lang.Object 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.
-
-