T - tree model object typeI - node model object typepublic abstract class BaseTreeColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S> extends AbstractColumn<T,I,S>
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 and Description |
|---|
BaseTreeColumn(String columnId,
org.apache.wicket.model.IModel<String> headerModel)
Constructor.
|
BaseTreeColumn(String columnId,
org.apache.wicket.model.IModel<String> headerModel,
S sortProperty)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Icon |
getIcon(org.apache.wicket.model.IModel<I> model)
Returns the icon for given
TreeNode. |
TreeGrid<T,I,S> |
getTreeGrid()
Returns the
TreeGrid this column belongs to. |
org.apache.wicket.Component |
newCell(org.apache.wicket.markup.html.WebMarkupContainer parent,
String componentId,
org.apache.wicket.model.IModel<I> rowModel)
Creates a new cell component.
|
protected abstract org.apache.wicket.Component |
newNodeComponent(String id,
org.apache.wicket.model.IModel<I> model)
Creates the node component.
|
void |
setGrid(AbstractGrid<T,I,S> grid)
Invoked before the first render of the grid.
|
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, setWrapTextpublic BaseTreeColumn(String columnId, org.apache.wicket.model.IModel<String> headerModel, S sortProperty)
columnId - headerModel - sortProperty - public org.apache.wicket.Component newCell(org.apache.wicket.markup.html.WebMarkupContainer parent,
String componentId,
org.apache.wicket.model.IModel<I> rowModel)
IGridColumn.isLightWeight(IModel) returns false ).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>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 rowprotected abstract org.apache.wicket.Component newNodeComponent(String id, org.apache.wicket.model.IModel<I> model)
id - component idmodel - model used to access the TreeNodeprotected abstract Icon getIcon(org.apache.wicket.model.IModel<I> model)
TreeNode.model - model used to access the TreeNodenull if no icon should be displayedpublic TreeGrid<T,I,S> getTreeGrid()
TreeGrid this column belongs to.TreeGrid this column belongs to.public void setGrid(AbstractGrid<T,I,S> grid)
setGrid in interface IGridColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>setGrid in class AbstractColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S>grid - grid that contains this columnCopyright © 2015. All rights reserved.