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


 

 

jve.generated
Class DataSourceDataRows

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

All Implemented Interfaces:
IBoundObject, IDataSourceService, IRowsDataObject


public class DataSourceDataRows
extends ObjectReference
implements IRowsDataObject, IDataSourceService

Default implementation of a row data object that is retrieved by a service call on a Data Source.


Nested Class Summary
 

Nested classes inherited from class jve.generated.IRowsDataObject
IRowsDataObject.RowChangeEvent, IRowsDataObject.RowChangeListener
 

Field Summary
protected  boolean initialized
           
protected  java.util.List listeners
           
 

Fields inherited from class jve.generated.ObjectReference
debug
 

Fields inherited from interface jve.generated.IRowsDataObject
ALL_ROWS, DESIGNTIME_ROWS
 

Fields inherited from interface jve.generated.IBoundObject
DELIMITER, PROPERTY_OBJ_CHANGED
 

Constructor Summary
DataSourceDataRows()
           
 

Method Summary
 void actionPerformed(IActionBinder action)
          Notify the bound object that an action was performed where the reference object was used to perform an action.
 void addRowChangeListener(IRowsDataObject.RowChangeListener l)
          Add a new row change listener to the listener list.
protected  void createRowsFromDataSouce()
          Retrive the rows object by invoking the service method on the data source.
protected  void fireRowChanged(int index, java.lang.Object oldVal, java.lang.Object newVal)
           
 java.lang.Object get(int index)
          Retrieve the value of the row at the given index.
 IDataSource getDataSource()
          Get the Data Source associated with this action.
 int getLength()
          Returns the number of rows in this array
 java.lang.Object getObject()
          Get the bound object.
 ObjectReference getServiceArgument()
          Get the argument used as the parameter for the service call.
 java.lang.String getServiceSignature()
          Get the service signature for this action.
 java.lang.Class getType()
          Get the class type of the referenced object.
 void refresh()
          Refresh the referenced object.
 void removeRowChangeListener(IRowsDataObject.RowChangeListener l)
          Remove an existing row change listener from the listener list.
 void set(int index, java.lang.Object value)
          Set the value at the given index
 void setDataSource(IDataSource source)
          Set the Data Source associated with this action.
 void setServiceArgument(ObjectReference arg)
          Set the argument for the service call, according to the method signature set with the setService method.
 void setServiceSignature(java.lang.String service)
          This is the service method signature that is to be use.
 void setSourceObject(java.lang.Object rows)
          Set the source object that will be used as a reference for the bound object.
 java.lang.String toString()
           
 

Methods inherited from class jve.generated.ObjectReference
addPropertyChangeListener, addPropertyListeners, firePropertyChanged, firePropertyChanged, getErrorMessage, getProperty, getPureSourceObject, getSourceObject, 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
addPropertyChangeListener, getProperty, getSourceObject, removePropertyChangeListener, setProperty, setSourceObject
 

 

Field Detail

 

 

initialized

protected boolean initialized


 

 

listeners

protected java.util.List listeners

Constructor Detail

 

 

DataSourceDataRows

public DataSourceDataRows()

Method Detail

 

 

createRowsFromDataSouce

protected void createRowsFromDataSouce()

Retrive the rows object by invoking the service method on the data source.


 

 

getObject

public java.lang.Object getObject()

Description copied from interface: IBoundObject
Get the bound object. Depending on the implementation this may be the same as the sourceObject.

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

Returns:
resolved object reference.


 

 

setSourceObject

public void setSourceObject(java.lang.Object rows)

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:
rows - the source object


 

 

setServiceSignature

public void setServiceSignature(java.lang.String service)

Description copied from interface: IDataSourceService
This is the service method signature that is to be use. It has to be complete including parameter types e.g. getUserRecord(Integer id);

Specified by:
setServiceSignature in interface IDataSourceService

Parameters:
service - signature


 

 

getServiceSignature

public java.lang.String getServiceSignature()

Description copied from interface: IDataSourceService
Get the service signature for this action.

Specified by:
getServiceSignature in interface IDataSourceService

Returns:
service signature


 

 

setServiceArgument

public void setServiceArgument(ObjectReference arg)

Description copied from interface: IDataSourceService
Set the argument for the service call, according to the method signature set with the setService method.

Specified by:
setServiceArgument in interface IDataSourceService

Parameters:
arg - the service argument


 

 

getServiceArgument

public ObjectReference getServiceArgument()

Description copied from interface: IDataSourceService
Get the argument used as the parameter for the service call.

Specified by:
getServiceArgument in interface IDataSourceService

Returns:
argument used for the service


 

 

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


 

 

get

public java.lang.Object get(int index)

Description copied from interface: IRowsDataObject
Retrieve the value of the row at the given index.

Specified by:
get in interface IRowsDataObject

Parameters:
index - index of the row to retrieve


 

 

set

public void set(int index,
                java.lang.Object value)

Description copied from interface: IRowsDataObject
Set the value at the given index

Specified by:
set in interface IRowsDataObject

Parameters:
index - the index to set
value - the new value


 

 

actionPerformed

public void actionPerformed(IActionBinder action)

Description copied from interface: IBoundObject
Notify the bound object that an action was performed where the reference object was used to perform an action. Typically a binder can choose the manner of reaction, if any.

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

Parameters:
action - the action that has occurred.
See Also:
IActionBinder


 

 

setDataSource

public void setDataSource(IDataSource source)

Description copied from interface: IDataSourceService
Set the Data Source associated with this action.

Specified by:
setDataSource in interface IDataSourceService

Parameters:
source - DataSource to use for this service


 

 

fireRowChanged

protected void fireRowChanged(int index,
                              java.lang.Object oldVal,
                              java.lang.Object newVal)


 

 

addRowChangeListener

public void addRowChangeListener(IRowsDataObject.RowChangeListener l)

Description copied from interface: IRowsDataObject
Add a new row change listener to the listener list.

Specified by:
addRowChangeListener in interface IRowsDataObject

Parameters:
l - the new listener.


 

 

removeRowChangeListener

public void removeRowChangeListener(IRowsDataObject.RowChangeListener l)

Description copied from interface: IRowsDataObject
Remove an existing row change listener from the listener list.

Specified by:
removeRowChangeListener in interface IRowsDataObject

Parameters:
l - the listener to be removed.


 

 

toString

public java.lang.String toString()

Overrides:
toString in class ObjectReference


 

 

getDataSource

public IDataSource getDataSource()

Description copied from interface: IDataSourceService
Get the Data Source associated with this action.

Specified by:
getDataSource in interface IDataSourceService

Returns:
The Data Source used for this service


 

 

getType

public java.lang.Class getType()
                        throws java.lang.IllegalStateException

Description copied from interface: IBoundObject
Get the class type of the referenced object. This is necessary to enable design time visual support through introspection.

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

Returns:
ComponentType of the Array
Throws:
java.lang.IllegalStateException


 

 

getLength

public int getLength()

Description copied from interface: IRowsDataObject
Returns the number of rows in this array

Specified by:
getLength in interface IRowsDataObject

Returns:
the number of rows, or -1 if the array is null


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