|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.extensions.markup.html.tree.table.AbstractColumn
public abstract class AbstractColumn
Convenience class for building tree columns.
| Constructor Summary | |
|---|---|
AbstractColumn(ColumnLocation location,
String header)
Creates the tree column. |
|
| Method Summary | |
|---|---|
ColumnLocation |
getLocation()
Returns a location of this column. |
int |
getSpan(TreeNode node)
Returns the span for this cell. |
protected TreeTable |
getTreeTable()
Returns the tree table that this columns belongs to. |
boolean |
isVisible()
Returns, whether the column is visible. |
Component |
newHeader(MarkupContainer parent,
String id)
Creates the header element for this column. |
void |
setTreeTable(TreeTable treeTable)
Sets the tree table this cell belongs to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.wicket.extensions.markup.html.tree.table.IColumn |
|---|
newCell, newCell |
| Constructor Detail |
|---|
public AbstractColumn(ColumnLocation location,
String header)
location - Specifies how the column should be aligned and what his size should beheader - Header caption| Method Detail |
|---|
public ColumnLocation getLocation()
IColumn
In case location of a column changes, it is necessary to call the invalidateAll
methods on the TreeTable to prevent incorrect rendering.
getLocation in interface IColumnIColumn.getLocation()public int getSpan(TreeNode node)
IColumnThe 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.
getSpan in interface IColumnnode - The tree node
IColumn.getSpan(TreeNode)public boolean isVisible()
IColumn
In case the visibility changes, it is necessary to call the invalidateAll
methods on the TreeTable to prevent incorrect rendering.
isVisible in interface IColumnIColumn.isVisible()
public Component newHeader(MarkupContainer parent,
String id)
IColumn
newHeader in interface IColumnparent - The parent componentid - The component id
IColumn.newHeader(MarkupContainer, String)public void setTreeTable(TreeTable treeTable)
IColumn
setTreeTable in interface IColumntreeTable - The tree tableIColumn.setTreeTable(TreeTable)protected TreeTable getTreeTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||