Skip navigation links


com.essbase.eas.essbase.ui.tree
Class EssbaseTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.essbase.eas.ui.ctree.CTreeNode
          extended by com.essbase.eas.essbase.ui.tree.EssbaseTreeNode

All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.awt.dnd.DropTargetListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
ApplicationLocksNode, ApplicationPropertiesNode, ApplicationsContainerNode, ApplicationSessionsNode, ApplicationTreeNode, ApplicationVariablesNode, CalcScriptNode, CalcScriptsContainerNode, DatabaseLocationAliasNode, DatabaseLocksNode, DatabaseLroNode, DatabaseOrphanPartitionNode, DatabaseOrphanPartitionsNode, DatabaseOutlineNode, DatabasePartitionsNode, DatabasePropertiesNode, DatabasesContainerNode, DatabaseSessionsNode, DatabaseSrcPartitionNode, DatabaseSrcPartitionsNode, DatabaseTargetPartitionNode, DatabaseTargetPartitionsNode, DatabaseTreeNode, DatabaseVariablesNode, DataLoadContainerNode, FilterNode, FiltersContainerNode, LockedObjectsNode, ReportScriptNode, ReportScriptsContainerNode, RulesObjectNode, RulesObjectsContainerNode, ServerDisabledUsersNode, ServerFunctionNode, ServerFunctionsNode, ServerGroupsNode, ServerLocksNode, ServerMacroNode, ServerMacrosNode, ServerPropertiesNode, ServersContainerNode, ServerSecurityNode, ServerSessionsNode, ServerTreeNode, ServerUsersNode, ServerVariablesNode, SpreadSheetContainerNode, TriggersNode

public class EssbaseTreeNode
extends CTreeNode

Extends the CTreeNode class with some specifics for tree nodes in the essbase.tree package.

Version:
1.00, 08/23/2000
Author:
Hank Cox
See Also:
Serialized Form

Field Summary
protected  boolean autoHide
           
static java.util.ResourceBundle bundle
           
static javax.swing.AbstractAction collapseAction
           
protected  java.lang.String[][] context
           
protected  boolean expanded
           
protected  EssbaseTreeNode parentNode
           
protected  Server server
           

 

Fields inherited from class com.essbase.eas.ui.ctree.CTreeNode
actionMenuItems, allChildrenRemoved, caption, contextMenuItems, customViewEnabled, customViewNode, draggable, EMPTY_NODES, flavors, icon, notifyChildRemoval, startSortIndex, toolTipText

 

Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject

 

Constructor Summary
EssbaseTreeNode()
           
EssbaseTreeNode(java.lang.Object userObject, boolean useObjectCaption, boolean allowsChildren, java.lang.Integer imageID)
           
EssbaseTreeNode(java.lang.Object userObject, boolean useObjectCaption, boolean allowsChildren, java.lang.String imageName)
           
EssbaseTreeNode(java.lang.Object userObject, boolean allowsChildren, java.lang.String captionKey, javax.swing.Icon icon)
           
EssbaseTreeNode(java.lang.Object userObject, boolean allowsChildren, java.lang.String captionKey, java.lang.Integer imageID)
           
EssbaseTreeNode(java.lang.Object userObject, boolean allowsChildren, java.lang.String captionKey, java.lang.String imageName)
           
EssbaseTreeNode(java.lang.Object userObject, java.lang.String caption, boolean allowsChildren, java.lang.Integer imageID)
           
EssbaseTreeNode(java.lang.Object userObject, java.lang.String caption, boolean allowsChildren, java.lang.String imageName)
           

 

Method Summary
 void add(javax.swing.tree.MutableTreeNode newChild)
           
static void collpaseBranch(CTreeNode node)
           
static void collpaseBranch(javax.swing.JTree tree, javax.swing.tree.TreeNode node)
           
static void expandBranch(CTreeNode node)
           
static void expandBranch(javax.swing.JTree tree, javax.swing.tree.TreeNode node)
           
protected  Application getApplication()
           
static EssbaseMenuItem getCollpaseMenuItem()
           
static EssbaseMenuItem getCollpaseMenuItem(java.lang.Object owner)
           
 java.lang.String getContextCaption()
           
 java.lang.String[][] getContextInformation()
          returns an array of strings containing the context information for this tree node.
