borland Packages Class Hierarchy dx.dataset Package
java.lang.Object +----java.util.EventObject +----com.borland.jb.util.DispatchableEvent +----com.borland.dx.dataset.StatusEvent
Variables Constructors Properties Methods
Implements Serializable
This class is used to inform listeners of specified types of status messages. Typically, these are informative messages, but if the listener (StatusListener) wants to take action for a particular status message, the getCode() method can be used to determine the type of message being sent.
public static final int CHECKING_DATASTORE = 15Checking to see if the DataStore was not closed properly. This check can take 7-10 seconds.
public static final int CLEAR = 10Sent by the DataSet.clearStatus() method to clear status information, for example, the StatusBar control.
public static final int DATA_CHANGE = 8Status message when data in a DataSet has changed. Use enter key to start the locate operation. Sent by DataSet.interactiveLocate().
public static final int EDIT_CANCELED = 12Cancelled edit for new or existing row of a DataSet.
public static final int EDIT_STARTED = 11Entered edit state for new or existing row of a DataSet.
public static final int EXCEPTION = 9An exception was thrown.
public static final int LOADING_DATA = 1Status notification about loading rows in a DataSet.
public static final int LOCATE_MATCH_FOUND = 3Status notification that a match was found during a locate operation. Sent by DataSet.interactiveLocate().
public static final int LOCATE_MATCH_NOT_FOUND = 4Status notification that a match could not be found for a location operation. Sent by DataSet.interactiveLocate().
public static final int LOCATE_NON_STRING = 7Status notification that a locate operation on a non-String column expects a value whose length is greater than zero. Enter a value and press enter to begin search. Sent by DataSet.interactiveLocate().
public static final int LOCATE_STRING = 6Status notification that a locate operation of Locate.NEXT or Locate.PRIOR on a String column expects a value of length greater than zero. Enter a value and press enter to begin search. Sent by DataSet.interactiveLocate().
public static final int LOCATE_USE_ENTER = 2
Status notification that the user should press the Enter to perform the locate. This notification is sent by DataSet.interactiveLocate() and applies to all locates on non-String columns.
public static final int LOCATE_USE_MIXED_CASE = 5Enter a value and use mixed case characters for a case-sensitive search. Sent by DataSet.interactiveLocate().
public static final int RESTRUCTURING = 14Status notification sent by long-running restructure operations.
public static final int SORTING = 13Status notification sent by long-running sort operations.
public StatusEvent(Object source, int code, String message)A constructor for a StatusEvent object with the following parameters:
public StatusEvent(Object source, Throwable ex)A constructor for a StatusEvent object with the following parameters:
public final int getCode()Gets the code that indicates the type of message. The int value returned represents one of the StatusEvent variables.
public final Throwable getException()Get the exception which caused the message. Null unless code = EXCEPTION *
public final String getMessage() public final void setMessage(String message)Determines the String text associated with the status notification.
public void dispatch(EventListener listener)Sends the StatusEvent notification to all registered StatusListeners.