|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConForM.CoopnTools.Edit.CoopnNode
Field Summary | |
protected boolean |
allowsChildren
|
protected java.lang.String[] |
arg
|
protected java.util.List |
childNodeList
|
protected CoopnMgr |
coopnMgr
|
protected java.lang.String |
editTitle
|
protected CoopnEnv |
env
|
protected java.text.MessageFormat |
fmt
|
protected CoopnNode |
parent
|
protected javax.swing.JPopupMenu |
popup
|
protected boolean |
readOnly
|
protected java.lang.String |
removeText
|
protected java.lang.String |
removeTitle
|
static java.lang.String |
ResourceFile
|
protected ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextMgr |
textMgr
|
protected java.lang.String |
title
|
protected CoopnTree |
tree
|
Constructor Summary | |
CoopnNode(CoopnTree tree,
CoopnNode parent,
CoopnMgr coopnMgr,
CoopnEnv env)
|
Method Summary | |
protected void |
acceptEditions(EditPanel editPanel)
This method is called each time the contents of the edit panel must be used to set the values of the node's elements. |
protected void |
buildTexts(java.util.ResourceBundle texts)
This routine is called at the creation of the node, by "super". |
java.util.Enumeration |
children()
|
java.lang.Object |
clone()
|
protected EditPanel |
createEditPanel()
This method is called each time the edit panel is about to be displayed. |
protected abstract CoopnNode |
createNodeFromElement(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement element)
Create a node from an element, if possible. |
protected void |
createPopup()
This method must be called by the sub-classed to create the popup, after the creation of the edit panel. |
protected boolean |
editable()
Return true iff the node accept editions with an edit panel. |
boolean |
getAllowsChildren()
|
javax.swing.tree.TreeNode |
getChildAt(int childIndex)
|
int |
getChildCount()
|
CoopnNode |
getCoopnNodeAt(int childIndex)
|
int |
getIndex(javax.swing.tree.TreeNode node)
|
protected abstract java.lang.String |
getLabel()
This routine must return the label of the node, as a String. |
javax.swing.tree.TreeNode |
getParent()
|
CoopnNode |
getParentCoopnNode()
|
javax.swing.JPopupMenu |
getPopupMenu()
|
protected abstract ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement |
getTextElement()
This routine must deliver the coopn text element corresponing to this node. |
protected javax.swing.tree.TreePath |
getTreePath()
This method return a treePath from root to node |
void |
insert(CoopnNode child)
Insert a node, at its standard position. |
void |
insert(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child)
Insert an element, at its standard position. |
void |
insert(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child,
int index)
Insert an element, at a specified position. |
void |
insert(javax.swing.tree.MutableTreeNode child,
int index)
|
boolean |
insertAble(CoopnNode child,
int index)
Return true if the node can be inserted at the given location, or merged to the current node at the given location. |
boolean |
insertAble(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child,
int index)
Return true if the element can be inserted at the given location, or merged to the current node at the given location. |
protected boolean |
insertAbleObject(java.lang.Object child,
int index)
Return true if the object can be inserted at the given location, or merged to the current node at the given location. |
boolean |
isLeaf()
|
boolean |
mergeAble(CoopnNode child,
int index)
Return true if the node can be merged to the current node, at the given location. |
boolean |
mergeAble(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child,
int index)
Return true if the element can be merged to the current node, at the given location. |
protected boolean |
mergeAbleObject(java.lang.Object child,
int index)
Return true if the object can be merged to the current node, at the given location. |
protected abstract void |
notifyInsertRemove()
This method is called each time children are inserted or removed. |
protected void |
openAll()
This method is called when all the child node need to be expanded |
void |
remove()
Remove the current node, as well as its childs, iff the user confirm the command. |
void |
remove(int index)
|
void |
remove(javax.swing.tree.MutableTreeNode node)
|
void |
removeFromParent()
|
void |
setParent(javax.swing.tree.MutableTreeNode newParent)
|
void |
setUserObject(java.lang.Object object)
|
void |
showEditPanel()
|
int |
standardInsertIndex(CoopnNode child)
Return the standard location of a node to insert. |
int |
standardInsertIndex(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child)
Return the standard location of an element to insert. |
protected abstract int |
standardInsertIndexObject(java.lang.Object child)
Return the standard location of an object to insert. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ResourceFile
protected boolean allowsChildren
protected CoopnNode parent
protected CoopnTree tree
protected java.util.List childNodeList
protected java.text.MessageFormat fmt
protected java.lang.String[] arg
protected java.lang.String title
protected java.lang.String editTitle
protected java.lang.String removeTitle
protected java.lang.String removeText
protected boolean readOnly
protected CoopnEnv env
protected CoopnMgr coopnMgr
protected ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextMgr textMgr
protected javax.swing.JPopupMenu popup
Constructor Detail |
public CoopnNode(CoopnTree tree, CoopnNode parent, CoopnMgr coopnMgr, CoopnEnv env)
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public void showEditPanel()
public javax.swing.JPopupMenu getPopupMenu()
protected abstract CoopnNode createNodeFromElement(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement element)
element
- a textual elementpublic boolean mergeAble(CoopnNode child, int index)
public boolean mergeAble(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child, int index)
protected boolean mergeAbleObject(java.lang.Object child, int index)
public boolean insertAble(CoopnNode child, int index)
public boolean insertAble(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child, int index)
protected boolean insertAbleObject(java.lang.Object child, int index)
public int standardInsertIndex(CoopnNode child)
public int standardInsertIndex(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child)
protected abstract int standardInsertIndexObject(java.lang.Object child)
protected abstract void notifyInsertRemove()
public CoopnNode getCoopnNodeAt(int childIndex)
public CoopnNode getParentCoopnNode()
public void insert(CoopnNode child)
java.lang.IllegalArgumentException
- the child cannot be inserted in this node.public void insert(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child)
java.lang.IllegalArgumentException
- the child cannot be inserted in this node.public void insert(ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement child, int index) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- the child cannot be inserted in this node.public void remove()
public java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public void insert(javax.swing.tree.MutableTreeNode child, int index) throws java.lang.IllegalArgumentException
insert
in interface javax.swing.tree.MutableTreeNode
public void remove(int index)
remove
in interface javax.swing.tree.MutableTreeNode
public void remove(javax.swing.tree.MutableTreeNode node)
remove
in interface javax.swing.tree.MutableTreeNode
public void removeFromParent()
removeFromParent
in interface javax.swing.tree.MutableTreeNode
public void setParent(javax.swing.tree.MutableTreeNode newParent)
setParent
in interface javax.swing.tree.MutableTreeNode
public void setUserObject(java.lang.Object object)
setUserObject
in interface javax.swing.tree.MutableTreeNode
protected void buildTexts(java.util.ResourceBundle texts)
protected abstract java.lang.String getLabel()
protected abstract ConForM.CoopnTools.CoKer.CoopnMgr.CoopnTextMgr.CoopnTextElement getTextElement()
protected void createPopup()
protected boolean editable()
protected EditPanel createEditPanel()
protected javax.swing.tree.TreePath getTreePath()
protected void openAll()
protected void acceptEditions(EditPanel editPanel)
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |