Skip navigation links


com.essbase.eas.ui.tree
Class RAFTreeRootNode

java.lang.Object
  extended by com.essbase.eas.ui.tree.RAFTreeNode
      extended by com.essbase.eas.ui.tree.RAFTreeRootNode

All Implemented Interfaces:
RAFRenderer, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
MDXFunctionTreeRootNode, MemberTreeRootNode, VTreeRootNode

public class RAFTreeRootNode
extends RAFTreeNode
implements RAFRenderer

defines a member attribute tree node.

Since:
6.5.1
Version:
7.0.0
Author:
Sree Menon

Nested Class Summary

 

Nested classes/interfaces inherited from class com.essbase.eas.ui.tree.RAFTreeNode
RAFTreeNode.RAFTreeNodeList

 

Field Summary

 

Fields inherited from class com.essbase.eas.ui.tree.RAFTreeNode
childCount, childIndex, children, fileIndex, hasDummyChild, INFO_NOT_RETRIEVED, parent, ref, rolap

 

Constructor Summary
RAFTreeRootNode()
           
RAFTreeRootNode(java.lang.String caption)
           
RAFTreeRootNode(java.lang.String caption, int children)
           

 

Method Summary
 javax.swing.tree.TreeNode addChildNode(javax.swing.tree.TreeNode parent, java.lang.Object userObj, long childIndex)
          Adds a child node for the parent using the object passed in
 void dispose()
           
 RAFFileTreeModel getModel()
          Gets the tree model
 RAFRenderer getRendererForNode(javax.swing.tree.TreeNode node)
           
 RAFTreeRootNode getRoot()
          Gets the root node
protected  javax.swing.JTree getTree()
          Gets the tree handle by traversing up the parent chain
 java.lang.Object readData(java.io.RandomAccessFile raf)
          Reads the data from the file
 void setCaption(java.lang.String caption)
          Sets the caption of the node
 void setModel(RAFFileTreeModel model)
           
 void setTree(javax.swing.JTree tree)
           
 void setUserObject(java.lang.Object object)
           
 java.lang.String toString()
           
 void updateChildren()
           
 void writeData(java.io.RandomAccessFile raf, java.lang.Object userObj)
          writes the object information to the file

 

Methods inherited from class com.essbase.eas.ui.tree.RAFTreeNode
add, children, children, createChildrenArray, createNode, depthFirstEnumeration, depthFirstEnumeration, finalize, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getFirstChild, getHasDummyChild, getIndex, getLevel, getNextSibling, getParent, getPath, getPathToRoot, getPreviousSibling, getSoftObject, getUserObject, incrementChildIndex, insert, isChildRendered, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeSibling, isRolap, postorderEnumeration, postorderEnumeration, remove, remove, removeFromParent, setChildCount, setFileIndex, setHasDummyChild, setParent, setRolap, setSoftObject, updateChildAt, updateNode

 

Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

RAFTreeRootNode

public RAFTreeRootNode()

RAFTreeRootNode

public RAFTreeRootNode(java.lang.String caption)

RAFTreeRootNode

public RAFTreeRootNode(java.lang.String caption,
                       int children)

Method Detail

setTree

public void setTree(javax.swing.JTree tree)

setModel

public void setModel(RAFFileTreeModel model)

getModel

public RAFFileTreeModel getModel()
Description copied from class: RAFTreeNode
Gets the tree model
Overrides:
getModel in class RAFTreeNode
Returns:
tree model

getTree

protected javax.swing.JTree getTree()
Description copied from class: RAFTreeNode
Gets the tree handle by traversing up the parent chain
Overrides:
getTree in class RAFTreeNode
Returns:
the tree handle

getRoot

public RAFTreeRootNode getRoot()
Description copied from class: RAFTreeNode
Gets the root node
Overrides:
getRoot in class RAFTreeNode
Returns:

setCaption

public void setCaption(java.lang.String caption)
Description copied from class: RAFTreeNode
Sets the caption of the node
Overrides:
setCaption in class RAFTreeNode
Parameters:
caption - caption

setUserObject

public void setUserObject(java.lang.Object object)
Specified by:
setUserObject in interface javax.swing.tree.MutableTreeNode
Overrides:
setUserObject in class RAFTreeNode

toString

public java.lang.String toString()
Overrides:
toString in class RAFTreeNode

writeData

public void writeData(java.io.RandomAccessFile raf,
                      java.lang.Object userObj)
               throws java.io.IOException
Description copied from interface: RAFRenderer
writes the object information to the file
Specified by:
writeData in interface RAFRenderer
Parameters:
raf - the RandomAccessFile to write to
userObj - the object to be rendered
Throws:
java.io.IOException

readData

public java.lang.Object readData(java.io.RandomAccessFile raf)
                          throws java.io.IOException
Description copied from interface: RAFRenderer
Reads the data from the file
Specified by:
readData in interface RAFRenderer
Parameters:
raf - the RAF file
Returns:
the object of data
Throws:
java.io.IOException

addChildNode

public javax.swing.tree.TreeNode addChildNode(javax.swing.tree.TreeNode parent,
                                              java.lang.Object userObj,
                                              long childIndex)
Description copied from interface: RAFRenderer
Adds a child node for the parent using the object passed in
Specified by:
addChildNode in interface RAFRenderer
Parameters:
parent - the parent node
userObj - the user object
childIndex - offset to the data
Returns:
the new Tree Node

updateChildren

public void updateChildren()
Overrides:
updateChildren in class RAFTreeNode

getRendererForNode

public RAFRenderer getRendererForNode(javax.swing.tree.TreeNode node)

dispose

public void dispose()
Overrides:
dispose in class RAFTreeNode

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.