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


 

 

jve.generated
Class BasicDataObject

java.lang.Object
  extended byjve.generated.ObjectReference
      extended byjve.generated.BasicDataObject

All Implemented Interfaces:
IBoundObject, IDataObject

Direct Known Subclasses:
DataSourceDataObject, JavaBeanDataObject


public class BasicDataObject
extends ObjectReference
implements IDataObject

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
protected  void firePropertyChanged(java.beans.PropertyChangeEvent event)
           
protected  PropertyHelper getHelper(java.lang.String property)
          Get the property helper for the given property.
 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, addPropertyListeners, firePropertyChanged, getErrorMessage, getObject, getProperty, getPureSourceObject, getSourceObject, getType, log, log, refreshPropertyHelper, removePropertyChangeListener, removePropertyListeners, setProperty, setSourceObject
 

Methods inherited from class java.lang.Object
clone, equals, finalize, 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

 

 

BasicDataObject

public BasicDataObject()


 

 

BasicDataObject

public BasicDataObject(java.lang.Object source,
                       java.lang.String prop)

Method Detail

 

 

setSourceObject

public void setSourceObject(java.lang.Object obj)

Description copied from interface: IBoundObject
Set the source object that will be used as a reference for the bound object.

Specified by:
setSourceObject in interface IBoundObject
Overrides:
setSourceObject in class ObjectReference

Parameters:
obj - the source object


 

 

getValue

public java.lang.Object getValue(java.lang.String property)

Get the value of the given property from the source object.
If the source object is another IDataObject, the getValue call will be delegated to the source object.

Specified by:
getValue in interface IDataObject

Parameters:
property - the property to retrieve
Returns:
the value of the property, or null if there's a problem retrieving the value.


 

 

getHelper

protected PropertyHelper getHelper(java.lang.String property)

Get the property helper for the given property. The property helper is cached. If a helper for the given property isn't available, one is created.

Parameters:
property - the target property
Returns:
the PropertyHelper for this property


 

 

setValue

public 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.
If the source object is another IDataObject, the setValue call will be delegated to the source object.

Specified by:
setValue in interface IDataObject

Parameters:
property - the property to set
value - the value of the target property


 

 

toString

public java.lang.String toString()

Overrides:
toString in class ObjectReference


 

 

firePropertyChanged

protected void firePropertyChanged(java.beans.PropertyChangeEvent event)

Overrides:
firePropertyChanged in class ObjectReference


 

 

refresh

public void refresh()

Description copied from interface: IBoundObject
Refresh the referenced object. A call to this method denotes to the reference object that any cached information should be discarted, or that the referenced object has changed. If the referenced object is dynamic (such as the result of a method invocation) the object will be refreshed.

Specified by:
refresh in interface IBoundObject
Overrides:
refresh in class ObjectReference


 

 

isReadOnly

public boolean isReadOnly(java.lang.String property)
                   throws java.lang.IllegalArgumentException

Description copied from interface: IDataObject
Check if the given property has a setter method.

Specified by:
isReadOnly in interface IDataObject

Parameters:
property - the property to check
Returns:
true, if the property does not have a setter method, false otherwise
Throws:
java.lang.IllegalArgumentException - if the target property is invalid


 

 

isPrimitive

public boolean isPrimitive(java.lang.String property)
                    throws java.lang.IllegalArgumentException

Description copied from interface: IDataObject
Get to see if the type of the given property is a Java primitive type.

Specified by:
isPrimitive in interface IDataObject

Parameters:
property - the property to check
Returns:
true if the property is a primitive type, false otherwise
Throws:
java.lang.IllegalArgumentException - if the target property is invalid


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