Skip navigation links


com.essbase.eas.ui.ctree
Class CTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by com.essbase.eas.ui.ctree.CTreeModel

All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel

public class CTreeModel
extends javax.swing.tree.DefaultTreeModel

Extends the DefaultTreeModel class to implement some specific features that we need to support in the OLAP console. Notes:

07/25/2000, hcox: For the moment, this class provides no functionality. We created it to ensure that we have a complete set of classes that mirror the javax.swing.tree classes.

Version:
1.00, 07/21/2000
Author:
Hank Cox
See Also:
Serialized Form

Field Summary
protected  CTree tree
           

 

Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root

 

Constructor Summary
CTreeModel()
           

 

Method Summary
 void childNodesWereRemoved(javax.swing.tree.TreeNode node, int[] childIndices, java.lang.Object[] removedChildren, boolean propagate)
          method used when nodes are removed.
 void expandNode(javax.swing.tree.TreeNode node)
           
 void getAllExpandedState(javax.swing.tree.TreeNode node)
          This recursively tracks the expanded state of the node and all its descendants
 CTree getTree()
           
 boolean isNodeExpanded(javax.swing.tree.TreeNode node)
          returns if the node is expanded
 boolean isNodeSelected(javax.swing.tree.TreeNode node)
          returns if the node is selected
 void nodeChanged(javax.swing.tree.TreeNode node)
           
 void nodesWereRemoved(javax.swing.tree.TreeNode node, int[] childIndices, java.lang.Object[] removedChildren, boolean propagate)
          method used when nodes are removed.
 void notifyNodeChange(javax.swing.tree.TreeNode node)
           
 void removeChildNodesFor(java.lang.Object obj)
           
 void removeNodesFor(java.lang.Object obj)
           
 void selectNode(javax.swing.tree.TreeNode node)
           
 void setAllExpandedState(javax.swing.tree.TreeNode node)
          This recursively sets the expanded state of the node and all its descendants
 void setRoot(javax.swing.tree.TreeNode root)
           
 void setTree(CTree value)
           

 

Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, valueForPathChanged

 

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

 

Field Detail

tree

protected CTree tree

Constructor Detail

CTreeModel

public CTreeModel()

Method Detail

setRoot

public void setRoot(javax.swing.tree.TreeNode root)
Overrides:
setRoot in class javax.swing.tree.DefaultTreeModel

notifyNodeChange

public void notifyNodeChange(javax.swing.tree.TreeNode node)

nodeChanged

public void nodeChanged(javax.swing.tree.TreeNode node)
Overrides:
nodeChanged in class javax.swing.tree.DefaultTreeModel

nodesWereRemoved

public void nodesWereRemoved(javax.swing.tree.TreeNode node,
                             int[] childIndices,
                             java.lang.Object[] removedChildren,
                             boolean propagate)
method used when nodes are removed. This is intented to be called when we know that the node being removed needs to be propagated to CustomViews.

childNodesWereRemoved

public void childNodesWereRemoved(javax.swing.tree.TreeNode node,
                                  int[] childIndices,
                                  java.lang.Object[] removedChildren,
                                  boolean propagate)
method used when nodes are removed. This is intented to be called when we know that the node being removed needs to be propagated to CustomViews.

setTree

public void setTree(CTree value)

getTree

public CTree getTree()

removeNodesFor

public void removeNodesFor(java.lang.Object obj)

removeChildNodesFor

public void removeChildNodesFor(java.lang.Object obj)

isNodeSelected

public boolean isNodeSelected(javax.swing.tree.TreeNode node)
returns if the node is selected

isNodeExpanded

public boolean isNodeExpanded(javax.swing.tree.TreeNode node)
returns if the node is expanded

getAllExpandedState

public void getAllExpandedState(javax.swing.tree.TreeNode node)
This recursively tracks the expanded state of the node and all its descendants

setAllExpandedState

public void setAllExpandedState(javax.swing.tree.TreeNode node)
This recursively sets the expanded state of the node and all its descendants

selectNode

public void selectNode(javax.swing.tree.TreeNode node)

expandNode

public void expandNode(javax.swing.tree.TreeNode node)

Skip navigation links


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