CancelEvent Class

CancelEvent Class

This Package | All Packages

Event
  |
  +--CancelEvent
public class CancelEvent
extends Event

Represents an event fired by components to enable you to cancel a particular operation. The cancel field lets you specify true or false as to whether the event should be cancelled. [true means cancel, false means don't]

Fields
Name Description
cancel Indicates, on return, whether or not the operation should be cancelled or not.

Constructors
Name Description
CancelEvent(boolean cancel) Creates a CancelEvent object.
CancelEvent(boolean cancel) Creates a new CancelEvent object.

Fields

CancelEvent.cancel

Syntax
public boolean cancel;
Description
Indicates, on return, whether or not the operation should be cancelled or not. Cancel if true, otherwise do not cancel.

Constructors

CancelEvent.CancelEvent

Syntax 1
public CancelEvent( boolean cancel );
Parameters
cancel
Set to true to cancel the event. This sets the CancelEvent.cancel member.
Description

Creates a CancelEvent object.



Syntax 2
public CancelEvent( boolean cancel );
Description

Creates a new CancelEvent object. The default value for the cancel field is false.