public class SimplePivotHeaderNode extends Object implements PivotHeaderNode
Constructor and Description |
---|
SimplePivotHeaderNode(Object key,
SimplePivotHeaderNode parent) |
SimplePivotHeaderNode(SimplePivotHeaderTree tree) |
Modifier and Type | Method and Description |
---|---|
SimplePivotHeaderNode |
getChild(Object key)
Find child by node key.
|
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
|
String |
getHash()
Return a hash string representing the node.
|
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<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.
|
String |
toString() |
public SimplePivotHeaderNode(SimplePivotHeaderTree tree)
public SimplePivotHeaderNode(Object key, SimplePivotHeaderNode parent)
public SimplePivotHeaderTree getTree()
PivotHeaderNode
getTree
in interface PivotHeaderNode
PivotHeaderTree
public List<SimplePivotHeaderNode> getChildren()
PivotHeaderNode
getChildren
in interface PivotHeaderNode
public int getDepth()
PivotHeaderNode
getDepth
in interface PivotHeaderNode
public Object getKey()
PivotHeaderNode
getKey
in interface PivotHeaderNode
public SimplePivotHeaderNode getParent()
PivotHeaderNode
getParent
in interface PivotHeaderNode
public SimplePivotHeaderNode getChild(Object key)
PivotHeaderNode
getChild
in interface PivotHeaderNode
public boolean isLeaf()
PivotHeaderNode
isLeaf
in interface PivotHeaderNode
public boolean isOpen()
PivotHeaderNode
isOpen
in interface PivotHeaderNode
public void setOpen(boolean open)
PivotHeaderNode
setOpen
in interface PivotHeaderNode
public PivotField getField()
PivotHeaderNode
getField
in interface PivotHeaderNode
public boolean isRoot()
public String getHash()
public int getSubtotalCount(boolean asIfOpen)
PivotHeaderNode
getSubtotalCount
in interface PivotHeaderNode
public int getSize(boolean asIfOpen)
PivotHeaderNode
getSize
in interface PivotHeaderNode
protected IndexLinkedList<Object,SimplePivotHeaderNode> initChildren()
Copyright © 2017. All rights reserved.