ConForM.CoopnTools.Constraint
Class ConstraintNodeConstraintSet

java.lang.Object
  |
  +--ConForM.CoopnTools.Constraint.ConstraintNode
        |
        +--ConForM.CoopnTools.Constraint.ConstraintNodeConstraintSet
All Implemented Interfaces:
AddBodyAble, AddInterfaceAble, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class ConstraintNodeConstraintSet
extends ConstraintNode
implements AddBodyAble, AddInterfaceAble


Field Summary
protected  NodeAddBodyAction addBodyAction
           
protected  NodeAddInterfaceAction addInterfaceAction
           
protected  java.lang.String comments
           
protected  CoopnCompilInfo compilInfo
           
protected  java.lang.String moduleName
           
 
Fields inherited from class ConForM.CoopnTools.Constraint.ConstraintNode
allowsChildren, arg, childNodeList, consMgr, consTitle, env, fmt, parent, popup, readOnly, removeText, removeTitle, ResourceFile, title, tree
 
Constructor Summary
ConstraintNodeConstraintSet(ConstraintTree tree, ConstraintNode parent, ConstraintsModule mod, ConstraintsMgr consMgr, ConsEnv env)
           
 
Method Summary
protected  void acceptEditions(ConsPanel consPanel)
          This method is called each time the contents of the edit panel must be used to set the values of the node's elements.
 void addBody()
           
 void addInterface()
           
protected  void buildTexts(java.util.ResourceBundle texts)
          This routine is called at the creation of the node, by "super".
protected  ConsPanel createConsPanel()
          This method is called each time the edit panel is about to be displayed.
protected  ConstraintsModule createLocalModule(java.lang.String c)
           
protected  ConstraintNode createNodeFromElement(ConstraintsElement element)
          Create a node from an element, if possible.
protected  boolean editable()
          Return true iff the node accept editions with an edit panel.
protected  ConstraintsBody getBody()
           
protected  java.lang.String getHeader()
           
protected  ConstraintsInterface getInterface()
           
protected  java.lang.String getLabel()
          This routine must return the label of the node, as a String.
protected  ConstraintsElement getTextElement()
          This routine must deliver the coopn text element corresponing to this node.
 boolean insertAbleObject(java.lang.Object child, int index)
          Return true if the node can be inserted at the given location.
protected  void notifyInsertRemove()
          This method is called each time children are inserted or removed.
 int standardInsertIndexObject(java.lang.Object child)
          Return the standard location of an element to insert.
 
Methods inherited from class ConForM.CoopnTools.Constraint.ConstraintNode
children, clone, createPopup, getAllowsChildren, getChildAt, getChildCount, getConsNodeAt, getIndex, getParent, getParentConsNode, getPopupMenu, getTreePath, insert, insert, insert, insert, insertAble, insertAble, isLeaf, mergeAble, mergeAble, mergeAbleObject, openAll, remove, remove, remove, removeFromParent, setParent, setUserObject, showConsPanel, standardInsertIndex, standardInsertIndex, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

compilInfo

protected CoopnCompilInfo compilInfo

moduleName

protected java.lang.String moduleName

comments

protected java.lang.String comments

addInterfaceAction

protected NodeAddInterfaceAction addInterfaceAction

addBodyAction

protected NodeAddBodyAction addBodyAction
Constructor Detail

ConstraintNodeConstraintSet

public ConstraintNodeConstraintSet(ConstraintTree tree,
                                   ConstraintNode parent,
                                   ConstraintsModule mod,
                                   ConstraintsMgr consMgr,
                                   ConsEnv env)
Method Detail

createLocalModule

protected ConstraintsModule createLocalModule(java.lang.String c)

getHeader

protected java.lang.String getHeader()

getInterface

protected ConstraintsInterface getInterface()

getBody

protected ConstraintsBody getBody()

addInterface

public void addInterface()
Specified by:
addInterface in interface AddInterfaceAble

addBody

public void addBody()
Specified by:
addBody in interface AddBodyAble

buildTexts

protected void buildTexts(java.util.ResourceBundle texts)
This routine is called at the creation of the node, by "super".
Overrides:
buildTexts in class ConstraintNode

getLabel

protected java.lang.String getLabel()
This routine must return the label of the node, as a String.
Overrides:
getLabel in class ConstraintNode

createNodeFromElement

protected ConstraintNode createNodeFromElement(ConstraintsElement element)
Create a node from an element, if possible.
Overrides:
createNodeFromElement in class ConstraintNode
Parameters:
element - a textual element
Returns:
a node corresponding to the element, or null if no nodes are corresponding to the element. Must be consistent with mergeAble, insertAble, and so on.

insertAbleObject

public boolean insertAbleObject(java.lang.Object child,
                                int index)
Return true if the node can be inserted at the given location.
Overrides:
insertAbleObject in class ConstraintNode

standardInsertIndexObject

public int standardInsertIndexObject(java.lang.Object child)
Return the standard location of an element to insert.
Overrides:
standardInsertIndexObject in class ConstraintNode

notifyInsertRemove

protected void notifyInsertRemove()
This method is called each time children are inserted or removed.
Overrides:
notifyInsertRemove in class ConstraintNode

editable

protected boolean editable()
Return true iff the node accept editions with an edit panel.
Overrides:
editable in class ConstraintNode

getTextElement

protected ConstraintsElement getTextElement()
This routine must deliver the coopn text element corresponing to this node.
Overrides:
getTextElement in class ConstraintNode

createConsPanel

protected ConsPanel createConsPanel()
This method is called each time the edit panel is about to be displayed.
Overrides:
createConsPanel in class ConstraintNode

acceptEditions

protected void acceptEditions(ConsPanel consPanel)
This method is called each time the contents of the edit panel must be used to set the values of the node's elements.
Overrides:
acceptEditions in class ConstraintNode