Package  Use  Tree  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

 

jve.generated
Interface IFieldBinder

All Known Implementing Classes:
SwingTextComponentBinder


public interface IFieldBinder

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

 

 

setDataObject

public void setDataObject(IDataObject object)

Set the data object that provides the data used by this binder.

Parameters:
object - the data object referencing the target object


 

 

getDataObject

public IDataObject getDataObject()

Get the data object that provides the data to this binder.

Returns:
the data object


 

 

setProperty

public void setProperty(java.lang.String property)

Set the property of the object that will be used as the target of this binder. This property should have a string representation that will be used in this field.

Parameters:
property - the property to set.


 

 

getProperty

public java.lang.String getProperty()

Get the property of the data object that will be used by this binder

Returns:
the property


 

 

textToObject

public java.lang.Object textToObject(java.lang.String text)
                              throws java.lang.IllegalArgumentException

Convert a string representation of a property value back to the proper object type of the property.

Parameters:
text - the string of the property value.
Returns:
the Object that is represented by the string.
Throws:
java.lang.IllegalArgumentException


 

 

objectToText

public java.lang.String objectToText(java.lang.Object o)

Convert the given object to a string representation of the value. The object should be able to be recreated from this string representation using the textToObject method.

Parameters:
o - the object to convert
Returns:
the string representation of this object.


Package  Use  Tree  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD