|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfbench.dom.ElementModel
fbench.tree.DOMTreeNode
public class DOMTreeNode
A TreeNode encapsulating an Element of the DOM tree of an IEC 61499 XML document that has been "scrubbed" of all but Element nodes.
Constructor Summary | |
---|---|
DOMTreeNode()
|
Method Summary | |
---|---|
void |
add(javax.swing.tree.TreeNode newNode)
|
java.util.Enumeration |
children()
|
static DOMTreeNode |
forElement(org.w3c.dom.Element el)
Returns a DOMTreeNode encapsulating the given DOM Element, or null if no such DOMTreeNode exists. |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
DOMTreeNode |
getChildAt(int childIndex)
|
int |
getChildCount()
Returns the count of displayable children. |
java.util.Vector<DOMTreeNode> |
getChildren()
Returns a Vector of the receiver's children. |
javax.swing.Icon |
getIcon()
Returns the icon to be used for display of this element. |
int |
getIndex(javax.swing.tree.TreeNode node)
|
javax.swing.tree.TreeNode |
getParent()
|
java.lang.String |
getText()
Returns the string to be used to display the tree node. |
void |
handleEvent(org.w3c.dom.events.Event evt)
|
static boolean |
hasInterface(java.lang.String nname)
Returns true if the given string is the name of an IEC 61499 LibraryElement with an interface. |
boolean |
isLeaf()
|
void |
removeAllChildren()
|
void |
setElement(org.w3c.dom.Element el)
|
void |
setParent(DOMTreeNode p)
|
Methods inherited from class fbench.dom.ElementModel |
---|
equals, forElement, getComment, getElement, getName, getType, isDigit, isLetter, isName, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DOMTreeNode()
Method Detail |
---|
public void setElement(org.w3c.dom.Element el)
setElement
in class ElementModel
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public java.lang.String getText()
public javax.swing.Icon getIcon()
public static boolean hasInterface(java.lang.String nname)
public DOMTreeNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
public void setParent(DOMTreeNode p)
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
public static DOMTreeNode forElement(org.w3c.dom.Element el)
public void add(javax.swing.tree.TreeNode newNode)
public java.util.Vector<DOMTreeNode> getChildren()
public void handleEvent(org.w3c.dom.events.Event evt)
handleEvent
in interface org.w3c.dom.events.EventListener
public void removeAllChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |