borland Packages Class Hierarchy jbcl.dataset Package Index
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.dataset.DataChangeEvent
Variables Constructors Properties Methods
Implements ExceptionDispatch, Serializable
The DataChangeEvent is the internal event generated when the data in a DataSet is changed. It is passed to DataSet components and listeners of the DataSet. The event ID (see the ID property) indicates the type of data update. Other members provide additional information on the change of the data.
The DataChangeEvent class may be useful for component writers, however, is not recommended for general usage.
The DataChangeListener responds to the DataChangeEvent class.
public static final int DATA_CHANGED = 5More than one row of data has changed.
public static final int POST_ROW = 6A row is posting.
public static final int ROW_ADDED = 1A row was added. Row member has new row position.
public static final int ROW_CHANGE_POSTED = 4A row was changed and posted.
public static final int ROW_CHANGED = 3Only a cell changed, row did not post.
public static final int ROW_DELETED = 2A row was deleted. Row member has new row position.
public DataChangeEvent(java.lang.Object source, int id)Constructs a DataChangeEvent object.
public DataChangeEvent(java.lang.Object source, int id, int affectedRow)Constructs a DataChangeEvent object.
public final int getID()Read-only property that indicates the type of data change. Return values for this property are defined as DataChangeEvent variables.
public final int getRowAffected()Read-only property that returns the row affected by the data change. If the multiRowChange property is false, this property returns the row affected. Otherwise, it returns -1.
public void dispatch(java.util.EventListener listener)This method is used internally by other classes in the JBCL. You should never use this method directly.
Overrides: borland.jbcl.util.DispatchableEvent.dispatch(java.util.EventListener)
public final boolean multiRowChange()Specifies whether data in more than one row is affected.
public String toString()
Overrides: borland.jbcl.util.DispatchableEvent.toString()