mirror of
https://github.com/zaaarf/geb.git
synced 2024-11-22 15:04:50 +01:00
feat: added support for un-canceling within a same listener
This commit is contained in:
parent
1a762fb4da
commit
b5338abcad
1 changed files with 12 additions and 3 deletions
|
@ -15,8 +15,17 @@ public interface IEventCancelable extends IEvent {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancels the event. Any user-defined implementation will
|
* Cancels the event.
|
||||||
* be ignored.
|
* Any user-defined implementation will be ignored.
|
||||||
*/
|
*/
|
||||||
default void setCanceled() {}
|
default void setCanceled() {
|
||||||
|
this.setCanceled(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cancels the event.
|
||||||
|
* Any user-defined implementation will be ignored.
|
||||||
|
* @param canceled whether the event should be set to canceled
|
||||||
|
*/
|
||||||
|
default void setCanceled(boolean canceled) {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue