| wicket.extensions.markup.html.tree.table.IColumn
All known Subclasses: wicket.extensions.markup.html.tree.table.AbstractColumn,
getLocation | ColumnLocation getLocation()(Code) | | Returns a location of this column. Location specifies how is column
aligned and what is it's size.
In case location of a column changes, it is necessary to call the
invalidateAll methods on the
TreeTable to prevent
incorrect rendering.
The location of this column |
getSpan | int getSpan(TreeNode node)(Code) | | Returns the span for this cell. This method is called only for cells that
are aligned in the middle.
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.
Parameters: node - The tree node The span of the column |
isVisible | boolean isVisible()(Code) | | Returns, whether the column is visible.
In case the visibility changes, it is necessary to call the
invalidateAll methods on the
TreeTable to prevent
incorrect rendering.
Whether the column is visible |
newCell | Component newCell(MarkupContainer parent, String id, TreeNode node, int level)(Code) | | This method is used to populate the cell for given node in case when
IColumn.newCell(TreeNodeint) returned null.
Parameters: parent - The parent to which the cell must be added. Can also be usedto find the TreeTable instance (usingparent.findParent(TreeTable.cass) ) Parameters: id - The component id Parameters: node - TreeNode for the cell Parameters: level - Convenience parameter that indicates how deep the node is inhierarchy The populated cell component |
newCell | IRenderable newCell(TreeNode node, int level)(Code) | | Creates the
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,
IColumn.newCell(MarkupContainerStringTreeNodeint) is used
to popuplate the cell.
Parameters: node - TreeNode for the cell Parameters: level - Convenience parameter that indicates how deep the node is inhierarchy The cell renderer |
newHeader | Component newHeader(MarkupContainer parent, String id)(Code) | | Creates the header element for this column. In most situations this will
be just a simple label showing column title.
Parameters: parent - The parent component Parameters: id - The component id The header component |
setTreeTable | void setTreeTable(TreeTable treeTable)(Code) | | Sets the tree table this cell belongs to. This function is guaranteed to
be called before any other function. The treeTable instance is fully
initialized.
Parameters: treeTable - The tree table |
|
|