borland Packages  Class Hierarchy  jbcl.dataset Package  Index 

ResponseEvent class

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

About the ResponseEvent class

Variables  Constructors  Properties  Methods  

Implements Serializable

The ResponseEvent class is used for collecting a response from the user.


ResponseEvent variables

Variables implemented in this class

Variables implemented in java.util.EventObject

ResponseEvent constructors

ResponseEvent 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

ResponseEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


ResponseEvent variables

CANCEL

  public static final int CANCEL = 2
Cancel the operation.

DATASTORE_ALREADY_OPEN

  public static final int DATASTORE_ALREADY_OPEN = 5
The DataStore appears to already be open by this process or another process. Call ok() to attempt to determine if the DataStore is really still opened. If it is determined that the DataStore is no longer open, the open process will continue. Call cancel() to cause this open operation to fail.

IGNORE_ALL

  public static final int IGNORE_ALL = 3
Ignore errors/responses requests of this code type for the duration of this operation.

OK

  public static final int OK = 1
Continue operation.

TYPE_CHANGE_DATA_LOSS

  public static final int TYPE_CHANGE_DATA_LOSS = 1
Restructure operation is converting from one data type to another. Old values will not be converted to the new data type. Calling cancel() or ignoreAll() will continue the operation.

TYPE_CHANGE_PARSE_ERROR

  public static final int TYPE_CHANGE_PARSE_ERROR = 3
Restructure operation is converting from one data type to another. A parse error occured converting a String data type to a non String data type. Calling cancel() or ignoreAll() will continue the operation.

TYPE_CHANGE_PARSE_ERROR_TOTAL

  public static final int TYPE_CHANGE_PARSE_ERROR_TOTAL = 4
Restructure operation encountered one or more TYPE_CHANGE_PARSE_ERROR occurances. This is sent out just before the restructure operation is about to be committed. Select cancel() to abort the restructure operation. Calling cancel() or ignoreAll() will continue the operation.

TYPE_CHANGE_PRECISION_LOSS

  public static final int TYPE_CHANGE_PRECISION_LOSS = 2
Restructure operation is converting from one data type to another. Type conversion may result in precision loss when values of the old data type are converted to values of the new data type. Calling cancel() or ignoreAll() methods will continue the operation.

ResponseEvent constructors

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

  public ResponseEvent(java.lang.Object source, int code, java.lang.String message)
Constructs a ResponseEvent object.

ResponseEvent properties

cancel

 public final boolean isCancel()
Read-only property that returns true if the response is CANCEL.

code

 public final int getCode()
Read-only property that returns the code value. See code constants listed under ResponseEvent variables above.

ignoreAll

 public final boolean isIgnoreAll()
Read-only property that returns true if the response is CANCEL.

message

 public final String getMessage()
Read-only property that returns information on what needs to be responded to.

ok

 public final boolean isOk()
Read-only property that returns true if response is OK.

response

 public final int getResponse()
Read-only property that returns the response setting of OK or CANCEL.

ResponseEvent methods

cancel()

  public final void cancel()
Call this method to fail the operation. An Exception may be thrown to cancel the operation.

dispatch(java.util.EventListener)

  public void dispatch(java.util.EventListener listener)

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

ignoreAll()

  public final void ignoreAll()
This causes all future errors/response requests with this event's code to be ignored. The operation will continue, if possible.

ok()

  public final void ok()
Call this method to acknowledge receipt of the ResponseEvent. The operation will continue, if possible.