Class FWResultTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
net.simplace.ui.tree.FWTreeNode
net.simplace.ui.splitpane.results.FWResultTreeNode
- All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
- Author:
- Andreas Enders
- See Also:
-
Field Summary
Fields inherited from class DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
ConstructorsConstructorDescriptionFWResultTreeNode(FWSystemModel aSystemModel) Creates the root node of a system model with one child node per scenario.FWResultTreeNode(FWResultTreeNode aParentNode, org.jdom2.Element aScenarioElement) Creates the node of a scenario. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanMethods inherited from class FWTreeNode
getFunction, getIcon, getID, getPopupImage, getText, getToolTipText, insert, isNodeStartable, isPopupPossible, toStringMethods inherited from class DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, 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
-
FWResultTreeNode
Creates the root node of a system model with one child node per scenario.- Parameters:
aSystemModel- the system model with the scenarios
-
FWResultTreeNode
Creates the node of a scenario.- Parameters:
aParentNode- the node of the system modelaScenarioElement- the scenario element (attributes OID, scenarioname, scenariodesc, DATE)
-
-
Method Details
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceTreeNode- Overrides:
getChildCountin classDefaultMutableTreeNode
-
isSceanarioNode
public boolean isSceanarioNode()- Returns:
- if the Node is a ScenarioNode. false means node is a SystemNode
-
getSystemModel
- Returns:
- the system model of this node
-