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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Boolean cancelled
    • Constructor Summary

      Constructors 
      Constructor Description
      Event.Change()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean getCancelled() Weather the event has been cancelled.
      final Unit cancel() Cancel this event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Event.Change

        Event.Change()
    • Method Detail

      • cancel

         final Unit cancel()

        Cancel this event.

        Since:

        1.0.3