protected  Database getDatabase()
           
static EssbaseMenuItem getExpandMenuItem()
           
static EssbaseMenuItem getExpandMenuItem(java.lang.Object owner)
           
protected  Filter getFilter()
           
static java.lang.Object getProperEventSource(java.awt.event.ActionEvent e)
           
static java.lang.Object getProperEventSource(java.lang.Object source)
           
protected  Server getServer()
           
static CTreeNode getSourceNode(java.lang.Object source)
           
 void insert(javax.swing.tree.MutableTreeNode newChild, int childIndex)
           
protected  boolean isConnected()
           
protected  boolean isServerContextValid(java.lang.String[][] context)
           
 void nodeRemoved()
           
protected  boolean processNodeFromProperties(java.lang.String key, java.lang.String value)
           
 void remove(int childIndex)
           
protected  void removeNodeFromParent()
           
protected  boolean selectNodeFromProperties(java.util.Properties properties, java.lang.String key)
           
protected  void setAutoHide(boolean autoHide)
           
 boolean setContextInformation(java.lang.String[][] context)
          receives an array of strings containing the context information for this tree node.
 void setIcon(java.lang.Integer imageID)
           
 void setIcon(java.lang.String imageName)
           
protected  void setParentNode(EssbaseTreeNode parentNode)
           
protected  void showNode()
           
protected  void showNode(EssbaseTreeNode node)
           
protected  void uninstallListeners()
           

 

Methods inherited from class com.essbase.eas.ui.ctree.CTreeNode
addNodeAndNotify, addNodeAndNotify, addNodesAndNotify, addNodesSortedAndNotify, addNodesSortedAndNotify, addSortedChild, areChildrenCollated, broadcastNodeChanged, changeNodeIndex, clone, dispose, dragEnter, dragExit, dragOver, drop, dropActionChanged, getActionMenuItems, getAllChildrenRemoved, getCaption, getChildForUserObject, getChildrenAsArray, getChildUserObjects, getChildUserObjectsAsList, getContextMenuItems, getCustomViewEnabled, getCustomViewNode, getDraggable, getExpandedState, getIcon, getNotifyRemoveChildren, getPrintableObjects, getSortedChildIndex, getStartSortIndex, getToolTipText, getTransferData, getTransferDataFlavors, getTreeCellRendererComponent, getTreeModel, getUserObjectAs, handleDelete, handleDoubleClick, handleExpand, initFlavors, insertNodeAndNotify, installListeners, isDataFlavorSupported, localizeMenuItems, personalizeMenuItems, personalizeMenuItems, personalizeMenuItems, personalizeMenuItems, removeChildrenNodeAndNotify, removeNodeAndNotify, removeNodeAndNotify, removeNodeAndNotify, setAllChildrenRemoved, setCaption, setCustomViewEnabled, setCustomViewNode, setExpandedState, setIcon, setIcon, setNotifyRemoveChildren, setNotifyRemoveChildren, setSortingIndex, setToolTipText, setUserObject, sortNodes, toString, updateChildOrder, updateChildrenToMatch, updateChildrenToMatch, updateNode, willExpand

 

Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration, children, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent

 

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

 

Field Detail

context

protected java.lang.String[][] context

server

protected Server server

expanded

protected boolean expanded

autoHide

protected boolean autoHide

parentNode

protected EssbaseTreeNode parentNode

bundle

public static java.util.ResourceBundle bundle

collapseAction

public static javax.swing.AbstractAction collapseAction

Constructor Detail

EssbaseTreeNode

public EssbaseTreeNode()

EssbaseTreeNode

public EssbaseTreeNode(java.lang.Object userObject,
                       boolean allowsChildren,
                       java.lang.String captionKey,
                       java.lang.String imageName)

EssbaseTreeNode

public EssbaseTreeNode(java.lang.Object userObject,
                       boolean useObjectCaption,
                       boolean allowsChildren,
                       java.lang.String imageName)

EssbaseTreeNode

public EssbaseTreeNode(java.lang.Object userObject,
                       boolean useObjectCaption,
                       boolean allowsChildren,
                       java.lang.Integer imageID)

