|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pfsw.joi.Spy
org.pfsw.joi.AbstractObjectSpy
org.pfsw.joi.inspectors.ListSpy
public class ListSpy
An instance of this class is a wrapper for one inspected object that implements the java.util.List interface. It provides the API an inspector is using, to display internal information about the inspected array.
Field Summary |
---|
Fields inherited from class org.pfsw.joi.Spy |
---|
PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, RENDERER_MAPPING_FILENAME, RENDERER_MAPPING_FILENAME_ALL, RENDERER_MAPPING_FILENAME_CLASSLOADER |
Constructor Summary | |
---|---|
ListSpy(java.lang.Object obj)
Initialize the new instance with default values. |
Method Summary | |
---|---|
protected void |
addAllElements()
|
protected boolean |
allowsElementModification()
Returns true. |
protected boolean |
canBeSorted()
Returns whether or not the elements of the underlying object can be sorted. |
protected java.util.List |
getList()
Returns the wrapped list (is doing the type cast). |
protected void |
setElementValue(ElementSpy element,
java.lang.Object value)
Sets the value of the specified element to the given value. |
Methods inherited from class org.pfsw.joi.AbstractObjectSpy |
---|
createNewElementList, getElementFilter, getElementHolders, getElementNamed, getElements, getFullElementCount, getModifiers, getName, getObject, getType, getValue, initializeElements, setElementFilter, setElementHolders, setName, setObject, sortElements |
Methods inherited from class org.pfsw.joi.Spy |
---|
getRendererRegistry, getTypeString, getTypeStringOf, getValueComponent, getValueString, getValueTypeString, invokeInspectString, is_boolean, is_byte, is_char, is_double, is_float, is_int, is_long, is_short, isEditable, isElementSpy, isPrimitive, objectAsComponent, objectAsString, rendererFor, setRendererRegistry, setValue, valueIsNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListSpy(java.lang.Object obj) throws java.lang.SecurityException
java.lang.SecurityException
Method Detail |
---|
protected java.util.List getList()
protected void addAllElements() throws java.lang.SecurityException
addAllElements
in class AbstractObjectSpy
java.lang.SecurityException
protected boolean canBeSorted()
canBeSorted
in class AbstractObjectSpy
protected boolean allowsElementModification()
allowsElementModification
in class AbstractObjectSpy
protected void setElementValue(ElementSpy element, java.lang.Object value) throws java.lang.Exception
setElementValue
in class AbstractObjectSpy
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |