|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
com.essbase.eas.ui.tree.RAFTreeNode
public class RAFTreeNode
defines a RAF tree node.
| Nested Class Summary | |
|---|---|
static class |
RAFTreeNode.RAFTreeNodeList |
| Field Summary | |
|---|---|
protected int |
childCount |
protected int |
childIndex |
protected RAFTreeNode.RAFTreeNodeList |
children |
protected int |
fileIndex |
protected boolean |
hasDummyChild |
protected static short |
INFO_NOT_RETRIEVED |
protected RAFTreeNode |
parent |
protected java.lang.ref.SoftReference |
ref |
protected boolean |
rolap |
| Constructor Summary | |
|---|---|
RAFTreeNode()Empty constructor |
|
RAFTreeNode(int childCount)Node with the known number of children |
|
RAFTreeNode(long count, long index)Node with known children and the file offset for the user object |
|
| Method Summary | |
|---|---|
void |
add(javax.swing.tree.MutableTreeNode newChild) |
java.util.Enumeration |
children() |
protected java.util.Enumeration |
children(boolean disposing) |
protected void |
createChildrenArray() |
protected RAFTreeNode |
createNode() |
java.util.Enumeration |
depthFirstEnumeration() |
protected java.util.Enumeration |
depthFirstEnumeration(boolean disposing) |
void |
dispose() |
protected void |
finalize() |
boolean |
getAllowsChildren() |
javax.swing.tree.TreeNode |
getChildAfter(RAFTreeNode aChild) |
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
RAFTreeNode |
getChildBefore(RAFTreeNode aChild) |
int |
getChildCount() |
RAFTreeNode |
getFirstChild() |
boolean |
getHasDummyChild() |
int |
getIndex(javax.swing.tree.TreeNode node) |
int |
getLevel() |
RAFFileTreeModel |
getModel()Gets the tree model |
RAFTreeNode |
getNextSibling() |
javax.swing.tree.TreeNode |
getParent() |
javax.swing.tree.TreeNode[] |
getPath() |
protected javax.swing.tree.TreeNode[] |
getPathToRoot(javax.swing.tree.TreeNode aNode, int depth) |
RAFTreeNode |
getPreviousSibling() |
RAFTreeRootNode |
getRoot()Gets the root node |
protected java.lang.Object |
getSoftObject() |
protected javax.swing.JTree |
getTree()Gets the tree handle by traversing up the parent chain |
java.lang.Object |
getUserObject() |
protected void |
incrementChildIndex(int index, boolean inc) |
void |
insert(javax.swing.tree.MutableTreeNode child, int index) |
boolean |
isChildRendered(int childIndex)Whether the child's userobject is already rendered in the file |
boolean |
isLeaf() |
boolean |
isNodeAncestor(RAFTreeNode anotherNode) |
boolean |
isNodeChild(RAFTreeNode aNode) |
boolean |
isNodeDescendant(RAFTreeNode anotherNode) |
boolean |
isNodeSibling(RAFTreeNode anotherNode) |
boolean |
isRolap() |
java.util.Enumeration |
postorderEnumeration() |
protected java.util.Enumeration |
postorderEnumeration(boolean disposing) |
void |
remove(int index) |
void |
remove(javax.swing.tree.MutableTreeNode node) |
void |
removeFromParent() |
void |
setCaption(java.lang.String caption)Sets the caption of the node |
void |
setChildCount(int count)Sets the child count |
void |
setFileIndex(long index)Sets the file offset where the user object is rendered |
void |
setHasDummyChild(boolean hasDummyChild) |
void |
setParent(javax.swing.tree.MutableTreeNode newParent) |
void |
setRolap(boolean rolap) |
protected void |
setSoftObject(java.lang.Object o) |
void |
setUserObject(java.lang.Object object) |
java.lang.String |
toString() |
void |
updateChildAt(int childIndex, int childCount, int fileIndex) |
protected void |
updateChildren() |
protected boolean |
updateNode() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final short INFO_NOT_RETRIEVED
protected int fileIndex
protected int childCount
protected int childIndex
protected RAFTreeNode.RAFTreeNodeList children
protected RAFTreeNode parent
protected java.lang.ref.SoftReference ref
protected boolean hasDummyChild
protected boolean rolap
| Constructor Detail |
|---|
public RAFTreeNode()
public RAFTreeNode(int childCount)
childCount - number of children
public RAFTreeNode(long count,
long index)
count - number of childrenindex - file offset for the user object| Method Detail |
|---|
public void setFileIndex(long index)
index - file offsetpublic void setChildCount(int count)
count - number of childrenpublic java.lang.Object getUserObject()
public void setCaption(java.lang.String caption)
caption - captionpublic java.lang.String toString()
toString in class java.lang.Objectprotected javax.swing.JTree getTree()
public RAFFileTreeModel getModel()
public RAFTreeRootNode getRoot()
public boolean isChildRendered(int childIndex)
childIndex - child indexpublic javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt in interface javax.swing.tree.TreeNode
public void updateChildAt(int childIndex,
int childCount,
int fileIndex)
public int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic javax.swing.tree.TreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeprotected RAFTreeNode createNode()
protected boolean updateNode()
protected void updateChildren()
public java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodeprotected java.util.Enumeration children(boolean disposing)
public void add(javax.swing.tree.MutableTreeNode newChild)
protected void incrementChildIndex(int index,
boolean inc)
public void insert(javax.swing.tree.MutableTreeNode child,
int index)
insert in interface javax.swing.tree.MutableTreeNodepublic void remove(int index)
remove in interface javax.swing.tree.MutableTreeNodepublic void remove(javax.swing.tree.MutableTreeNode node)
remove in interface javax.swing.tree.MutableTreeNodepublic void setUserObject(java.lang.Object object)
setUserObject in interface javax.swing.tree.MutableTreeNodepublic void removeFromParent()
removeFromParent in interface javax.swing.tree.MutableTreeNodepublic void setParent(javax.swing.tree.MutableTreeNode newParent)
setParent in interface javax.swing.tree.MutableTreeNodepublic boolean isNodeAncestor(RAFTreeNode anotherNode)
public boolean isNodeChild(RAFTreeNode aNode)
public javax.swing.tree.TreeNode getChildAfter(RAFTreeNode aChild)
public RAFTreeNode getChildBefore(RAFTreeNode aChild)
public RAFTreeNode getFirstChild()
public RAFTreeNode getNextSibling()
public RAFTreeNode getPreviousSibling()
public boolean isNodeDescendant(RAFTreeNode anotherNode)
public boolean isNodeSibling(RAFTreeNode anotherNode)
public javax.swing.tree.TreeNode[] getPath()
protected javax.swing.tree.TreeNode[] getPathToRoot(javax.swing.tree.TreeNode aNode,
int depth)
protected java.lang.Object getSoftObject()
protected void setSoftObject(java.lang.Object o)
public java.util.Enumeration depthFirstEnumeration()
protected java.util.Enumeration depthFirstEnumeration(boolean disposing)
public java.util.Enumeration postorderEnumeration()
protected java.util.Enumeration postorderEnumeration(boolean disposing)
protected void createChildrenArray()
public int getLevel()
public void dispose()
public boolean getHasDummyChild()
public void setHasDummyChild(boolean hasDummyChild)
hasDummyChild - The hasDummyChild to set.public boolean isRolap()
public void setRolap(boolean rolap)
rolap - The rolap to set.
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||