Package org.zkoss.pivot
Interface PivotHeaderNode
-
- All Known Implementing Classes:
SimplePivotHeaderNode
public interface PivotHeaderNodeThe representation of a node in row/column header tree.- Author:
- simonpai
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PivotHeaderNodegetChild(Object key)Find child by node key.List<? extends PivotHeaderNode>getChildren()Returns the children of the node.intgetDepth()Returns the depth of the node, 0 if root.PivotFieldgetField()Return the corresponding field of the nodeObjectgetKey()Return the key of node.PivotHeaderNodegetParent()Returns the parent of the node.intgetSize(boolean asIfOpen)TODOintgetSubtotalCount(boolean asIfOpen)TODOPivotHeaderTreegetTree()Returns the tree of the node.booleanisLeaf()Returns true if the node has no child.booleanisOpen()Returns true is the node is open.voidsetOpen(boolean open)Set the open state of the node.
-
-
-
Method Detail
-
getTree
PivotHeaderTree getTree()
Returns the tree of the node.- See Also:
PivotHeaderTree
-
getParent
PivotHeaderNode getParent()
Returns the parent of the node.
-
getChildren
List<? extends PivotHeaderNode> getChildren()
Returns the children of the node.
-
getDepth
int getDepth()
Returns the depth of the node, 0 if root.
-
isLeaf
boolean isLeaf()
Returns true if the node has no child.
-
getChild
PivotHeaderNode getChild(Object key)
Find child by node key.- Returns:
- null if not found.
-
getSize
int getSize(boolean asIfOpen)
TODO
-
getSubtotalCount
int getSubtotalCount(boolean asIfOpen)
TODO
-
getKey
Object getKey()
Return the key of node.
-
getField
PivotField getField()
Return the corresponding field of the node
-
isOpen
boolean isOpen()
Returns true is the node is open.
-
setOpen
void setOpen(boolean open)
Set the open state of the node.
-
-