|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjve.generated.ObjectReference
jve.generated.BasicDataObject
Default implementation of a data object.
| Field Summary |
| Fields inherited from class jve.generated.ObjectReference |
debug |
| Fields inherited from interface jve.generated.IBoundObject |
DELIMITER, PROPERTY_OBJ_CHANGED |
| Constructor Summary | |
BasicDataObject()
|
|
BasicDataObject(java.lang.Object source,
java.lang.String prop)
|
|
| Method Summary | |
java.lang.Object |
getValue(java.lang.String property)
Get the value of the given property from the source object. |
boolean |
isPrimitive(java.lang.String property)
Get to see if the type of the given property is a Java primitive type. |
boolean |
isReadOnly(java.lang.String property)
Check if the given property has a setter method. |
void |
refresh()
Refresh the referenced object. |
void |
setSourceObject(java.lang.Object obj)
Set the source object that will be used as a reference for the bound object. |
void |
setValue(java.lang.String property,
java.lang.Object value)
Set the value of the given property on the source object to the given value. |
java.lang.String |
toString()
|
| Methods inherited from class jve.generated.ObjectReference |
actionPerformed, addPropertyChangeListener, getObject, getProperty, getSourceObject, getType, removePropertyChangeListener, setProperty, setSourceObject |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jve.generated.IBoundObject |
actionPerformed, addPropertyChangeListener, getObject, getProperty, getSourceObject, getType, removePropertyChangeListener, setProperty, setSourceObject |
| Constructor Detail |
public BasicDataObject()
public BasicDataObject(java.lang.Object source,
java.lang.String prop)
| Method Detail |
public void setSourceObject(java.lang.Object obj)
IBoundObject
setSourceObject in interface IBoundObjectsetSourceObject in class ObjectReferenceobj - the source objectpublic java.lang.Object getValue(java.lang.String property)
getValue in interface IDataObjectproperty - the property to retrieve
public void setValue(java.lang.String property,
java.lang.Object value)
setValue in interface IDataObjectproperty - the property to setvalue - the value of the target propertypublic java.lang.String toString()
toString in class ObjectReferencepublic void refresh()
IBoundObject
refresh in interface IBoundObjectrefresh in class ObjectReference
public boolean isReadOnly(java.lang.String property)
throws java.lang.IllegalArgumentException
IDataObject
isReadOnly in interface IDataObjectproperty - the property to check
java.lang.IllegalArgumentException - if the target property is invalid
public boolean isPrimitive(java.lang.String property)
throws java.lang.IllegalArgumentException
IDataObject
isPrimitive in interface IDataObjectproperty - the property to check
java.lang.IllegalArgumentException - if the target property is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||