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:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<SourceTreeNode>,javax.swing.tree.MutableTreeNode,javax.swing.tree.TreeNode
public class XmlTreeNode extends SourceTreeNode
The tree node inXmlOutlineTrees.- Version:
- 1.0
- See Also:
XmlOutlineTree, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XmlTreeNode(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsOffset(int offs)Returns whether this tree node contains a specific offset.java.lang.StringgetElement()intgetEndOffset()java.lang.StringgetMainAttr()intgetStartOffset()voidsetEndOffset(javax.swing.text.Position pos)voidsetMainAttribute(java.lang.String attr)voidsetStartOffset(javax.swing.text.Position pos)java.lang.StringtoString()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, setSortPriority
-
Methods 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
-
-
-
-
Method Detail
-
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
public java.lang.String getElement()
-
getEndOffset
public int getEndOffset()
-
getMainAttr
public java.lang.String getMainAttr()
-
getStartOffset
public int getStartOffset()
-
setEndOffset
public void setEndOffset(javax.swing.text.Position pos)
-
setMainAttribute
public void setMainAttribute(java.lang.String attr)
-
setStartOffset
public void setStartOffset(javax.swing.text.Position pos)
-
toString
public java.lang.String toString()
Returns a string representation of this tree node.- Overrides:
toStringin classjavax.swing.tree.DefaultMutableTreeNode- Returns:
- A string representation of this tree node.
-
-