|
|||||||||
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
public abstract class AbstractObjectSpy
An instance of this class is a wrapper for one inspected object. It provides the API an inspector is using, to display internal information about the inspected object.
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 | |
---|---|
AbstractObjectSpy(java.lang.Object obj)
Initialize the new instance with default values. |
Method Summary | |
---|---|
protected abstract void |
addAllElements()
|
protected boolean |
allowsElementModification()
Returns true if this object allows the modification of its elements. |
protected boolean |
canBeSorted()
Returns whether or not the elements of the underlying object can be sorted. |
protected java.util.List |
createNewElementList()
|
ElementFilter |
getElementFilter()
|
protected java.util.List |
getElementHolders()
|
ElementSpy |
getElementNamed(java.lang.String elementName)
Returns the element with the given name or null if no such element can be found in the receiver. |
java.util.List |
getElements()
Returns all elements, i.e. including inherited elements as List. |
int |
getFullElementCount()
Returns the number of elements ignoring all filter criteria. |
int |
getModifiers()
Returns the bit mask indicating the modifiers of the class declaration. |
java.lang.String |
getName()
Returns the name of the inspected object |
java.lang.Object |
getObject()
|
java.lang.Class |
getType()
Returns the type (class) of the underlying object. |
java.lang.Object |
getValue()
Returns the value of the underlying object. |
protected void |
initializeElements()
|
void |
setElementFilter(ElementFilter aValue)
|
protected void |
setElementHolders(java.util.List newValue)
|
protected void |
setElementValue(ElementSpy element,
java.lang.Object value)
Sets the value of the specified element to the given value. |
void |
setName(java.lang.String newValue)
|
protected void |
setObject(java.lang.Object newValue)
|
boolean |
sortElements()
Sorts all elements of the underlying object in ascending order. |
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 AbstractObjectSpy(java.lang.Object obj) throws java.lang.SecurityException
java.lang.SecurityException
Method Detail |
---|
public java.lang.String getName()
Spy
getName
in class Spy
public void setName(java.lang.String newValue)
public java.lang.Object getObject()
protected void setObject(java.lang.Object newValue)
protected java.util.List getElementHolders()
protected void setElementHolders(java.util.List newValue)
public ElementFilter getElementFilter()
public void setElementFilter(ElementFilter aValue)
public java.lang.Class getType()
getType
in class Spy
public java.lang.Object getValue() throws java.lang.Exception
getValue
in class Spy
java.lang.Exception
public int getModifiers()
getModifiers
in class Spy
Modifier
public java.util.List getElements()
public int getFullElementCount()
public ElementSpy getElementNamed(java.lang.String elementName)
protected abstract void addAllElements()
protected void initializeElements() throws java.lang.SecurityException
java.lang.SecurityException
protected java.util.List createNewElementList()
protected boolean canBeSorted()
public boolean sortElements()
protected boolean allowsElementModification()
protected void setElementValue(ElementSpy element, java.lang.Object value) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |