T
- tree model object typeI
- node model object typepublic abstract class AbstractTreeColumn<T extends TreeModel & Serializable,I extends TreeNode & Serializable,S> extends BaseTreeColumn<T,I,S>
TreeGrid
column that contains the actual tree.Constructor and Description |
---|
AbstractTreeColumn(String columnId,
org.apache.wicket.model.IModel<String> headerModel)
Creates instance with specified column id and header model
|
AbstractTreeColumn(String columnId,
org.apache.wicket.model.IModel<String> headerModel,
S sortProperty)
Creates instance with specified column id, header model and sort property.
|
Modifier and Type | Method and Description |
---|---|
protected Icon |
getIcon(org.apache.wicket.model.IModel<I> model)
Returns the icon for given
TreeNode . |
IRenderable<I> |
newCell(org.apache.wicket.model.IModel<I> rowModel)
Creates a new
IRenderable instance that is used to render to render the output of
cell for given row. |
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.
|
getTreeGrid, setGrid
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
public AbstractTreeColumn(String columnId, org.apache.wicket.model.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 sortedprotected Icon getIcon(org.apache.wicket.model.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 displayedprotected abstract org.apache.wicket.Component newNodeComponent(String id, org.apache.wicket.model.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 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 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 rowpublic final IRenderable<I> newCell(org.apache.wicket.model.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 rowIRenderable
instanceCopyright © 2015. All rights reserved.