Package org.polyfrost.polyui.event
Class Event.Change
-
- All Implemented Interfaces:
-
org.polyfrost.polyui.event.Event
public abstract class Event.Change implements Event
Events related to specific things that occur in some components, for example when a switch is toggled, a slider is moved or a text is changed.
These events can be cancelled, meaning that the change in state will not occur.
- Since:
1.0.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEvent.Change.Textpublic final classEvent.Change.Numberpublic final classEvent.Change.Statepublic classEvent.Change.Companion
-
Field Summary
Fields Modifier and Type Field Description private Booleancancelledpublic final static Event.Change.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description Event.Change()
-
Method Summary
Modifier and Type Method Description final BooleangetCancelled()Weather the event has been cancelled. final UnitsetCancelled(Boolean cancelled)Weather the event has been cancelled. final Unitcancel()Cancel this event. -
-
Method Detail
-
getCancelled
final Boolean getCancelled()
Weather the event has been cancelled.
- Since:
1.0.3
-
setCancelled
final Unit setCancelled(Boolean cancelled)
Weather the event has been cancelled.
- Since:
1.0.3
-
-
-
-