Class AbstractInputEvent

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractInputEvent​(java.lang.Object source)
      Source constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consume()
      Consumes the input associated with this event.
      boolean isConsumed()  
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.globalmentor.event.Event

        getSource
    • Constructor Detail

      • AbstractInputEvent

        public AbstractInputEvent​(java.lang.Object source)
        Source constructor.
        Parameters:
        source - The object on which the event initially occurred.
        Throws:
        java.lang.NullPointerException - if the given source is null.
    • Method Detail

      • isConsumed

        public boolean isConsumed()
        Specified by:
        isConsumed in interface InputEvent
        Returns:
        Whether the input associated with this event has been consumed.
      • consume

        public void consume()
        Description copied from interface: InputEvent
        Consumes the input associated with this event. The event is marked as consumed so that other listeners will be on notice not to consume the input.
        Specified by:
        consume in interface InputEvent