|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
p3j.gui.panels.projections.ProjectionTreeNode<ParameterAssignment>
p3j.gui.panels.projections.ParameterAssignmentNode
public class ParameterAssignmentNode
Node that represents a ParameterAssignment
.
Created: August 24, 2008
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 java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterAssignmentNode(ParameterAssignment assignment)
assignment
- the parameter assignment to be representedMethod Detail |
---|
protected void refreshRepresentation()
ProjectionTreeNode
DefaultMutableTreeNode.setUserObject(Object)
.
refreshRepresentation
in class ProjectionTreeNode<ParameterAssignment>
public JPanel selected(TreePath selectionPath, IProjectionTree projTree)
ProjectionTreeNode
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.
selected
in class ProjectionTreeNode<ParameterAssignment>
selectionPath
- the path containing all ancestorsprojTree
- the projection tree
protected void importDataFromFile()
public void deselected()
ProjectionTreeNode
TreeSelectionListener
when this node gets
de-selected.
deselected
in class ProjectionTreeNode<ParameterAssignment>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |