net.sf.arise.inspector
Class MapNode

java.lang.Object
  |
  +--net.sf.arise.inspector.AbstractInspectorNode
        |
        +--net.sf.arise.inspector.MapNode
All Implemented Interfaces:
InspectorNode

class MapNode
extends AbstractInspectorNode

Author:
Maja S Bratseth

Field Summary
protected  ServiceLocator locator
           
 
Constructor Summary
MapNode(AbstractInspectorNode parent, java.lang.Object realObject, java.lang.reflect.Field field, java.lang.String label)
           
 
Method Summary
protected  void addChild(AbstractInspectorNode child)
           
protected  void addChildren(int levels)
          Add node type specific children.
 InspectorNode[] children()
           
(package private)  void close()
           
protected  AbstractInspectorNode createNode(java.lang.Object value)
           
protected  AbstractInspectorNode createNode(java.lang.Object value, java.lang.reflect.Field field)
           
protected  AbstractInspectorNode createNode(java.lang.Object value, java.lang.reflect.Field field, java.lang.String label)
           
protected  AbstractInspectorNode createNode(java.lang.Object value, java.lang.String label)
           
protected  AbstractInspectorNode createSizeNode(int size)
           
 void expand(int levels)
           
 InspectorNode findNode(java.lang.String id)
           
protected  java.lang.String getLabel()
           
 java.lang.Object getRealObject()
           
(package private)  java.lang.Class getSomeClass()
           
 java.lang.String id()
           
 boolean isExpanded()
           
 boolean isLeaf()
           
 boolean isRealObject()
           
protected static AbstractInspectorNode newNode(AbstractInspectorNode parent, java.lang.Object value, java.lang.reflect.Field field, java.lang.String label)
           
protected static AbstractInspectorNode newNode(java.lang.Object value)
           
(package private)  void open()
           
(package private)  AbstractInspectorNode parent()
           
(package private)  void setOpenRecursively(boolean open)
           
protected  void setPrimitive(boolean primitive)
           
(package private)  void setSelectedNode(AbstractInspectorNode node)
           
 void setServiceLocator(ServiceLocator locator)
           
 java.lang.String toDisplayString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locator

protected ServiceLocator locator
Constructor Detail

MapNode

public MapNode(AbstractInspectorNode parent,
               java.lang.Object realObject,
               java.lang.reflect.Field field,
               java.lang.String label)
Method Detail

addChildren

protected void addChildren(int levels)
Description copied from class: AbstractInspectorNode
Add node type specific children. Used for more user friendly display of collections, maps and arrays.

Specified by:
addChildren in class AbstractInspectorNode

isRealObject

public boolean isRealObject()

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

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