com.extjs.gxt.ui.client.widget.treegrid
Class TreeGridCellRenderer<M extends ModelData>
java.lang.Object
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.
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 |
TreeGridCellRenderer
public TreeGridCellRenderer()
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 modelproperty
- the model propertyconfig
- the column configrowIndex
- the row indexcolIndex
- the cell indexstore
- the data storegrid
- 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)