Package org.fife.rsta.ac.xml.tree
Class XmlTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.fife.rsta.ac.SourceTreeNode
org.fife.rsta.ac.xml.tree.XmlTreeNode
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SourceTreeNode>,MutableTreeNode,TreeNode
The tree node in
XmlOutlineTrees.- Version:
- 1.0
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsOffset(int offs) Returns whether this tree node contains a specific offset.intintvoidsetEndOffset(Position pos) voidsetMainAttribute(String attr) voidsetStartOffset(Position pos) toString()Returns a string representation of this tree node.Methods inherited from class org.fife.rsta.ac.SourceTreeNode
add, children, clone, cloneWithChildren, compareTo, filter, getChildAfter, getChildAt, getChildBefore, getChildCount, getIndex, getSortPriority, isSortable, isSorted, refresh, setSortable, setSorted, setSortPriorityMethods inherited from class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration, depthFirstEnumeration, getAllowsChildren, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
Field Details
-
mainAttr
-
offset
-
endOffset
-
-
Constructor Details
-
XmlTreeNode
-
-
Method Details
-
containsOffset
public boolean containsOffset(int offs) Returns whether this tree node contains a specific offset.- Parameters:
offs- An offset in the document.- Returns:
- Whether this node contains that offset.
-
getElement
-
getEndOffset
public int getEndOffset() -
getMainAttr
-
getStartOffset
public int getStartOffset() -
setEndOffset
-
setMainAttribute
-
setStartOffset
-
toString
Returns a string representation of this tree node.- Overrides:
toStringin classDefaultMutableTreeNode- Returns:
- A string representation of this tree node.
-