|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.extensions.markup.html.tree.table.AbstractColumn
wicket.extensions.markup.html.tree.table.AbstractTreeColumn
Convenience class for building tree columns, i.e. columns that contain the actual tree.
| Constructor Summary | |
AbstractTreeColumn(ColumnLocation location,
java.lang.String header)
Creates new column. |
|
| Method Summary | |
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 IColumn.newCell(TreeNode, int) returned null. |
IRenderable |
newCell(javax.swing.tree.TreeNode node,
int level)
Creates the IRenderable instance for given node. |
abstract java.lang.String |
renderNode(javax.swing.tree.TreeNode node)
Returns the string representation of the node. |
| Methods inherited from class wicket.extensions.markup.html.tree.table.AbstractColumn |
getLocation, getSpan, getTreeTable, isVisible, newHeader, setTreeTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractTreeColumn(ColumnLocation location,
java.lang.String header)
location - Specifies how the column should be aligned and what his size
should beheader - Header caption| Method Detail |
public wicket.Component newCell(wicket.MarkupContainer parent,
java.lang.String id,
javax.swing.tree.TreeNode node,
int level)
IColumnIColumn.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
IColumn.newCell(MarkupContainer, String, TreeNode, int)
public IRenderable newCell(javax.swing.tree.TreeNode node,
int level)
IColumnIRenderable 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,
IColumn.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
IColumn.newCell(TreeNode, int)public abstract java.lang.String renderNode(javax.swing.tree.TreeNode node)
node - The node
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||