ConForM.CoopnTools.Constraint
Class ConstraintNodeInterface

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

public class ConstraintNodeInterface
extends ConstraintNode
implements AddConsAble

This node symbolizes an constraints interface.


Field Summary
protected  NodeAddConsFieldAction addConsFieldAction
           
 
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
ConstraintNodeInterface(ConstraintTree tree, ConstraintNode parent, ConstraintsInterface inter, ConstraintsMgr consMgr, ConsEnv env)
           
 
Method Summary
 void addCons()
           
protected  void buildTexts(java.util.ResourceBundle texts)
          This routine is called at the creation of the node, by "super".
protected  ConstraintNode createNodeFromElement(ConstraintsElement element)
          Create a node from an element, if possible.
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 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
acceptEditions, children, clone, createConsPanel, createPopup, editable, 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

addConsFieldAction

protected NodeAddConsFieldAction addConsFieldAction
Constructor Detail

ConstraintNodeInterface

public ConstraintNodeInterface(ConstraintTree tree,
                               ConstraintNode parent,
                               ConstraintsInterface inter,
                               ConstraintsMgr consMgr,
                               ConsEnv env)
Method Detail

getInterface

protected ConstraintsInterface getInterface()

addCons

public void addCons()
Specified by:
addCons in interface AddConsAble

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

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.

getLabel

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

getTextElement

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

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