borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.dataset
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.dataset.DataChangeEvent
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.
public static final int DATA_CHANGED = 5More than one row of data has changed.
public static final int POST_ROW = 6Notification to listeners that a row is posting.
public static final int ROW_ADDED = 1Row added. Row member has new row position.
public static final int ROW_CHANGED = 3Only a cell changed, row did not post.
public static final int ROW_CHANGE_POSTED = 4Row changed and posted.
public static final int ROW_DELETED = 2Row deleted. Row member has new row position.
public DataChangeEvent(java.lang.Object source, int id)
public DataChangeEvent(java.lang.Object source, int id, int affectedRow)
public final int getID()The type of change.
public final int getRowAffected()If multiRowChange is false, return the row affected. Otherwise, return -1.
public void dispatch(java.util.EventListener listener)
Overrides: borland.jbcl.util.DispatchableEvent.dispatch(java.util.EventListener)
public final boolean multiRowChange()Data in more than one row is affected.
public String toString()
Overrides: borland.jbcl.util.DispatchableEvent.toString()