SilverStream
Application Server 3.5

com.sssw.rt.event
Class AgoRowSetSupport

java.lang.Object
 |
 +--com.sssw.rt.event.AgoRowSetSupport

public class AgoRowSetSupport
extends Object

A utility class that can be used as a helper by AgiRowCursor objects to support firing rowCursor and propertyChange events


Constructor Summary
AgoRowSetSupport(AgiRowSetEventProducer source)
          Constructor.
 
Method Summary
 void addRowSetListener(AgiRowSetListener rcl)
           
 void fireDataReceivedAsync()
          Notifies listeners that the row set has received additional data asynchronously.
 void fireDataReloaded()
          Notifies listeners that the AgiRowCursor object has reloaded all its data, for instance, when a query is performed.
 void fireRowDataChanged(AgiRowCursor rc, int colindex, Object oldValue, Object newValue)
          Notifies listeners that the data stored within a row has been modified.
 void fireRowDataChanged(AgiRowCursor rc, String colname, int colindex, Object oldValue, Object newValue)
          Notifies listeners that the data stored within a row has been modified.
 void fireRowDataChanged(AgiRowCursor rc, String colname, Object oldValue, Object newValue)
          Notifies listeners that the data stored within a row has been modified.
 void fireRowDeleted(AgiRowCursor rc)
          Notifies listeners that the indicated row has been deleted.
 void fireRowInserted(AgiRowCursor rc)
          Notifies listeners that the indicated row has just been inserted.
 void fireRowPreDelete(AgiRowCursor rc)
          Notifies listeners that the indicated row is about to be deleted.
 void fireRowPreInsert(Object[] arg)
          Notifies listeners that a new row is about to be inserted.
 AgiRowSetEventProducer getSource()
          Returns the object which appears as the source of all events fired from this object.
 void removeRowSetListener(AgiRowSetListener rcl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgoRowSetSupport

public AgoRowSetSupport(AgiRowSetEventProducer source)
Constructor. The source object is used as the source property for all events fired by the new AgoRowSetSupport object.
Method Detail

getSource

public AgiRowSetEventProducer getSource()
Returns the object which appears as the source of all events fired from this object.

addRowSetListener

public void addRowSetListener(AgiRowSetListener rcl)

removeRowSetListener

public void removeRowSetListener(AgiRowSetListener rcl)

fireRowPreDelete

public void fireRowPreDelete(AgiRowCursor rc)
Notifies listeners that the indicated row is about to be deleted.

fireRowDeleted

public void fireRowDeleted(AgiRowCursor rc)
Notifies listeners that the indicated row has been deleted.

fireRowPreInsert

public void fireRowPreInsert(Object[] arg)
Notifies listeners that a new row is about to be inserted.
Parameters:
arg - the first element of this array (index 0) must be an AgiRowCursor indicating the place where the new row will be inserted. The second element must be a Boolean, which is true if the new row will be inserted before and false if the new row will be inserted after the given row.

fireRowInserted

public void fireRowInserted(AgiRowCursor rc)
Notifies listeners that the indicated row has just been inserted.

fireDataReloaded

public void fireDataReloaded()
Notifies listeners that the AgiRowCursor object has reloaded all its data, for instance, when a query is performed.

fireDataReceivedAsync

public void fireDataReceivedAsync()
Notifies listeners that the row set has received additional data asynchronously.

fireRowDataChanged

public void fireRowDataChanged(AgiRowCursor rc,
                               int colindex,
                               Object oldValue,
                               Object newValue)
Notifies listeners that the data stored within a row has been modified.

fireRowDataChanged

public void fireRowDataChanged(AgiRowCursor rc,
                               String colname,
                               Object oldValue,
                               Object newValue)
Notifies listeners that the data stored within a row has been modified.

fireRowDataChanged

public void fireRowDataChanged(AgiRowCursor rc,
                               String colname,
                               int colindex,
                               Object oldValue,
                               Object newValue)
Notifies listeners that the data stored within a row has been modified.

SilverStream
Application Server 3.5