p3j.gui.panels.projections
Class ParameterInstanceNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
p3j.gui.panels.projections.ProjectionTreeNode<ParameterInstance>
p3j.gui.panels.projections.ParameterInstanceNode
- All Implemented Interfaces:
- Serializable, Cloneable, MutableTreeNode, TreeNode
public class ParameterInstanceNode
- extends ProjectionTreeNode<ParameterInstance>
Node that represents a ParameterInstance
.
Created: August 24, 2008
- Author:
- Christina Bohk, Roland Ewald
- See Also:
- Serialized Form
Field Summary |
static String |
NEW_ASSIGNMENT
Name for new assignment and title for the button to create one. |
Methods inherited from class p3j.gui.panels.projections.ProjectionTreeNode |
deselected, getChilds, getChildsByType, getChildsByType, getChildWithEntity, getContentPanel, getEntity, getEntityClass, getEntityLabel, getProjectionEntity, getProjectionEntity, getProjectionTreeNodeOnPath, refreshRecursively, refreshRepresentation, selected |
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 |
NEW_ASSIGNMENT
public static final String NEW_ASSIGNMENT
- Name for new assignment and title for the button to create one.
- See Also:
- Constant Field Values
ParameterInstanceNode
public ParameterInstanceNode(ParameterInstance instance)
- Default constructor.
- Parameters:
instance
- the instance that is represented by this node
selected
public JPanel selected(TreePath selectionPath,
IProjectionTree projTree)
- Description copied from class:
ProjectionTreeNode
- Method that is called by
ProjectionTreeNode#selected(TreePath, JPanel, DefaultTreeModel, javax.swing.JTree)
originally. Implementations of ProjectionTreeNode
might override
either of the 'selected' methods, this one is more convenient as it stores
the generated panel in an auxiliary variable and does not require to add
the panel manually, it just needs to be returned.
- Overrides:
selected
in class ProjectionTreeNode<ParameterInstance>
- Parameters:
selectionPath
- the path containing all ancestorsprojTree
- the projection tree
- Returns:
- panel with a node summary
getDisplayName
public static String getDisplayName(ParameterInstance instance)
- Gets the display name. In case this refers to direct
emigration/immigration, the name to displayed is prefixed with 'Direct '.
- Parameters:
instance
- the instance
- Returns:
- the display name
Copyright © 2012. All Rights Reserved.