borland Packages  Class Hierarchy  jbcl.dataset Package  Index 

AccessEvent class

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

About the AccessEvent class

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.


AccessEvent variables

Variables implemented in this class

Variables implemented in java.util.EventObject

AccessEvent constructors

AccessEvent 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

AccessEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


AccessEvent variables

CLOSE

  public static final int CLOSE = 2

COLUMN_ADD

  public static final int COLUMN_ADD = 3

COLUMN_CHANGE

  public static final int COLUMN_CHANGE = 5

COLUMN_DROP

  public static final int COLUMN_DROP = 4

COLUMN_MOVE

  public static final int COLUMN_MOVE = 6

DATA_CHANGE

  public static final int DATA_CHANGE = 2

OPEN

  public static final int OPEN = 1
Event type. Returned from getID();

STRUCTURE_CHANGE

  public static final int STRUCTURE_CHANGE = 8
Will get pertinent information when a following OPEN event occurs.

UNKNOWN

  public static final int UNKNOWN = 7
Constant describing an unknown reasons for a CLOSE event.

UNSPECIFIED

  public static final int UNSPECIFIED = 1
Reasons for an OPEN event. Returned from getReason().

AccessEvent constructors

AccessEvent(java.lang.Object, borland.jbcl.dataset.AccessEvent)

  public AccessEvent(java.lang.Object source, borland.jbcl.dataset.AccessEvent event)

AccessEvent(java.lang.Object, int)

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

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

  public AccessEvent(java.lang.Object source, int id, int reason)

AccessEvent(java.lang.Object, int, int, borland.jbcl.dataset.Column)

  public AccessEvent(java.lang.Object source, int id, int reason, borland.jbcl.dataset.Column dropColumn)

AccessEvent(java.lang.Object, int, int, borland.jbcl.dataset.Column, borland.jbcl.dataset.Column)

  public AccessEvent(java.lang.Object source, int id, int reason, borland.jbcl.dataset.Column oldColumn, borland.jbcl.dataset.Column newColumn)

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

  public AccessEvent(java.lang.Object source, int id, int reason, int oldOrdinal, int newOrdinal)

AccessEvent properties

dropColumn

 public Column getDropColumn()
Read-only property that returns information about which Column was dropped from a COLUMN_DROP operation.

ID

 public final int getID()
The event type. Valid return values for this method are defined as variables in this class.

newColumn

 public Column getNewColumn()
Read-only property that returns information on a new Column from a COLUMN_CHANGE operation.

newOrdinal

 public int getNewOrdinal()
Read-only property that returns the new ordinal position when a column is moved.

oldColumn

 public Column getOldColumn()
Read-only property that returns the old Column from a COLUMN_CHANGE operation.

oldOrdinal

 public int getOldOrdinal()
Read-only property that returns the previous ordinal position when a column is moved.

reason

 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.

AccessEvent methods

dispatch(java.util.EventListener)

  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)