class ObjectNode extends DefaultMutableTreeNode implements Serializable
Modifier and Type | Field and Description |
---|---|
private int |
arrayIndex |
private Class |
clazz |
private boolean |
editable |
private String |
fieldName |
private static Icon[] |
icons |
private boolean |
isAdministrable |
private boolean |
isControllable |
private boolean |
isEntryTop |
private boolean |
isLeaf |
private boolean |
isRoot |
private String |
name |
private Object |
obj |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
ObjectNode(boolean isAdministrable)
Constructor for a root node.
|
ObjectNode(Object obj,
boolean isControllable)
Constructor for an entry (attribute) top nodes.
|
ObjectNode(Object obj,
Class clazz,
String fieldName,
boolean isLeaf)
Constructor for an ordinary field.
|
ObjectNode(Object obj,
Class clazz,
String fieldName,
int arrayIndex,
boolean isLeaf)
Constructor for an array element.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ObjectNode child) |
Object |
getEntryTop() |
String |
getFieldName() |
Icon |
getIcon() |
Object |
getObject() |
String |
getTitle() |
Object |
getUserObject() |
boolean |
isAdministrable() |
boolean |
isControllable() |
boolean |
isEditable() |
protected boolean |
isEntryTop() |
void |
setAdministrable(boolean val) |
void |
setControllable(boolean val) |
private void |
setNodeName() |
void |
setObjectRecursive() |
void |
setUserObject(Object obj) |
Object |
setValue(Object val) |
String |
toString() |
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, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent
private String name
private Object obj
private Class clazz
private String fieldName
private int arrayIndex
private boolean editable
private boolean isLeaf
private boolean isAdministrable
private boolean isControllable
private boolean isRoot
private boolean isEntryTop
private static Icon[] icons
public ObjectNode(boolean isAdministrable)
public ObjectNode(Object obj, boolean isControllable)
public ObjectNode(Object obj, Class clazz, String fieldName, boolean isLeaf)
private void setNodeName()
public void add(ObjectNode child)
public Object getEntryTop()
protected boolean isEntryTop()
public void setObjectRecursive() throws NoSuchFieldException, IllegalAccessException
public String getTitle()
public Icon getIcon()
public void setUserObject(Object obj)
setUserObject
in interface MutableTreeNode
setUserObject
in class DefaultMutableTreeNode
public Object getUserObject()
getUserObject
in class DefaultMutableTreeNode
public String toString()
toString
in class DefaultMutableTreeNode
public String getFieldName()
public Object getObject()
public boolean isEditable()
public boolean isAdministrable()
public void setAdministrable(boolean val)
public boolean isControllable()
public void setControllable(boolean val)
public Object setValue(Object val) throws NumberFormatException
NumberFormatException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.