Package javaforce.awt
Class XMLTree.XMLTag
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
javaforce.awt.XMLTree.XMLTag
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
- Enclosing class:
- XMLTree
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanTag is a singletonFields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns value of argument.getChildAt(int index) Returns the child tag at index.Returns the content of this node.getName()Returns a unique name for this node.Returns the parent of the tag.booleanisLeaf()Returns true if the node is a leaf.voidSets argument to value.voidsetContent(String newContent) Sets content.voidSets the name for this node.toString()Returns the unique name of the tag.Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
Field Details
-
name
-
attrs
-
uname
-
-
isSingle
public boolean isSingleTag is a singleton -
isNotLeaf
public boolean isNotLeaf -
isLeaf
public boolean isLeaf -
isReadOnly
public boolean isReadOnly
-
-
Constructor Details
-
XMLTag
public XMLTag()Constructs a new XMLTag
-
-
Method Details
-
toString
Returns the unique name of the tag.- Overrides:
toStringin classDefaultMutableTreeNode
-
getParent
Returns the parent of the tag. This method just overrides the default method but returns XMLTag.- Specified by:
getParentin interfaceTreeNode- Overrides:
getParentin classDefaultMutableTreeNode
-
isLeaf
public boolean isLeaf()Returns true if the node is a leaf. This method just overrides the default method and allows better leaf control.- Specified by:
isLeafin interfaceTreeNode- Overrides:
isLeafin classDefaultMutableTreeNode
-
getName
Returns a unique name for this node. -
setName
Sets the name for this node. -
getChildAt
Returns the child tag at index. This method just overrides the default method but returns XMLTag.- Specified by:
getChildAtin interfaceTreeNode- Overrides:
getChildAtin classDefaultMutableTreeNode
-
getArg
Returns value of argument. -
setArg
Sets argument to value. -
getContent
Returns the content of this node. -
setContent
Sets content.
-