public class BrowserTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NODE_ANNOTATION
Node for an attribute entry (VisibleRuntimeAnnotation).
|
static java.lang.String |
NODE_ARRAYELEMENTVALUE
Node for an ArrayElementValue entry.
|
static java.lang.String |
NODE_ATTRIBUTE
Node for an attribute entry (AttributeInfo).
|
static java.lang.String |
NODE_CONSTANT_POOL
Node for a constant pool entry (CPInfo).
|
static java.lang.String |
NODE_ELEMENTVALUE
Node for an ElementValue entry.
|
static java.lang.String |
NODE_ELEMENTVALUEPAIR
Node for an ElementValuePair entry.
|
static java.lang.String |
NODE_FIELD
Node for a field entry (FieldInfo).
|
static java.lang.String |
NODE_FIELDS
Node for method container.
|
static java.lang.String |
NODE_GENERAL
Node for general information on the class file structure.
|
static java.lang.String |
NODE_INTERFACE
Node for an interface entry.
|
static java.lang.String |
NODE_METHOD
Node for a method entry (MethodInfo).
|
static java.lang.String |
NODE_METHODS
Node for method container.
|
static java.lang.String |
NODE_NO_CONTENT
Node that does not exhibit detail content.
|
Constructor and Description |
---|
BrowserTreeNode(java.lang.String text)
Constructor.
|
BrowserTreeNode(java.lang.String text,
java.lang.String type)
Constructor.
|
BrowserTreeNode(java.lang.String text,
java.lang.String type,
int index)
Constructor.
|
BrowserTreeNode(java.lang.String text,
java.lang.String type,
int index,
java.lang.Object element) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getElement()
Get the element associated with this node
|
int |
getIndex()
Get the index of the node among its siblings.
|
java.lang.String |
getType()
Get the type of the node as defined by the NODE_ constants.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, 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, toString
public static final java.lang.String NODE_NO_CONTENT
public static final java.lang.String NODE_GENERAL
public static final java.lang.String NODE_CONSTANT_POOL
public static final java.lang.String NODE_INTERFACE
public static final java.lang.String NODE_METHODS
public static final java.lang.String NODE_FIELDS
public static final java.lang.String NODE_FIELD
public static final java.lang.String NODE_METHOD
public static final java.lang.String NODE_ATTRIBUTE
public static final java.lang.String NODE_ANNOTATION
public static final java.lang.String NODE_ELEMENTVALUEPAIR
public static final java.lang.String NODE_ELEMENTVALUE
public static final java.lang.String NODE_ARRAYELEMENTVALUE
public BrowserTreeNode(java.lang.String text)
text
- the display text.public BrowserTreeNode(java.lang.String text, java.lang.String type)
text
- the display text.type
- the node type. One of the NODE_ constants.public BrowserTreeNode(java.lang.String text, java.lang.String type, int index)
text
- the display text.type
- the node type. One of the NODE_ constants.index
- the logical index of this node.public BrowserTreeNode(java.lang.String text, java.lang.String type, int index, java.lang.Object element)
public java.lang.String getType()
public int getIndex()
public java.lang.Object getElement()