borland Packages Class Hierarchy jbcl.dataset Package Index
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.dataset.ResponseEvent
Variables Constructors Properties Methods
Implements Serializable
The ResponseEvent class is used for collecting a response from the user.
public static final int CANCEL = 2Cancel the operation.
public static final int DATASTORE_ALREADY_OPEN = 5The 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.
public static final int IGNORE_ALL = 3Ignore errors/responses requests of this code type for the duration of this operation.
public static final int OK = 1Continue operation.
public static final int TYPE_CHANGE_DATA_LOSS = 1Restructure 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.
public static final int TYPE_CHANGE_PARSE_ERROR = 3Restructure 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.
public static final int TYPE_CHANGE_PARSE_ERROR_TOTAL = 4Restructure 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.
public static final int TYPE_CHANGE_PRECISION_LOSS = 2Restructure 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.
public ResponseEvent(java.lang.Object source, int code, java.lang.String message)Constructs a ResponseEvent object.
public final boolean isCancel()Read-only property that returns true if the response is CANCEL.
public final int getCode()Read-only property that returns the code value. See code constants listed under ResponseEvent variables above.
public final boolean isIgnoreAll()Read-only property that returns true if the response is CANCEL.
public final String getMessage()Read-only property that returns information on what needs to be responded to.
public final boolean isOk()Read-only property that returns true if response is OK.
public final int getResponse()Read-only property that returns the response setting of OK or CANCEL.
public final void cancel()Call this method to fail the operation. An Exception may be thrown to cancel the operation.
public void dispatch(java.util.EventListener listener)
Overrides: borland.jbcl.util.DispatchableEvent.dispatch(java.util.EventListener)
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.
public final void ok()Call this method to acknowledge receipt of the ResponseEvent. The operation will continue, if possible.