Skip navigation links


com.essbase.eas.ui.ptree
Class PTreeDateNode

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

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

public class PTreeDateNode
extends PTreeNode

Title: Description: Copyright: Copyright (c) 2001 Company: Hyperion Solutions Corporation

Version:
1.0
Author:
Sree Menon
See Also:
Serialized Form

Field Summary
protected  java.text.DateFormat dateFormat
           
protected  short format
           

 

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
PTreeDateNode()
           
PTreeDateNode(java.lang.String caption)
           
PTreeDateNode(java.lang.String caption, boolean allowsChildren, short format, java.text.DateFormat dateFormat)
           
PTreeDateNode(java.lang.String caption, short format)
           

 

Method Summary
 void cancelEditing()
           
 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.
 void endEditing()
           
 java.util.Date getDate()
           
 java.lang.String getDateString()
           
 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.
 void setDate(java.util.Date date)
           
 void setDate(java.lang.Object date)
           
 void setDate(java.lang.String date)
           
 void setDateFormatter(java.text.DateFormat format)
           

 

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

 

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

format

protected short format

dateFormat

protected java.text.DateFormat dateFormat

Constructor Detail

PTreeDateNode

public PTreeDateNode()

PTreeDateNode

public PTreeDateNode(java.lang.String caption)

PTreeDateNode

public PTreeDateNode(java.lang.String caption,
                     short format)

PTreeDateNode

public PTreeDateNode(java.lang.String caption,
                     boolean allowsChildren,
                     short format,
                     java.text.DateFormat dateFormat)

Method Detail

getTreeCellRendererComponent

public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree,
                                                       java.lang.Object value,
                                                       boolean selected,
                                                       boolean expanded,
                                                       boolean leaf,
                                                       int row,
                                                       boolean hasFocus)
Description copied from class: PTreeNode
retrieves the tree cell renderer for this object. In PTreeNode we return a null pointer; this method should be overridden by any object that wishes to do special rendering.
Overrides:
getTreeCellRendererComponent 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

setDateFormatter

public void setDateFormatter(java.text.DateFormat format)

getDate

public java.util.Date getDate()

getDateString

public java.lang.String getDateString()

setDate

public void setDate(java.lang.Object date)

setDate

public void setDate(java.util.Date date)

setDate

public void setDate(java.lang.String date)

endEditing

public void endEditing()
Overrides:
endEditing in class PTreeNode

cancelEditing

public void cancelEditing()
Overrides:
cancelEditing in class PTreeNode

Skip navigation links


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