|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface that represents a column in TreeTable.
| Method Summary | |
ColumnLocation |
getLocation()
Returns a location of this column. |
int |
getSpan(javax.swing.tree.TreeNode node)
Returns the span for this cell. |
boolean |
isVisible()
Returns, whether the column is visible. |
wicket.Component |
newCell(wicket.MarkupContainer parent,
java.lang.String id,
javax.swing.tree.TreeNode node,
int level)
This method is used to populate the cell for given node in case when newCell(TreeNode, int) returned null. |
IRenderable |
newCell(javax.swing.tree.TreeNode node,
int level)
Creates the IRenderable instance for given node. |
wicket.Component |
newHeader(wicket.MarkupContainer parent,
java.lang.String id)
Creates the header element for this column. |
void |
setTreeTable(TreeTable treeTable)
Sets the tree table this cell belongs to. |
| Method Detail |
public ColumnLocation getLocation()
In case location of a column changes, it is necessary to call the
invalidateAll methods on the TreeTable to prevent
incorrect rendering.
public int getSpan(javax.swing.tree.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 node
public boolean isVisible()
In case the visibility changes, it is necessary to call the
invalidateAll methods on the TreeTable to prevent
incorrect rendering.
public wicket.Component newCell(wicket.MarkupContainer parent,
java.lang.String id,
javax.swing.tree.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
hierarchy
public IRenderable newCell(javax.swing.tree.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
hierarchy
public wicket.Component newHeader(wicket.MarkupContainer parent,
java.lang.String id)
parent - The parent componentid - The component id
public void setTreeTable(TreeTable treeTable)
treeTable - The tree table
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||