|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A FieldBinder contains a String text representation of a bound property of an object pointed to by a DataObject. The bound property may be a nested property as defined by the DataObject.
| Method Summary | |
IDataObject |
getDataObject()
Get the data object that provides the data to this binder. |
java.lang.String |
getProperty()
Get the property of the data object that will be used by this binder |
java.lang.String |
objectToText(java.lang.Object o)
Convert the given object to a string representation of the value. |
void |
setDataObject(IDataObject object)
Set the data object that provides the data used by this binder. |
void |
setProperty(java.lang.String property)
Set the property of the object that will be used as the target of this binder. |
java.lang.Object |
textToObject(java.lang.String text)
Convert a string representation of a property value back to the proper object type of the property. |
| Method Detail |
public void setDataObject(IDataObject object)
object - the data object referencing the target objectpublic IDataObject getDataObject()
public void setProperty(java.lang.String property)
property - the property to set.public java.lang.String getProperty()
public java.lang.Object textToObject(java.lang.String text)
throws java.lang.IllegalArgumentException
text - the string of the property value.
java.lang.IllegalArgumentExceptionpublic java.lang.String objectToText(java.lang.Object o)
o - the object to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||