Class AbstractActionEvent<A,SRC>
java.lang.Object
org.refcodes.observer.AbstractEvent<SRC>
org.refcodes.observer.AbstractActionEvent<A,SRC>
- Type Parameters:
A- The generic type of the event's action in question.SRC- The generic type of the event's source in question.
- All Implemented Interfaces:
ActionAccessor<A>, SourceAccessor<SRC>, ActionEvent<A,SRC>, Event<SRC>
- Direct Known Subclasses:
AbstractMetaDataActionEvent
public abstract class AbstractActionEvent<A,SRC>
extends AbstractEvent<SRC>
implements ActionEvent<A,SRC>
The
AbstractActionEvent provides a base implementation for an
ActionEvent.-
Nested Class Summary
Nested classes/interfaces inherited from interface ActionAccessor
ActionAccessor.ActionBuilder<A,B>, ActionAccessor.ActionMutator<A>, ActionAccessor.ActionProperty<A> Nested classes/interfaces inherited from interface SourceAccessor
SourceAccessor.SourceBuilder<SRC,B>, SourceAccessor.SourceMutator<SRC>, SourceAccessor.SourceProperty<SRC> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractActionEvent(A aAction, SRC aSource) Constructs an event with the given source.AbstractActionEvent(SRC aSource) Constructs an event with the given source. -
Method Summary
Methods inherited from class AbstractEvent
getSourceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SourceAccessor
getSource
-
Field Details
-
_action
-
-
Constructor Details
-
AbstractActionEvent
Constructs an event with the given source.- Parameters:
aSource- The source from which this event originated.
-
AbstractActionEvent
Constructs an event with the given source.- Parameters:
aAction- The action which theActionEventrepresents.aSource- The source from which this event originated.
-
-
Method Details
-
getAction
- Specified by:
getActionin interfaceActionAccessor<A>
-