|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.inmethod.grid.column.AbstractColumn<T,I,S>
com.inmethod.grid.treegrid.BaseTreeColumn<T,I,S>
com.inmethod.grid.column.tree.AbstractTreeColumn<T,I,S>
T - tree model object typeI - node model object typepublic abstract class AbstractTreeColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>
Base class for TreeGrid column that contains the actual tree.
| Constructor Summary | |
|---|---|
AbstractTreeColumn(String columnId,
IModel<String> headerModel)
Creates instance with specified column id and header model |
|
AbstractTreeColumn(String columnId,
IModel<String> headerModel,
S sortProperty)
Creates instance with specified column id, header model and sort property. |
|
| Method Summary | |
|---|---|
protected Icon |
getIcon(IModel<I> model)
Returns the icon for given TreeNode. |
IRenderable<I> |
newCell(IModel<I> rowModel)
Creates a new IRenderable instance that is used to render to render the output of
cell for given row. |
Component |
newCell(WebMarkupContainer parent,
String componentId,
IModel<I> rowModel)
Creates a new cell component. |
protected abstract Component |
newNodeComponent(String id,
IModel<I> model)
Creates the node component. |
| Methods inherited from class com.inmethod.grid.treegrid.BaseTreeColumn |
|---|
getTreeGrid, setGrid |
| Methods inherited from class com.inmethod.grid.column.AbstractColumn |
|---|
cellClicked, detach, getCellCssClass, getColSpan, getGrid, getHeaderCssClass, getHeaderModel, getHeaderTooltipModel, getId, getInitialSize, getMaxSize, getMinSize, getSizeUnit, getSortProperty, getWrapText, isLightWeight, isReorderable, isResizable, newHeader, setHeaderTooltipModel, setInitialSize, setMaxSize, setMinSize, setReorderable, setResizable, setSizeUnit, setWrapText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTreeColumn(String columnId,
IModel<String> headerModel,
S sortProperty)
columnId - column identifier - must be unique within the gridheaderModel - model for column titlesortProperty - optional string that will be returned by ISortState to indicate that the
column is being sorted
public AbstractTreeColumn(String columnId,
IModel<String> headerModel)
columnId - column identifier - must be unique within the gridheaderModel - model for column title| Method Detail |
|---|
protected Icon getIcon(IModel<I> model)
TreeNode.
getIcon in class BaseTreeColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>model - model used to access the TreeNode
null if no icon should be displayed
protected abstract Component newNodeComponent(String id,
IModel<I> model)
newNodeComponent in class BaseTreeColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>id - component idmodel - model used to access the TreeNode
public final Component newCell(WebMarkupContainer parent,
String componentId,
IModel<I> rowModel)
IGridColumn.isLightWeight(IModel) returns false ).
newCell in interface IGridColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>newCell in class BaseTreeColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>parent - Parent component. This is passed in only for convenience, the method
implementation is not supposed to add the newly created component to the
parent.componentId - required id of newly created componentsrowModel - model for given row
public final IRenderable<I> newCell(IModel<I> rowModel)
IRenderable instance that is used to render to render the output of
cell for given row. This method is called for rows that are lightweight (
IGridColumn.isLightWeight(IModel) returns true ).
newCell in interface IGridColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>newCell in class AbstractColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>rowModel - model for given row
IRenderable instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||