Skip navigation links


com.essbase.eas.essbase.ui.tree
Class ServerTreeNode

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
              extended by com.essbase.eas.essbase.ui.tree.ServerTreeNode

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

public class ServerTreeNode
extends EssbaseTreeNode

Extends the CTreeNode class to implement some features specific to Essbase server objects.

Since:
6.2.0
Version:
7.0.0
Author:
Hank Cox
See Also:
Serialized Form

Field Summary

 

Fields inherited from class com.essbase.eas.essbase.ui.tree.EssbaseTreeNode
autoHide, bundle, collapseAction, context, expanded, parentNode, 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
ServerTreeNode()
           
ServerTreeNode(java.lang.Object userObject)
           
ServerTreeNode(Server server)
           

 

Method Summary
 java.lang.Object clone()
           
 java.awt.Component[] getActionMenuItems()
          returns the items that this object needs placed on the console's action menu.
 java.awt.Component[] getContextMenuItems()
           
 void handleDelete()
           
 boolean handleExpand(java.util.List candidates)
          method that should be overridden by all derived classes in order to add children to the node.
protected  void installListeners()
           
protected  void removeNodeFromParent()
           
 boolean selectNodeFromProperties(java.util.Properties properties, java.lang.String key)
           
 boolean setContextInformation(java.lang.String[][] context)
          sets the context information for a server node.
protected  void uninstallListeners()
           
 boolean updateChildOrder(CTreeNode node)
          Updates the node order for the child node.

 

Methods inherited from class com.essbase.eas.essbase.ui.tree.EssbaseTreeNode
add, collpaseBranch, collpaseBranch, expandBranch, expandBranch, getApplication, getCollpaseMenuItem, getCollpaseMenuItem, getContextCaption, getContextInformation, getDatabase, getExpandMenuItem, getExpandMenuItem, getFilter, getProperEventSource, getProperEventSource, getServer, getSourceNode, insert, isConnected, isServerContextValid, nodeRemoved, processNodeFromProperties, remove, setAutoHide, setIcon, setIcon, setParentNode, showNode, showNode

 

Methods inherited from class com.essbase.eas.ui.ctree.CTreeNode
addNodeAndNotify, addNodeAndNotify, addNodesAndNotify, addNodesSortedAndNotify, addNodesSortedAndNotify, addSortedChild, areChildrenCollated, broadcastNodeChanged, changeNodeIndex, dispose, dragEnter, dragExit, dragOver, drop, dropActionChanged, getAllChildrenRemoved, getCaption, getChildForUserObject, getChildrenAsArray, getChildUserObjects, getChildUserObjectsAsList, getCustomViewEnabled, getCustomViewNode, getDraggable, getExpandedState, getIcon, getNotifyRemoveChildren, getPrintableObjects, getSortedChildIndex, getStartSortIndex, getToolTipText, getTransferData, getTransferDataFlavors, getTreeCellRendererComponent, getTreeModel, getUserObjectAs, handleDoubleClick, initFlavors, insertNodeAndNotify, isDataFlavorSupported, localizeMenuItems, personalizeMenuItems, personalizeMenuItems, personalizeMenuItems, personalizeMenuItems, removeChildrenNodeAndNotify, removeNodeAndNotify, removeNodeAndNotify, removeNodeAndNotify, setAllChildrenRemoved, setCaption, setCustomViewEnabled, setCustomViewNode, setExpandedState, setIcon, setIcon, setNotifyRemoveChildren, setNotifyRemoveChildren, setSortingIndex, setToolTipText, setUserObject, sortNodes, toString, 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

 

Constructor Detail

ServerTreeNode

public ServerTreeNode()

ServerTreeNode

public ServerTreeNode(java.lang.Object userObject)

ServerTreeNode

public ServerTreeNode(Server server)

Method Detail

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class EssbaseTreeNode

installListeners

protected void installListeners()
Overrides:
installListeners in class CTreeNode

handleExpand

public boolean handleExpand(java.util.List candidates)
Description copied from class: CTreeNode
method that should be overridden by all derived classes in order to add children to the node.
Overrides:
handleExpand in class CTreeNode

getActionMenuItems

public java.awt.Component[] getActionMenuItems()
Description copied from class: CTreeNode
returns the items that this object needs placed on the console's action menu. All of the items should be CMenuItem objects. Any derived class should override this method.
Overrides:
getActionMenuItems in class CTreeNode

getContextMenuItems

public java.awt.Component[] getContextMenuItems()
Overrides:
getContextMenuItems in class CTreeNode

setContextInformation

public boolean setContextInformation(java.lang.String[][] context)
sets the context information for a server node. This is called when custom views are being restored. Technically, a server has no "context"; however, we use this opportunity to set the Server object by calling the ObjectFactory.getServer() method.
Overrides:
setContextInformation in class EssbaseTreeNode

updateChildOrder

public boolean updateChildOrder(CTreeNode node)
Description copied from class: CTreeNode
Updates the node order for the child node. The nodes caption might have changed to call this function Returns true if the order changed
Overrides:
updateChildOrder in class CTreeNode

removeNodeFromParent

protected void removeNodeFromParent()
Overrides:
removeNodeFromParent in class EssbaseTreeNode

clone

public java.lang.Object clone()
Overrides:
clone in class CTreeNode

handleDelete

public void handleDelete()
Overrides:
handleDelete in class CTreeNode

selectNodeFromProperties

public boolean selectNodeFromProperties(java.util.Properties properties,
                                        java.lang.String key)
Overrides:
selectNodeFromProperties in class EssbaseTreeNode

Skip navigation links


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