|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.pivot.impl.SimplePivotHeaderNode
public class SimplePivotHeaderNode
A simple implementation of PivotHeaderNode
| Constructor Summary | |
|---|---|
SimplePivotHeaderNode(java.lang.Object key,
SimplePivotHeaderNode parent)
|
|
SimplePivotHeaderNode(SimplePivotHeaderTree tree)
|
|
| Method Summary | |
|---|---|
SimplePivotHeaderNode |
getChild(java.lang.Object key)
Find child by node key. |
java.util.List<SimplePivotHeaderNode> |
getChildren()
Returns the children of the node. |
int |
getDepth()
Returns the depth of the node, 0 if root. |
PivotField |
getField()
Return the corresponding field of the node |
java.lang.String |
getHash()
Return a hash string representing the node. |
java.lang.Object |
getKey()
Return the key of node. |
SimplePivotHeaderNode |
getParent()
Returns the parent of the node. |
int |
getSize(boolean asIfOpen)
TODO |
int |
getSubtotalCount(boolean asIfOpen)
TODO |
SimplePivotHeaderTree |
getTree()
Returns the tree of the node. |
protected IndexLinkedList<java.lang.Object,SimplePivotHeaderNode> |
initChildren()
|
boolean |
isLeaf()
Returns true if the node has no child. |
boolean |
isOpen()
Returns true is the node is open. |
boolean |
isRoot()
Return true if root node. |
void |
setOpen(boolean open)
Set the open state of the node. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimplePivotHeaderNode(SimplePivotHeaderTree tree)
public SimplePivotHeaderNode(java.lang.Object key,
SimplePivotHeaderNode parent)
| Method Detail |
|---|
public SimplePivotHeaderTree getTree()
PivotHeaderNode
getTree in interface PivotHeaderNodePivotHeaderTreepublic java.util.List<SimplePivotHeaderNode> getChildren()
PivotHeaderNode
getChildren in interface PivotHeaderNodepublic int getDepth()
PivotHeaderNode
getDepth in interface PivotHeaderNodepublic java.lang.Object getKey()
PivotHeaderNode
getKey in interface PivotHeaderNodepublic SimplePivotHeaderNode getParent()
PivotHeaderNode
getParent in interface PivotHeaderNodepublic SimplePivotHeaderNode getChild(java.lang.Object key)
PivotHeaderNode
getChild in interface PivotHeaderNodepublic boolean isLeaf()
PivotHeaderNode
isLeaf in interface PivotHeaderNodepublic boolean isOpen()
PivotHeaderNode
isOpen in interface PivotHeaderNodepublic void setOpen(boolean open)
PivotHeaderNode
setOpen in interface PivotHeaderNodepublic PivotField getField()
PivotHeaderNode
getField in interface PivotHeaderNodepublic boolean isRoot()
public java.lang.String getHash()
public int getSubtotalCount(boolean asIfOpen)
PivotHeaderNode
getSubtotalCount in interface PivotHeaderNodepublic int getSize(boolean asIfOpen)
PivotHeaderNode
getSize in interface PivotHeaderNodeprotected IndexLinkedList<java.lang.Object,SimplePivotHeaderNode> initChildren()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||