|
||||||||||
| 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>
com.inmethod.grid.treegrid.BaseTreeColumn<T,I>
T - tree model object typeI - node model object typepublic abstract class BaseTreeColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable>
INTERNAL
Base class for column containing the actual tree in TreeGrid. Users should not subclass
this class directly. Rather than that the AbstractTreeColumn class should be used.
| Constructor Summary | |
|---|---|
BaseTreeColumn(String columnId,
IModel<String> headerModel)
Constructor. |
|
BaseTreeColumn(String columnId,
IModel<String> headerModel,
String sortProperty)
Constructor. |
|
| Method Summary | |
|---|---|
protected abstract Icon |
getIcon(IModel<I> model)
Returns the icon for given TreeNode. |
TreeGrid<T,I> |
getTreeGrid()
Returns the TreeGrid this column belongs to. |
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. |
void |
setGrid(AbstractGrid<T,I> grid)
Invoked before the first render of the grid. |
| 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, newCell, 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 BaseTreeColumn(String columnId,
IModel<String> headerModel,
String sortProperty)
columnId - headerModel - sortProperty -
public BaseTreeColumn(String columnId,
IModel<String> headerModel)
columnId - headerModel - | Method Detail |
|---|
public 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>newCell in class AbstractColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable>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
protected abstract Component newNodeComponent(String id,
IModel<I> model)
id - component idmodel - model used to access the TreeNode
protected abstract Icon getIcon(IModel<I> model)
TreeNode.
model - model used to access the TreeNode
null if no icon should be displayedpublic TreeGrid<T,I> getTreeGrid()
TreeGrid this column belongs to.
TreeGrid this column belongs to.public void setGrid(AbstractGrid<T,I> grid)
setGrid in interface IGridColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable>setGrid in class AbstractColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable>grid - grid that contains this column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||