com.extjs.gxt.ui.client.widget.treegrid
Class TreeGridCellRenderer<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.treegrid.TreeGridCellRenderer<M>
All Implemented Interfaces:
GridCellRenderer<M>
Direct Known Subclasses:
WidgetTreeGridCellRenderer

public class TreeGridCellRenderer<M extends ModelData>
extends java.lang.Object
implements GridCellRenderer<M>

A GridCellRenderer that renders a tree into it's column. Renderer may be used in any column, not just the first.


Constructor Summary
TreeGridCellRenderer()
           
 
Method Summary
protected  TreePanel.Joint calcualteJoint(TreeGrid<M> grid, M model, java.lang.String property, int rowIndex, int colIndex)
           
protected  com.google.gwt.user.client.ui.AbstractImagePrototype calculateIconStyle(TreeGrid<M> grid, M model, java.lang.String property, int rowIndex, int colIndex)
           
protected  java.lang.String getId(TreeGrid<M> grid, M model, java.lang.String property, int rowIndex, int colIndex)
           
protected  java.lang.String getText(TreeGrid<M> grid, M model, java.lang.String property, int rowIndex, int colIndex)
           
 java.lang.Object render(M model, java.lang.String property, ColumnData config, int rowIndex, int colIndex, ListStore<M> store, Grid<M> grid)
          Returns the HTML to be used in a grid cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeGridCellRenderer

public TreeGridCellRenderer()
Method Detail

render

public java.lang.Object render(M model,
                               java.lang.String property,
                               ColumnData config,
                               int rowIndex,
                               int colIndex,
                               ListStore<M> store,
                               Grid<M> grid)
Description copied from interface: GridCellRenderer
Returns the HTML to be used in a grid cell.

Specified by:
render in interface GridCellRenderer<M extends ModelData>
Parameters:
model - the model
property - the model property
config - the column config
rowIndex - the row index
colIndex - the cell index
store - the data store
grid - the grid
Returns:
the cell HTML or Component instance

calcualteJoint

protected TreePanel.Joint calcualteJoint(TreeGrid<M> grid,
                                         M model,
                                         java.lang.String property,
                                         int rowIndex,
                                         int colIndex)

calculateIconStyle

protected com.google.gwt.user.client.ui.AbstractImagePrototype calculateIconStyle(TreeGrid<M> grid,
                                                                                  M model,
                                                                                  java.lang.String property,
                                                                                  int rowIndex,
                                                                                  int colIndex)

getId

protected java.lang.String getId(TreeGrid<M> grid,
                                 M model,
                                 java.lang.String property,
                                 int rowIndex,
                                 int colIndex)

getText

protected java.lang.String getText(TreeGrid<M> grid,
                                   M model,
                                   java.lang.String property,
                                   int rowIndex,
                                   int colIndex)