Class Cell.Context

java.lang.Object
com.google.gwt.cell.client.Cell.Context
Enclosing interface:
Cell<C>

public static class Cell.Context extends Object
Contains information about the context of the Cell.
  • Constructor Details

    • Context

      public Context(int index, int column, Object key)
      Create a new Cell.Context.
      Parameters:
      index - the absolute index of the value
      column - the column index of the cell, or 0
      key - the unique key that represents the row value
    • Context

      public Context(int index, int column, Object key, int subindex)
      Create a new Cell.Context.
      Parameters:
      index - the absolute index of the value
      column - the column index of the cell, or 0
      key - the unique key that represents the row value
      subindex - 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

      public 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.