public class JavaScriptTreeNode extends SourceTreeNode
| Constructor and Description |
|---|
JavaScriptTreeNode(org.mozilla.javascript.ast.AstNode userObject) |
JavaScriptTreeNode(org.mozilla.javascript.ast.AstNode userObject,
boolean sorted) |
JavaScriptTreeNode(java.util.List<org.mozilla.javascript.ast.AstNode> userObject) |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.Icon |
getIcon() |
int |
getLength()
Returns the length in the document of this source element.
|
int |
getOffset()
Returns the offset into the document of this source element.
|
java.lang.String |
getText(boolean selected) |
void |
setIcon(javax.swing.Icon icon) |
void |
setOffset(javax.swing.text.Position offs)
Sets the absolute offset of this element in the document.
|
void |
setText(java.lang.String text)
Sets the text to display in the tree for this node.
|
java.lang.String |
toString()
Overridden to return the textual representation displayed in the tree
view.
|
add, children, clone, cloneWithChildren, compareTo, filter, getChildAfter, getChildAt, getChildBefore, getChildCount, getIndex, getSortPriority, isSortable, isSorted, refresh, setSortable, setSorted, setSortPrioritybreadthFirstEnumeration, 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, setUserObjectpublic JavaScriptTreeNode(java.util.List<org.mozilla.javascript.ast.AstNode> userObject)
public JavaScriptTreeNode(org.mozilla.javascript.ast.AstNode userObject)
public JavaScriptTreeNode(org.mozilla.javascript.ast.AstNode userObject,
boolean sorted)
public javax.swing.Icon getIcon()
public int getLength()
getOffset()public int getOffset()
getLength()public java.lang.String getText(boolean selected)
public void setIcon(javax.swing.Icon icon)
public void setOffset(javax.swing.text.Position offs)
offs - The offset.getOffset()public void setText(java.lang.String text)
text - The text to display.public java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNode