public abstract class AbstractActionEvent<A,SRC> extends AbstractEvent<SRC> implements ActionEvent<A,SRC>
| Constructor and Description |
|---|
AbstractActionEvent(A aAction,
SRC aSource)
Constructs an event with the given source.
|
AbstractActionEvent(SRC aSource)
Constructs an event with the given source.
|
| Modifier and Type | Method and Description |
|---|---|
A |
getAction()
Returns the Action associated to the given
ActionEvent. |
getSourcepublic AbstractActionEvent(SRC aSource)
aAction - The action which the ActionEvent represents.aSource - The source from which this event originated.public AbstractActionEvent(A aAction, SRC aSource)
A - The type of the action stored in the event. CAUTION: The
drawback of not using generic generic type declaration on a class
level is no granted type safety, the advantage is the ease of use:
Sub-classes can be used out of the box.aAction - The action which the ActionEvent represents.aSource - The source from which this event originated.public A getAction()
ActionEventActionEvent.getAction in interface ActionEvent<A,SRC>ActionEvent represents.Copyright © 2017. All rights reserved.