EssbaseTreeNode

public EssbaseTreeNode(java.lang.Object userObject,
                       java.lang.String caption,
                       boolean allowsChildren,
                       java.lang.String imageName)

EssbaseTreeNode

public EssbaseTreeNode(java.lang.Object userObject,
                       java.lang.String caption,
                       boolean allowsChildren,
                       java.lang.Integer imageID)

EssbaseTreeNode

public EssbaseTreeNode(java.lang.Object userObject,
                       boolean allowsChildren,
                       java.lang.String captionKey,
                       java.lang.Integer imageID)

EssbaseTreeNode

public EssbaseTreeNode(java.lang.Object userObject,
                       boolean allowsChildren,
                       java.lang.String captionKey,
                       javax.swing.Icon icon)

Method Detail

setIcon

public void setIcon(java.lang.String imageName)
Overrides:
setIcon in class CTreeNode

setIcon

public void setIcon(java.lang.Integer imageID)

getServer

protected Server getServer()

getApplication

protected Application getApplication()

getDatabase

protected Database getDatabase()

getFilter

protected Filter getFilter()

uninstallListeners

protected void uninstallListeners()

removeNodeFromParent

protected void removeNodeFromParent()

getContextInformation

public java.lang.String[][] getContextInformation()
Description copied from class: CTreeNode
returns an array of strings containing the context information for this tree node. This method is intended to be replaced by any derived classes.
Overrides:
getContextInformation in class CTreeNode

setContextInformation

public boolean setContextInformation(java.lang.String[][] context)
Description copied from class: CTreeNode
receives an array of strings containing the context information for this tree node. This method is intended to be overridden by any derived classes. It is expected that the derived classes then perform any operations they need in order to "set" their context.
Overrides:
setContextInformation in class CTreeNode

isServerContextValid

protected boolean isServerContextValid(java.lang.String[][] context)

getContextCaption

public java.lang.String getContextCaption()
Overrides:
getContextCaption in class CTreeNode

nodeRemoved

public void nodeRemoved()
Overrides:
nodeRemoved in class CTreeNode

setAutoHide

protected void setAutoHide(boolean autoHide)

setParentNode

protected void setParentNode(EssbaseTreeNode parentNode)

showNode

protected void showNode(EssbaseTreeNode node)

showNode

protected void showNode()

insert

public void insert(javax.swing.tree.MutableTreeNode newChild,
                   int childIndex)
Specified by:
insert in interface javax.swing.tree.MutableTreeNode
Overrides:
insert in class javax.swing.tree.DefaultMutableTreeNode

add

public void add(javax.swing.tree.MutableTreeNode newChild)
Overrides:
add in class CTreeNode

remove

public void remove(int childIndex)
Specified by:
remove in interface javax.swing.tree.MutableTreeNode
Overrides:
remove in class CTreeNode

expandBranch

public static void expandBranch(CTreeNode node)

expandBranch

public static void expandBranch(javax.swing.JTree tree,
                                javax.swing.tree.TreeNode node)

collpaseBranch

public static void collpaseBranch(CTreeNode node)

collpaseBranch

public static void collpaseBranch(javax.swing.JTree tree,
                                  javax.swing.tree.TreeNode node)

getExpandMenuItem

public static EssbaseMenuItem getExpandMenuItem(java.lang.Object owner)

getCollpaseMenuItem

public static EssbaseMenuItem getCollpaseMenuItem(java.lang.Object owner)

getExpandMenuItem

public static EssbaseMenuItem getExpandMenuItem()

getCollpaseMenuItem

public static EssbaseMenuItem getCollpaseMenuItem()

getProperEventSource

public static java.lang.Object getProperEventSource(java.awt.event.ActionEvent e)

getProperEventSource

public static java.lang.Object getProperEventSource(java.lang.Object source)

getSourceNode

public static CTreeNode getSourceNode(java.lang.Object source)

isConnected

protected boolean isConnected()

processNodeFromProperties

protected boolean processNodeFromProperties(java.lang.String key,
                                            java.lang.String value)

selectNodeFromProperties

protected boolean selectNodeFromProperties(java.util.Properties properties,
                                           java.lang.String key)

Skip navigation links


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