Skip navigation links


com.essbase.eas.essbase.ui.tree
Class DatabaseTreeNode

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.DatabaseTreeNode

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:
ASODatabaseTreeNode

public class DatabaseTreeNode
extends EssbaseTreeNode

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

Notes:

07/25/2000, hcox: Much of this is hard-coded for the moment.

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

Field Summary
protected  CalcScriptsContainerNode calcsNode
           
protected  DatabaseAdapter dbAdapter
           
protected  ReportScriptsContainerNode rptsNode
           
protected  RulesObjectsContainerNode rulesNode
           
protected  ServerAdapter serverAdapter
           

 

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
DatabaseTreeNode()
           
DatabaseTreeNode(Database db)
           
DatabaseTreeNode(java.lang.Object userObject)
           

 

Method Summary
protected  void addCalcscriptNode()
           
protected  void addPartitionsNode()
           
protected  void addRptscriptNode()
           
protected  void addRulesNode()
           
 boolean canClearAggregates()
           
 boolean canClearNonInputBlocks()
           
 boolean canClearUpperBlocks()
           
 boolean candoAggregations()
           
 boolean candoArchiveDatabase()
           
 boolean candoCalculations()
           
 boolean candoCompression()
           
 boolean candoCopy()
           
 boolean candoDataSliceMerge()
           
 boolean candoDisplayTransaction()
           
 boolean candoExport()
           
 boolean candoReplayTransaction()
           
 boolean candoRestoreDatabase()
           
 boolean candoRestructure()
           
 boolean candoStart()
           
 boolean candoStop()
           
 boolean canEnableTracking()
           
protected  boolean canShowCalcNode()
           
protected  boolean canShowLocAliasNode()
           
protected  boolean canShowLroNode()
           
 java.lang.Object clone()
           
 java.awt.Component[] getActionMenuItems()
          returns the items that this object needs placed on the console's action menu.
 java.lang.String getContextCaption()
           
 java.lang.String[][] getContextInformation()
          returns the context information for this database tree node.
 java.awt.Component[] getContextMenuItems()
           
 void handleDelete()
           
protected  void installListeners()
           
 boolean selectNodeFromProperties(java.util.Properties properties, java.lang.String key)
           
 boolean setContextInformation(java.lang.String[][] context)
          sets the context information for this database object.
 void setUserObject(java.lang.Object userObject)
           
protected  void showNode(EssbaseTreeNode node)
           
protected  void uninstallListeners()
           
 boolean updateChildOrder(CTreeNode node)
          Updates the node order for the child node.
 void updateNodeIcon()
           
 void willExpand()
           

 

Methods inherited from class com.essbase.eas.essbase.ui.tree.EssbaseTreeNode
add, collpaseBranch, collpaseBranch, expandBranch, expandBranch, getApplication, getCollpaseMenuItem, getCollpaseMenuItem, getDatabase, getExpandMenuItem, getExpandMenuItem, getFilter, getProperEventSource, getProperEventSource, getServer, getSourceNode, insert, isConnected, isServerContextValid, nodeRemoved, processNodeFromProperties, remove, removeNodeFromParent, setAutoHide, setIcon, setIcon, setParentNode, 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, handleExpand, initFlavors, insertNodeAndNotify, isDataFlavorSupported, localizeMenuItems, personalizeMenuItems, personalizeMenuItems, personalizeMenuItems, personalizeMenuItems, removeChildrenNodeAndNotify, removeNodeAndNotify, removeNodeAndNotify, removeNodeAndNotify, setAllChildrenRemoved, setCaption, setCustomViewEnabled, setCustomViewNode, setExpandedState, setIcon, setIcon, setNotifyRemoveChildren, setNotifyRemoveChildren, setSortingIndex, setToolTipText, sortNodes, toString, updateChildrenToMatch, updateChildrenToMatch, updateNode

 

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

dbAdapter

protected DatabaseAdapter dbAdapter

serverAdapter

protected ServerAdapter serverAdapter

calcsNode

protected CalcScriptsContainerNode calcsNode

rptsNode

protected ReportScriptsContainerNode rptsNode

rulesNode

protected RulesObjectsContainerNode rulesNode

Constructor Detail

DatabaseTreeNode

public DatabaseTreeNode()

DatabaseTreeNode

public DatabaseTreeNode(java.lang.Object userObject)

DatabaseTreeNode

public DatabaseTreeNode(Database db)

Method Detail

willExpand

public void willExpand()
Overrides:
willExpand 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

installListeners

protected void installListeners()
Overrides:
installListeners in class CTreeNode

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class EssbaseTreeNode

getContextInformation

public java.lang.String[][] getContextInformation()
returns the context information for this database tree node.
Overrides:
getContextInformation in class EssbaseTreeNode

setContextInformation

public boolean setContextInformation(java.lang.String[][] context)
sets the context information for this database object. This method is called when custom views are being restored. The first parameter in the context information should be a "server" name. The second parameter should be an "application" name. We then use this information to get a database object from the ObjectFactory class.
Overrides:
setContextInformation in class EssbaseTreeNode

getContextCaption

public java.lang.String getContextCaption()
Overrides:
getContextCaption 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

canShowLocAliasNode

protected boolean canShowLocAliasNode()

canShowLroNode

protected boolean canShowLroNode()

canShowCalcNode

protected boolean canShowCalcNode()

addPartitionsNode

protected void addPartitionsNode()

canClearUpperBlocks

public boolean canClearUpperBlocks()

canClearNonInputBlocks

public boolean canClearNonInputBlocks()

canClearAggregates

public boolean canClearAggregates()

candoCalculations

public boolean candoCalculations()

candoAggregations

public boolean candoAggregations()

candoExport

public boolean candoExport()

candoRestructure

public boolean candoRestructure()

candoArchiveDatabase

public boolean candoArchiveDatabase()

candoRestoreDatabase

public boolean candoRestoreDatabase()

candoDisplayTransaction

public boolean candoDisplayTransaction()

candoReplayTransaction

public boolean candoReplayTransaction()

candoStart

public boolean candoStart()

candoStop

public boolean candoStop()

candoCopy

public boolean candoCopy()

canEnableTracking

public boolean canEnableTracking()

candoDataSliceMerge

public boolean candoDataSliceMerge()

candoCompression

public boolean candoCompression()

updateNodeIcon

public void updateNodeIcon()

setUserObject

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

clone

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

addCalcscriptNode

protected void addCalcscriptNode()

addRptscriptNode

protected void addRptscriptNode()

addRulesNode

protected void addRulesNode()

showNode

protected void showNode(EssbaseTreeNode node)
Overrides:
showNode in class EssbaseTreeNode

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.