borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.dataset 

DataChangeEvent class

java.lang.Object
   +----java.util.EventObject
           +----borland.jbcl.util.DispatchableEvent
                   +----borland.jbcl.dataset.DataChangeEvent

About the DataChangeEvent class

Variables  Constructors  Properties  Methods  

Implements ExceptionDispatch, Serializable

This is the object that is passed to DataSets and to listeners of DataSets when data changes. The event type indicates the type of update. Other members provide additional information on the change of data. Useful for component writers. Not for general usage.


DataChangeEvent variables

Variables implemented in this class

Variables implemented in java.util.EventObject

DataChangeEvent constructors

DataChangeEvent properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.util.DispatchableEvent

Properties implemented in java.lang.Object

Properties implemented in java.util.EventObject

DataChangeEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


DataChangeEvent variables

DATA_CHANGED

  public static final int DATA_CHANGED = 5
More than one row of data has changed.

POST_ROW

  public static final int POST_ROW = 6
Notification to listeners that a row is posting.

ROW_ADDED

  public static final int ROW_ADDED = 1
Row added. Row member has new row position.

ROW_CHANGED

  public static final int ROW_CHANGED = 3
Only a cell changed, row did not post.

ROW_CHANGE_POSTED

  public static final int ROW_CHANGE_POSTED = 4
Row changed and posted.

ROW_DELETED

  public static final int ROW_DELETED = 2
Row deleted. Row member has new row position.

DataChangeEvent constructors

DataChangeEvent(java.lang.Object, int)

  public DataChangeEvent(java.lang.Object source, int id)

DataChangeEvent(java.lang.Object, int, int)

  public DataChangeEvent(java.lang.Object source, int id, int affectedRow)

DataChangeEvent properties

ID

 public final int getID()
The type of change.

rowAffected

 public final int getRowAffected()
If multiRowChange is false, return the row affected. Otherwise, return -1.

DataChangeEvent methods

dispatch(java.util.EventListener)

  public void dispatch(java.util.EventListener listener)

Overrides: borland.jbcl.util.DispatchableEvent.dispatch(java.util.EventListener)

multiRowChange()

  public final boolean multiRowChange()
Data in more than one row is affected.

toString()

  public String toString()

Overrides: borland.jbcl.util.DispatchableEvent.toString()