borland Packages Class Hierarchy jbcl.dataset Package Index
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.dataset.AccessEvent
Variables Constructors Properties Methods
Implements Serializable
The AccessEvent is the internal event generated when a DataSet is opened, closed, or restructured. The AccessEvent class may be useful for component writers, however, it is not recommended for general usage.
The AccessListener class responds to the AccessEvent class.
public static final int CLOSE = 2
public static final int COLUMN_ADD = 3
public static final int COLUMN_CHANGE = 5
public static final int COLUMN_DROP = 4
public static final int COLUMN_MOVE = 6
public static final int DATA_CHANGE = 2
public static final int OPEN = 1Event type. Returned from getID();
public static final int STRUCTURE_CHANGE = 8Will get pertinent information when a following OPEN event occurs.
public static final int UNKNOWN = 7Constant describing an unknown reasons for a CLOSE event.
public static final int UNSPECIFIED = 1Reasons for an OPEN event. Returned from getReason().
public AccessEvent(java.lang.Object source, borland.jbcl.dataset.AccessEvent event)
public AccessEvent(java.lang.Object source, int id)
public AccessEvent(java.lang.Object source, int id, int reason)
public AccessEvent(java.lang.Object source, int id, int reason, borland.jbcl.dataset.Column dropColumn)
public AccessEvent(java.lang.Object source, int id, int reason, borland.jbcl.dataset.Column oldColumn, borland.jbcl.dataset.Column newColumn)
public AccessEvent(java.lang.Object source, int id, int reason, int oldOrdinal, int newOrdinal)
public Column getDropColumn()Read-only property that returns information about which Column was dropped from a COLUMN_DROP operation.
public final int getID()The event type. Valid return values for this method are defined as variables in this class.
public Column getNewColumn()Read-only property that returns information on a new Column from a COLUMN_CHANGE operation.
public int getNewOrdinal()Read-only property that returns the new ordinal position when a column is moved.
public Column getOldColumn()Read-only property that returns the old Column from a COLUMN_CHANGE operation.
public int getOldOrdinal()Read-only property that returns the previous ordinal position when a column is moved.
public final int getReason()Read-only property that returns the reason for the event. Valid values are defined in the variables section of this class.
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)