|
|||||||||
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.ElementSpy
public abstract class ElementSpy
Instances of this class are holding information about the elements of an 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 | |
---|---|
ElementSpy(AbstractObjectSpy object)
Initialize the new instance with default values. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
|
protected AbstractObjectSpy |
getContainer()
|
protected java.lang.Class |
getCurrentType()
Returns the type of this element. |
int |
getModifiers()
Returns the modifiers of the elements declaration. |
boolean |
is_Boolean_or_boolean()
Returns true if the current value of this element spy is of type long or Long |
boolean |
is_Byte_or_byte()
Returns true if the current value of this element spy is of type byte or Byte |
boolean |
is_Character_or_char()
Returns true if the current value of this element spy is of type char or Character |
boolean |
is_Double_or_double()
Returns true if the current value of this element spy is of type double or Double |
boolean |
is_Float_or_float()
Returns true if the current value of this element spy is of type float or Float |
boolean |
is_Integer_or_int()
Returns true if the current value of this element spy is of type int or Integer |
boolean |
is_Long_or_long()
Returns true if the current value of this element spy is of type long or Long |
boolean |
is_Short_or_short()
Returns true if the current value of this element spy is of type short or Short |
protected boolean |
isCorrectType(java.lang.Object obj)
|
boolean |
isEditable()
Currently allows to edit String values and primitive types only |
boolean |
isElementSpy()
Returns true because this spy is an element spy. |
protected void |
modifyValue(java.lang.Object newValue)
|
protected void |
setContainer(AbstractObjectSpy aValue)
|
void |
setValue(java.lang.Object newValue)
Sets the given object as the new value of the spy's inspected object |
Methods inherited from class org.pfsw.joi.Spy |
---|
getName, getRendererRegistry, getType, getTypeString, getTypeStringOf, getValue, getValueComponent, getValueString, getValueTypeString, invokeInspectString, is_boolean, is_byte, is_char, is_double, is_float, is_int, is_long, is_short, isPrimitive, objectAsComponent, objectAsString, rendererFor, setRendererRegistry, valueIsNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementSpy(AbstractObjectSpy object)
Method Detail |
---|
protected AbstractObjectSpy getContainer()
protected void setContainer(AbstractObjectSpy aValue)
public boolean isElementSpy()
isElementSpy
in class Spy
public int getModifiers()
getModifiers
in class Spy
Modifier
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public void setValue(java.lang.Object newValue) throws java.lang.Exception
setValue
in class Spy
java.lang.Exception
public boolean isEditable()
isEditable
in class Spy
public boolean is_Integer_or_int()
public boolean is_Long_or_long()
public boolean is_Short_or_short()
public boolean is_Byte_or_byte()
public boolean is_Float_or_float()
public boolean is_Double_or_double()
public boolean is_Character_or_char()
public boolean is_Boolean_or_boolean()
protected java.lang.Class getCurrentType()
protected boolean isCorrectType(java.lang.Object obj)
protected void modifyValue(java.lang.Object newValue) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |