Event
The event is not cancelable.
The event does not have a result.
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Methods
Cancels the event. Same as setCanceled(true)
Return Type: EventResult
Return Type: boolean
Return Type: boolean
Return Type: boolean
sets the event’s result to allow
Parameter | Type |
---|---|
Parameter cancel | Type boolean |
sets the event’s result to default
sets the event’s result to deny
Parameter | Type |
---|---|
Parameter result | Type EventResult |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name | Type Event | Has Getter false | Has Setter true |
Name cancelable | Type boolean | Has Getter true | Has Setter false |
Name canceled | Type boolean | Has Getter true | Has Setter true |
Name hasResult | Type boolean | Has Getter true | Has Setter false |
Name result | Type EventResult | Has Getter true | Has Setter false |