Skip navigation links


com.essbase.eas.ui.ptree
Class PTreeLabelNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.essbase.eas.ui.ptree.PTreeNode
          extended by com.essbase.eas.ui.ptree.PTreeLabelNode

All Implemented Interfaces:
PrintableObject, java.awt.event.ActionListener, java.awt.event.ItemListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.event.DocumentListener, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
AlphaFnTemplateTreeNode, AssociateOutlineTree.ANode, DatabaseContainerNode, DPAttributeDimensionNode, DPChildOfMemberNode, DPDimBuildDimensionNode, DPDimBuildDimensionsNode, DPDimBuildOutlineMemberNode, DPFieldTypeNode, DPOutlineMemberNode, EASOpenChooserPanel.ObjectNode, FnTemplateTreeNode, PTreeRootLabelNode, SubsetDialog.ConditionNode

public class PTreeLabelNode
extends PTreeNode

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

10/17/2000, mbolisetty:

Version:
1.00, 10/17/2000
Author:
Madhavi Bolisetty
See Also:
Serialized Form

Field Summary
protected  boolean expanded
           
protected  javax.swing.JLabel label
           

 

Fields inherited from class com.essbase.eas.ui.ptree.PTreeNode
bundle, cancelAction, caption, editable, editValue, enabled, enableRemoval, enterAction, icon, keyAdapter, nodeObject, tipText

 

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

 

Constructor Summary
PTreeLabelNode()
           
PTreeLabelNode(boolean allowsChildren, java.lang.String caption)
           
PTreeLabelNode(boolean allowsChildren, java.lang.String caption, java.lang.Object nodeObject)
           
PTreeLabelNode(java.lang.Object userObject, boolean allowsChildren, java.lang.String caption)
           
PTreeLabelNode(java.lang.Object userObject, boolean allowsChildren, java.lang.String caption, java.lang.Object nodeObject)
           

 

Method Summary
 int drawObject(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int posX, int posY, int height)
          Draws the object at the x and y.
 java.lang.Object[] getPrintableObjects()
           
 java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
          retrieves the tree cell renderer for this object.
 boolean isEditable()
           
 void nodeRemoved()
           
 void setEditable(boolean edit)
           
 void setLabelText(java.lang.String text)
           
 void willExpand()
           

 

Methods inherited from class com.essbase.eas.ui.ptree.PTreeNode
actionPerformed, addAction, addAndNotify, addNodesAndNotify, addSortedChild, addSortedChild, cancelEditing, changedUpdate, clone, drawText, drawText, drawText, drawText, editNode, endEditing, getCaption, getChildForUserObject, getContextMenuItems, getEditingValue, getEditText, getHeight, getIcon, getLabel, getNodeObject, getToolTipText, getTree, getWidth, handleClick, handleDoubleClick, handleRightClick, insertUpdate, installListeners, installListeners, isEnabled, itemStateChanged, nodeChanged, paintCheckIcon, paintIcon, paintRadioIcon, propertyChange, remove, removeAction, removeAllChildren, removeAndNotify, removeUpdate, setCaption, setChildrenEnabled, setDescendantsEnabled, setEditingValue, setEnabled, setEnableRemoval, setIcon, setNodeObject, setTipText, setTree, setUserObject, toString, uninstallListeners, uninstallListeners

 

Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, 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, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeFromParent, setAllowsChildren, setParent

 

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

 

Field Detail

label

protected javax.swing.JLabel label

expanded

protected boolean expanded

Constructor Detail

PTreeLabelNode

public PTreeLabelNode()

PTreeLabelNode

public PTreeLabelNode(boolean allowsChildren,
                      java.lang.String caption)

PTreeLabelNode

public PTreeLabelNode(boolean allowsChildren,
                      java.lang.String caption,
                      java.lang.Object nodeObject)

PTreeLabelNode

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

PTreeLabelNode

public PTreeLabelNode(java.lang.Object userObject,
                      boolean allowsChildren,
                      java.lang.String caption,
                      java.lang.Object nodeObject)

Method Detail

setLabelText

public void setLabelText(java.lang.String text)

isEditable

public boolean isEditable()
Overrides:
isEditable in class PTreeNode

setEditable

public void setEditable(boolean edit)
Overrides:
setEditable in class PTreeNode

getTreeCellRendererComponent

public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree,
                                                       java.lang.Object value,
                                                       boolean selected,
                                                       boolean expanded,
                                                       boolean leaf,
                                                       int row,
                                                       boolean hasFocus)
retrieves the tree cell renderer for this object. In this case it will be a JLabel or null based on whether it is a caption only or a caption/value pair.
Overrides:
getTreeCellRendererComponent in class PTreeNode

willExpand

public void willExpand()
Overrides:
willExpand in class PTreeNode

getPrintableObjects

public java.lang.Object[] getPrintableObjects()
Overrides:
getPrintableObjects in class PTreeNode

drawObject

public int drawObject(java.awt.Graphics graphics,
                      java.awt.print.PageFormat pageFormat,
                      int posX,
                      int posY,
                      int height)
Description copied from interface: PrintableObject
Draws the object at the x and y.
Specified by:
drawObject in interface PrintableObject
Overrides:
drawObject in class PTreeNode
Parameters:
graphics - graphics to draw
pageFormat - the current page format
posX - the x position
posY - the Y position
height - the height
Returns:
the width of the object

nodeRemoved

public void nodeRemoved()
Overrides:
nodeRemoved in class PTreeNode

Skip navigation links


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