Skip navigation links


com.essbase.eas.essbase.ui.editor.mtree2
Class MemberTreeRootNode

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

All Implemented Interfaces:
RAFRenderer, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class MemberTreeRootNode
extends RAFTreeRootNode

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
MemberTreeRootNode()
           
MemberTreeRootNode(java.lang.String caption)
           
MemberTreeRootNode(java.lang.String caption, int children, Representation r, TextEditor editor, ScriptEditorAction editorAction)
           

 

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()
           
protected  TextEditor getEditor()
           
 ScriptEditorAction getEditorAction()
           
 Member getMember()
           
protected  Representation getRepresentation()
           
 void handleRightClick(java.awt.Point pt)
           
 java.lang.Object readData(java.io.RandomAccessFile raf)
          Reads the data from the file
 void setChildCount(int count)
          Sets the child count
 void setEditor(TextEditor textEditor)
           
 void setEditorAction(ScriptEditorAction editorAction)
           
 void setRepresentation(Representation representation)
           
 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.RAFTreeRootNode
getModel, getRendererForNode, getRoot, getTree, setCaption, setModel, setTree, setUserObject, toString, updateChildren

 

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, 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

MemberTreeRootNode

public MemberTreeRootNode()

MemberTreeRootNode

public MemberTreeRootNode(java.lang.String caption)

MemberTreeRootNode

public MemberTreeRootNode(java.lang.String caption,
                          int children,
                          Representation r,
                          TextEditor editor,
                          ScriptEditorAction editorAction)

Method Detail

setRepresentation

public void setRepresentation(Representation representation)

getRepresentation

protected Representation getRepresentation()

getEditor

protected TextEditor getEditor()

setEditor

public void setEditor(TextEditor textEditor)

getMember

public Member getMember()

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
Overrides:
writeData in class RAFTreeRootNode
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
Overrides:
readData in class RAFTreeRootNode
Parameters:
raf - the RAF file
Returns:
the object of data
Throws:
java.io.IOException

handleRightClick

public void handleRightClick(java.awt.Point pt)

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
Overrides:
addChildNode in class RAFTreeRootNode
Parameters:
parent - the parent node
userObj - the user object
childIndex - offset to the data
Returns:
the new Tree Node

setChildCount

public void setChildCount(int count)
Description copied from class: RAFTreeNode
Sets the child count
Overrides:
setChildCount in class RAFTreeNode
Parameters:
count - number of children

dispose

public void dispose()
Overrides:
dispose in class RAFTreeRootNode

getEditorAction

public ScriptEditorAction getEditorAction()

setEditorAction

public void setEditorAction(ScriptEditorAction editorAction)

Skip navigation links


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