public class CancelEventArgs extends EventArgs
Constructor and Description |
---|
CancelEventArgs()
Initializes a new instance of the CancelEventArgs class with the Cancel property
set to false.
|
CancelEventArgs(boolean cancel)
Initializes a new instance of the CancelEventArgs class with the Cancel property
set to the given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCancel()
Gets or sets a value indicating whether the event should be canceled.
|
void |
setCancel(boolean cancel)
Gets or sets a value indicating whether the event should be canceled.
|
public CancelEventArgs()
public CancelEventArgs(boolean cancel)
cancel
- true to cancel the event; otherwise, false.