|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
com.essbase.eas.ui.ptree.PTreeNode
com.essbase.eas.ui.ptree.PTreeRadioButtonNode
public class PTreeRadioButtonNode
Extends the PTreeNode class to implement some specific features that we need to support in the OLAP console properties. Notes:
10/13/2000, nvarma:
Field Summary |
---|
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 | |
---|---|
PTreeRadioButtonNode() |
|
PTreeRadioButtonNode(java.lang.Object userObject, boolean allowsChildren, java.lang.String caption) |
Method Summary | |
---|---|
void |
cancelEditing() |
protected javax.swing.JRadioButton |
createRadioButton() |
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 |
editNode(PTree tree) |
void |
endEditing() |
java.lang.Object |
getEditingValue() |
int |
getHeight(java.awt.print.PageFormat pageFormat, java.awt.Font font) Returns the height of the object with the font |
java.lang.Object[] |
getPrintableObjects() |
javax.swing.JRadioButton |
getRadioButton() |
boolean |
getRadioButtonState() |
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 |
handleClick(int x, int y) used to handle a single click event; the default implementation is to do nothing. |
void |
setRadioButtonState(boolean bool) |
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 |
Constructor Detail |
---|
public PTreeRadioButtonNode()
public PTreeRadioButtonNode(java.lang.Object userObject, boolean allowsChildren, java.lang.String caption)
Method Detail |
---|
public void setRadioButtonState(boolean bool)
public boolean getRadioButtonState()
public java.awt.Component getTreeCellRendererComponent(javax.swing.JTree tree, java.lang.Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
getTreeCellRendererComponent
in class PTreeNode
public java.lang.Object[] getPrintableObjects()
getPrintableObjects
in class PTreeNode
public int getHeight(java.awt.print.PageFormat pageFormat, java.awt.Font font)
PrintableObject
getHeight
in interface PrintableObject
getHeight
in class PTreeNode
font
- fontpublic int drawObject(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int posX, int posY, int height)
PrintableObject
drawObject
in interface PrintableObject
drawObject
in class PTreeNode
graphics
- graphics to drawpageFormat
- the current page formatposX
- the x positionposY
- the Y positionheight
- the heightpublic void handleClick(int x, int y)
PTreeNode
handleClick
in class PTreeNode
public void editNode(PTree tree)
editNode
in class PTreeNode
public javax.swing.JRadioButton getRadioButton()
protected javax.swing.JRadioButton createRadioButton()
public void endEditing()
endEditing
in class PTreeNode
public void cancelEditing()
cancelEditing
in class PTreeNode
public java.lang.Object getEditingValue()
getEditingValue
in class PTreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |