Class FWTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
net.simplace.ui.tree.FWTreeNode
- All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
- Direct Known Subclasses:
FWKeyWordTreeNode, FWResultTreeNode, FWSimComponentsTreeNode, FWSimSolutionTreeNode
Tree node with localised text and tooltip, icon, startable function and optional popup image.
- Author:
- Andreas Enders
- See Also:
-
Field Summary
Fields inherited from class DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
Constructor Details
-
FWTreeNode
Creates a node with localised caption and tooltip (<prefix>.tree.<id>).- Parameters:
aID- id of the nodeaIconID- image id of the icon, or emptyaFunction- function started by the node, or emptyaPopupImageID- image id of the popup, ornull
-
FWTreeNode
public FWTreeNode(String aID, String aCaption, String aToolTip, String aIconID, String aFunction, String aPopupImageID) - Parameters:
aID- id of the nodeaCaption- caption, ornullfor the localised text<prefix>.tree.<id>aToolTip- tooltip, ornullfor the localised text<prefix>.tree.<id>.tooltipaIconID- image id of the icon, or emptyaFunction- function started by the node, or emptyaPopupImageID- image id of the popup, ornull
-
-
Method Details
-
getIcon
- Returns:
- the icon of the treenode
-
getText
- Returns:
- the Text
-
getToolTipText
- Returns:
- the toolTipText
-
getID
- Returns:
- the id
-
getFunction
- Returns:
- the function
-
isNodeStartable
public boolean isNodeStartable()- Returns:
- if node is startable
-
isPopupPossible
public boolean isPopupPossible()- Returns:
- if popup is allowed at this place: a localised popup image exists (the condition was inverted, a popup
was only possible if the image was missing; attribute
popupimageidnot used in the configurations so far)
-
getPopupImage
- Returns:
- Icon used for Popup
-
toString
- Overrides:
toStringin classDefaultMutableTreeNode
-
insert
- Specified by:
insertin interfaceMutableTreeNode- Overrides:
insertin classDefaultMutableTreeNode
-