|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jadex.swing.sequence.SequenceTreeNode
A customized TreeNode used in SequenceTreeDisplay by using JDOM element.
Constructor Summary | |
SequenceTreeNode()
Creates new SequenceTreeNode |
|
SequenceTreeNode(org.jdom.Element seq)
Second construcor |
Method Summary | |
java.util.Enumeration |
children()
Get all children in an Enumeration. |
boolean |
equals(java.lang.Object o)
Comparing if two elements are equal. |
boolean |
getAllowsChildren()
Get if this node allows children. |
javax.swing.tree.TreeNode |
getChildAt(int p1)
Get a treeNode given the index of the child. |
int |
getChildCount()
Get the total number of the children. |
int |
getIndex(javax.swing.tree.TreeNode p1)
Get the index of a child node. |
javax.swing.tree.TreeNode |
getParent()
Get the parent of this TreeNode. |
org.jdom.Element |
getSequence()
Get the wrapped sequence element. |
boolean |
isLeaf()
See if this TreeNode is a leaf. |
void |
setSequence(org.jdom.Element seq)
Set the wrapped sequence element. |
java.lang.String |
toString()
This method return the name of the sequence element. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SequenceTreeNode()
public SequenceTreeNode(org.jdom.Element seq)
seq
- the sequence element for the current treenodeMethod Detail |
public void setSequence(org.jdom.Element seq)
seq
- the wrapped sequence element.public org.jdom.Element getSequence()
public java.lang.String toString()
toString
in class java.lang.Object
java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.Boolean.hashCode()
,
Hashtable
public int getIndex(javax.swing.tree.TreeNode p1)
getIndex
in interface javax.swing.tree.TreeNode
p1
- a child node.public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getChildAt(int p1)
getChildAt
in interface javax.swing.tree.TreeNode
p1
- the index of the child.public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |