@Deprecated public interface IColumn extends org.apache.wicket.util.io.IClusterable
TreeTable.| Modifier and Type | Method and Description |
|---|---|
ColumnLocation |
getLocation()
Deprecated.
Returns a location of this column.
|
int |
getSpan(TreeNode node)
Deprecated.
Returns the span for this cell.
|
boolean |
isVisible()
Deprecated.
Returns, whether the column is visible.
|
org.apache.wicket.Component |
newCell(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node,
int level)
Deprecated.
This method is used to populate the cell for given node in case when
newCell(TreeNode, int) returned null. |
IRenderable |
newCell(TreeNode node,
int level)
Deprecated.
Creates the
IRenderable instance for given node. |
org.apache.wicket.Component |
newHeader(org.apache.wicket.MarkupContainer parent,
String id)
Deprecated.
Creates the header element for this column.
|
void |
setTreeTable(TreeTable treeTable)
Deprecated.
Sets the tree table this cell belongs to.
|
ColumnLocation getLocation()
In case location of a column changes, it is necessary to call the invalidateAll
methods on the TreeTable to prevent incorrect rendering.
int getSpan(TreeNode node)
The returned value implicates, over how many cells the cell in this column (in row determined by node) should span. This is analogical to colspan property of html element td.
node - The tree nodeboolean isVisible()
In case the visibility changes, it is necessary to call the invalidateAll
methods on the TreeTable to prevent incorrect rendering.
org.apache.wicket.Component newCell(org.apache.wicket.MarkupContainer parent,
String id,
TreeNode node,
int level)
newCell(TreeNode, int) returned null.parent - The parent to which the cell must be added. Can also be used to find the TreeTable
instance (using parent.findParent(TreeTable.cass))id - The component idnode - TreeNode for the celllevel - Convenience parameter that indicates how deep the node is in hierarchyIRenderable newCell(TreeNode node, int level)
IRenderable instance for given node. IRenderable can be used as
lightweight alternative to regular Component for cells, that don't require user interaction
(just display data).
If this method returns null, newCell(MarkupContainer, String, TreeNode, int)
is used to popuplate the cell.
node - TreeNode for the celllevel - Convenience parameter that indicates how deep the node is in hierarchyorg.apache.wicket.Component newHeader(org.apache.wicket.MarkupContainer parent,
String id)
parent - The parent componentid - The component idvoid setTreeTable(TreeTable treeTable)
treeTable - The tree tableCopyright © 2016. All Rights Reserved.