p3j.gui.panels.projections
Class ParameterAssignmentNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by p3j.gui.panels.projections.ProjectionTreeNode<ParameterAssignment>
          extended by p3j.gui.panels.projections.ParameterAssignmentNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class ParameterAssignmentNode
extends ProjectionTreeNode<ParameterAssignment>

Node that represents a ParameterAssignment. Created: August 24, 2008

Author:
Christina Bohk, Roland Ewald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ParameterAssignmentNode(ParameterAssignment assignment)
          Default constructor.
 
Method Summary
 void deselected()
          Method that is called by the TreeSelectionListener when this node gets de-selected.
protected  void importDataFromFile()
          Queries user which file to import.
protected  void refreshRepresentation()
          This is called when the node's representation might have changed.
 JPanel selected(TreePath selectionPath, IProjectionTree projTree)
          Method that is called by ProjectionTreeNode#selected(TreePath, JPanel, DefaultTreeModel, javax.swing.JTree) originally.
 
Methods inherited from class p3j.gui.panels.projections.ProjectionTreeNode
getChilds, getChildsByType, getChildsByType, getChildWithEntity, getContentPanel, getEntity, getEntityClass, getEntityLabel, getProjectionEntity, getProjectionEntity, getProjectionTreeNodeOnPath, refreshRecursively, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterAssignmentNode

public ParameterAssignmentNode(ParameterAssignment assignment)
Default constructor.

Parameters:
assignment - the parameter assignment to be represented
Method Detail

refreshRepresentation

protected void refreshRepresentation()
Description copied from class: ProjectionTreeNode
This is called when the node's representation might have changed. A reason for this could be changes from the outside. Default implementation is empty. This should simple re-invoke DefaultMutableTreeNode.setUserObject(Object).

Overrides:
refreshRepresentation in class ProjectionTreeNode<ParameterAssignment>

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<ParameterAssignment>
Parameters:
selectionPath - the path containing all ancestors
projTree - the projection tree
Returns:
panel with a node summary

importDataFromFile

protected void importDataFromFile()
Queries user which file to import.


deselected

public void deselected()
Description copied from class: ProjectionTreeNode
Method that is called by the TreeSelectionListener when this node gets de-selected.

Overrides:
deselected in class ProjectionTreeNode<ParameterAssignment>


Copyright © 2012. All Rights Reserved.