Class AbstractActionEvent<A,SRC>

java.lang.Object
org.refcodes.observer.AbstractEvent<SRC>
org.refcodes.observer.AbstractActionEvent<A,SRC>
Type Parameters:
A - the generic type
SRC - the generic type
All Implemented Interfaces:
org.refcodes.mixin.ActionAccessor<A>, org.refcodes.mixin.SourceAccessor<SRC>, GenericActionEvent<A,SRC>, GenericEvent<SRC>
Direct Known Subclasses:
AbstractMetaDataActionEvent, AbstractPayloadActionEvent, ActionEventImpl

public abstract class AbstractActionEvent<A,SRC> extends AbstractEvent<SRC> implements GenericActionEvent<A,SRC>
The Class AbstractActionEvent.
  • 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.SourceAccessor

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

    Fields
    Modifier and Type
    Field
    Description
    protected A
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractActionEvent(A aAction, SRC aSource)
    Constructs an event with the given source.
    Constructs an event with the given source.
  • Method Summary

    Modifier and Type
    Method
    Description

    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.SourceAccessor

    getSource
  • Field Details

    • _action

      protected A _action
  • Constructor Details

    • AbstractActionEvent

      public AbstractActionEvent(SRC aSource)
      Constructs an event with the given source.
      Parameters:
      aSource - The source from which this event originated.
    • AbstractActionEvent

      public AbstractActionEvent(A aAction, SRC aSource)
      Constructs an event with the given source.
      Parameters:
      aAction - The action which the GenericActionEvent represents.
      aSource - The source from which this event originated.
  • Method Details

    • getAction

      public A getAction()
      Specified by:
      getAction in interface org.refcodes.mixin.ActionAccessor<A>