net.sf.arise.inspector
Class AbstractInspectorNode
java.lang.Object
|
+--net.sf.arise.inspector.AbstractInspectorNode
- All Implemented Interfaces:
- InspectorNode
- Direct Known Subclasses:
- ArrayNode, ClassNode, CollectionNode, DefaultInspectorNode, FieldListNode, MapNode
- abstract class AbstractInspectorNode
- extends java.lang.Object
- implements InspectorNode
- Author:
- Maja S Bratseth
|
Constructor Summary |
AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject)
|
AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.Class declaredClass)
|
AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.Class declaredClass,
java.lang.String label)
|
AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.reflect.Field field)
|
AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.reflect.Field field,
java.lang.String label)
|
AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.String label)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locator
protected ServiceLocator locator
AbstractInspectorNode
public AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject)
AbstractInspectorNode
public AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.reflect.Field field)
AbstractInspectorNode
public AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.reflect.Field field,
java.lang.String label)
AbstractInspectorNode
public AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.String label)
AbstractInspectorNode
public AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.Class declaredClass)
AbstractInspectorNode
public AbstractInspectorNode(AbstractInspectorNode parent,
java.lang.Object realObject,
java.lang.Class declaredClass,
java.lang.String label)
setServiceLocator
public void setServiceLocator(ServiceLocator locator)
- Specified by:
setServiceLocator in interface InspectorNode
id
public final java.lang.String id()
- Specified by:
id in interface InspectorNode
addChild
protected final void addChild(AbstractInspectorNode child)
parent
final AbstractInspectorNode parent()
children
public final InspectorNode[] children()
- Specified by:
children in interface InspectorNode
isExpanded
public final boolean isExpanded()
- Specified by:
isExpanded in interface InspectorNode
open
final void open()
close
final void close()
setOpenRecursively
final void setOpenRecursively(boolean open)
getRealObject
public final java.lang.Object getRealObject()
setPrimitive
protected final void setPrimitive(boolean primitive)
getLabel
protected java.lang.String getLabel()
getSomeClass
java.lang.Class getSomeClass()
isLeaf
public final boolean isLeaf()
- Specified by:
isLeaf in interface InspectorNode
toDisplayString
public java.lang.String toDisplayString()
- Specified by:
toDisplayString in interface InspectorNode
expand
public final void expand(int levels)
- Specified by:
expand in interface InspectorNode
addChildren
protected abstract void addChildren(int levels)
throws java.lang.Exception
- Add node type specific children. Used for more user friendly
display of collections, maps and arrays.
java.lang.Exception
findNode
public final InspectorNode findNode(java.lang.String id)
setSelectedNode
final void setSelectedNode(AbstractInspectorNode node)
createNode
protected final AbstractInspectorNode createNode(java.lang.Object value)
createNode
protected final AbstractInspectorNode createNode(java.lang.Object value,
java.lang.String label)
createNode
protected final AbstractInspectorNode createNode(java.lang.Object value,
java.lang.reflect.Field field)
createNode
protected final AbstractInspectorNode createNode(java.lang.Object value,
java.lang.reflect.Field field,
java.lang.String label)
newNode
protected static final AbstractInspectorNode newNode(java.lang.Object value)
newNode
protected static final AbstractInspectorNode newNode(AbstractInspectorNode parent,
java.lang.Object value,
java.lang.reflect.Field field,
java.lang.String label)
createSizeNode
protected final AbstractInspectorNode createSizeNode(int size)
All code and documentation is
Copyright (c) : 2000-2003 Kjetil Valstadsve & Maja S. Bratseth