Class PayloadActionEventImpl<P>

Type Parameters:
P - The type of the payload to be carried.
All Implemented Interfaces:
org.refcodes.mixin.ActionAccessor<Enum<?>>, org.refcodes.mixin.PayloadAccessor<P>, org.refcodes.mixin.SourceAccessor<Object>, ActionEvent, Event, GenericActionEvent<Enum<?>,Object>, GenericActionPayloadEvent<Enum<?>,P,Object>, GenericEvent<Object>, GenericPayloadEvent<P,Object>, PayloadActionEvent<P>, PayloadEvent<P>

public class PayloadActionEventImpl<P> extends AbstractPayloadActionEvent<Enum<?>,P,Object> implements PayloadActionEvent<P>
The PayloadActionEvent represents an ActionEvent which carries an additional payload.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor

    org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.PayloadAccessor

    org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P extends Object,B extends org.refcodes.mixin.PayloadAccessor.PayloadBuilder<P,B>>, org.refcodes.mixin.PayloadAccessor.PayloadMutator<P extends Object>, org.refcodes.mixin.PayloadAccessor.PayloadProperty<P extends Object>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor

    org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
  • Field Summary

    Fields inherited from class org.refcodes.observer.AbstractPayloadActionEvent

    _payload

    Fields inherited from class org.refcodes.observer.AbstractActionEvent

    _action
  • Constructor Summary

    Constructors
    Constructor
    Description
    PayloadActionEventImpl(Enum<?> aAction, P aPayload, Object aSource)
    Constructs an event with the given Meta-Data.
  • Method Summary

    Methods inherited from class org.refcodes.observer.AbstractPayloadActionEvent

    getPayload

    Methods inherited from class org.refcodes.observer.AbstractActionEvent

    getAction

    Methods inherited from class org.refcodes.observer.AbstractEvent

    getSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.refcodes.mixin.ActionAccessor

    getAction

    Methods inherited from interface org.refcodes.mixin.PayloadAccessor

    getPayload, getPayloadOr

    Methods inherited from interface org.refcodes.mixin.SourceAccessor

    getSource
  • Constructor Details

    • PayloadActionEventImpl

      public PayloadActionEventImpl(Enum<?> aAction, P aPayload, Object aSource)
      Constructs an event with the given Meta-Data.
      Parameters:
      aAction - The action which the GenericActionEvent represents.
      aPayload - The payload to be carried by the event.
      aSource - The source from which this event originated.