gov.sns.tools.apputils.PVSelection
Class PVTreeNode
java.lang.Object
|
+--javax.swing.tree.DefaultMutableTreeNode
|
+--gov.sns.tools.apputils.PVSelection.PVTreeNode
- All Implemented Interfaces:
- java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
- public class PVTreeNode
- extends javax.swing.tree.DefaultMutableTreeNode
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, 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, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SWITCHED_ON
public static int SWITCHED_ON
SWITCHED_OFF
public static int SWITCHED_OFF
SWITCHED_ON_COMMAND
public static java.lang.String SWITCHED_ON_COMMAND
SWITCHED_OFF_COMMAND
public static java.lang.String SWITCHED_OFF_COMMAND
CREATE_PV
public static int CREATE_PV
REMOVE_PV
public static int REMOVE_PV
CREATE_PV_COMMAND
public static java.lang.String CREATE_PV_COMMAND
REMOVE_PV_COMMAND
public static java.lang.String REMOVE_PV_COMMAND
RENAME_PV
public static int RENAME_PV
RENAME_PV_COMMAND
public static java.lang.String RENAME_PV_COMMAND
PVTreeNode
public PVTreeNode()
PVTreeNode
public PVTreeNode(java.lang.String name)
setName
public void setName(java.lang.String name)
getOldName
public java.lang.String getOldName()
getName
public java.lang.String getName()
setColor
public void setColor(java.awt.Color color)
getColor
public java.awt.Color getColor()
isPVName
public boolean isPVName()
setAsPVName
public void setAsPVName(boolean itIsPVName)
isPVNamesAllowed
public boolean isPVNamesAllowed()
setPVNamesAllowed
public void setPVNamesAllowed(boolean pvNamesAllowed)
setPVNumberLimit
public void setPVNumberLimit(int limit)
getPVNumberLimit
public int getPVNumberLimit()
isSwitchedOn
public boolean isSwitchedOn()
setSwitchedOnOffListener
public void setSwitchedOnOffListener(java.awt.event.ActionListener switchOnOffListener)
getSwitchedOnOffListener
public java.awt.event.ActionListener getSwitchedOnOffListener()
setSwitchedOn
public void setSwitchedOn(boolean itIsSwitchedOn)
setCheckBoxVisible
public void setCheckBoxVisible(boolean showCheckBox)
isCheckBoxVisible
public boolean isCheckBoxVisible()
setCreateRemoveListener
public void setCreateRemoveListener(java.awt.event.ActionListener createRemoveListener)
getCreateRemoveListener
public java.awt.event.ActionListener getCreateRemoveListener()
creatingOccurred
public void creatingOccurred()
removingOccurred
public void removingOccurred()
setRenameListener
public void setRenameListener(java.awt.event.ActionListener renameListener)
getRenameListener
public java.awt.event.ActionListener getRenameListener()
isSelected
public boolean isSelected()
setSelected
public void setSelected(boolean itIsSelected)
getNumberOfSelectedNodes
public static int getNumberOfSelectedNodes(PVTreeNode root)
getIndexOfSelectedNode
public static java.lang.Integer getIndexOfSelectedNode(PVTreeNode root)
getSelectedPVTreeNode
public static PVTreeNode getSelectedPVTreeNode(PVTreeNode root)
getChannel
public Channel getChannel()
setChannel
public void setChannel(Channel channel)