|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.reflect.FieldTransfer
| Field Summary | |
DataConverter |
converter
An optional DataConverter. |
Object |
dataInterface
This is the Control used for the field in an Editor. |
Object |
dataObject
The data object being used. |
Field |
field
The field in the Object (if one exists). |
Object |
fieldEvent
The field event that occured. |
String |
fieldName
The full name of the field. |
String |
fieldType
The type of the field. |
static int |
FROM_OBJECT
|
String |
fullFieldName
The full field name. |
protected Wrapper |
fWrapper
|
Method |
getMethod
The get() method used on the data interface - this is not used on the data object. |
Method |
getSetFieldMethod
The combined getSetField() method used on the data object. |
Method |
getSetMethod
The combined getSet() method used on the data interface. |
protected Wrapper |
gsWrapper
|
String |
ifType
The type of the data used by the interface object. |
protected Wrapper |
ifWrapper
|
protected Wrapper |
objWrapper
|
protected Wrapper[] |
oneParameter
|
String |
pureName
The pure name of the field without any extra specifiers. |
protected Wrapper |
retWrapper
|
Method |
setMethod
The set() method used on the data interface - this is not used on the data object. |
protected Wrapper[] |
threeParameters
|
static int |
TO_OBJECT
|
String |
transferType
The type of the data being transfered. |
| Constructor Summary | |
FieldTransfer(Object objectOrReflect,
String fieldName)
|
|
FieldTransfer(Object objectOrReflect,
String fieldName,
Control dataInterface)
|
|
FieldTransfer(Reflect objectClass,
Object sampleOrDataObject,
String fieldName,
Object dataInterface,
DataConverter converter)
|
|
FieldTransfer(String fieldName)
This is only used to create a dummy field transfer. |
|
| Method Summary | |
Object |
getFieldValue(Object obj)
|
Wrapper |
getFieldValue(Object obj,
Wrapper dest)
|
FieldTransfer |
getFor(Object data,
Control control)
|
boolean |
isField(String field)
|
boolean |
isValid()
Returns true if this FieldTransfer can actually do a transfer. |
boolean |
setMethodsFor(String classSpec,
String getMethodName,
String getMethodSignature,
String setMethodName,
String setMethodSignature)
|
String |
toString()
Return a String representation of this object. |
void |
transfer(int direction)
This uses the "dataObject" variable as the object for field transfer. |
void |
transfer(Object obj,
int direction)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public Object dataInterface
public Method setMethod
public Method getMethod
public Method getSetMethod
public Method getSetFieldMethod
public Field field
public String fieldName
public String fieldType
public String transferType
public String ifType
public String pureName
public String fullFieldName
protected Wrapper objWrapper
protected Wrapper ifWrapper
protected Wrapper fWrapper
protected Wrapper retWrapper
protected Wrapper gsWrapper
protected Wrapper[] oneParameter
protected Wrapper[] threeParameters
public DataConverter converter
public Object fieldEvent
public Object dataObject
public static final int TO_OBJECT
public static final int FROM_OBJECT
| Constructor Detail |
public FieldTransfer(String fieldName)
public FieldTransfer(Object objectOrReflect,
String fieldName)
public FieldTransfer(Object objectOrReflect,
String fieldName,
Control dataInterface)
public FieldTransfer(Reflect objectClass,
Object sampleOrDataObject,
String fieldName,
Object dataInterface,
DataConverter converter)
| Method Detail |
public boolean setMethodsFor(String classSpec,
String getMethodName,
String getMethodSignature,
String setMethodName,
String setMethodSignature)
public FieldTransfer getFor(Object data,
Control control)
public boolean isValid()
public boolean isField(String field)
public Wrapper getFieldValue(Object obj,
Wrapper dest)
public Object getFieldValue(Object obj)
public void transfer(int direction)
public void transfer(Object obj,
int direction)
public String toString()
Object
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||