borland Packages  Class Hierarchy  jbcl.dataset Package  Index 

StatusEvent class

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

About the StatusEvent class

Variables  Constructors  Properties  Methods  

Implements Serializable

This class is used to inform listeners of specified types of status messages. If the listener wants to take action for a particular status message, the getCode() method can be used to determine the type of message being sent.


StatusEvent variables

Variables implemented in this class

Variables implemented in java.util.EventObject

StatusEvent constructors

StatusEvent 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

StatusEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


StatusEvent variables

CLEAR

  public static final int CLEAR = 10

DATA_CHANGE

  public static final int DATA_CHANGE = 8

EDIT_CANCELED

  public static final int EDIT_CANCELED = 12
Cancelled edit for new or existing row.

EDIT_STARTED

  public static final int EDIT_STARTED = 11
Entered edit state for new or existing row.

EXCEPTION

  public static final int EXCEPTION = 9

LOADING_DATA

  public static final int LOADING_DATA = 1
Status notification about loading rows in a DataSet.

LOCATE_MATCH_FOUND

  public static final int LOCATE_MATCH_FOUND = 3
Status notification that a match was found during a locate operation.

LOCATE_MATCH_NOT_FOUND

  public static final int LOCATE_MATCH_NOT_FOUND = 4
Status notification that a match could not be found for a location operation.

LOCATE_NON_STRING

  public static final int LOCATE_NON_STRING = 7
Status notification that a locate operation on a String column expects a String value of length greater than zero.

LOCATE_STRING

  public static final int LOCATE_STRING = 6
Status notification that a locate operation of Locate.NEXT or Locate.PRIOR on a String column expects a String value of length greater than zero.

LOCATE_USE_ENTER

  public static final int LOCATE_USE_ENTER = 2

Status notification that the user should press the Enter to perform the locate. This notification applies to all locates on non-String columns.

LOCATE_USE_MIXED_CASE

  public static final int LOCATE_USE_MIXED_CASE = 5

RESTRUCTURING

  public static final int RESTRUCTURING = 12
Status notification sent by long-running restructure operations.

This variable was added in JBuilder 2.0.

SORTING

  public static final int SORTING = 11
Status notification sent by long-running sort operations.

This variable was added in JBuilder 2.0.


StatusEvent constructors

StatusEvent(java.lang.Object, int, java.lang.String)

  public StatusEvent(java.lang.Object source, int code, java.lang.String message)
A constructor for a StatusEvent object with the following properties:

Parameters:

source
The object generating the notification.
code
The type of message being sent. The int value represents one of the StatusEvent variables.
message
The String text associated with the code.

StatusEvent(java.lang.Object, java.lang.Exception)

  public StatusEvent(java.lang.Object source, java.lang.Exception ex)
A constructor for a StatusEvent with the following properties:

Parameters:

source
The object generating the notification.
ex
The Exception object that is associated with this notification.

StatusEvent properties

code

 public final int getCode()
Gets the code that indicates the type of message. The int value returned represents one of the StatusEvent variables.

message

 public final String getMessage()
 public final void setMessage(java.lang.String message)
Determines the String text associated with the status notification.

StatusEvent methods

dispatch(java.util.EventListener)

  public void dispatch(java.util.EventListener listener)
Sends the StatusEvent notification to all registered StatusListeners.

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