Class UserActionListener<T extends UserAction<?>>

  • All Implemented Interfaces:
    java.lang.Cloneable

    public abstract class UserActionListener<T extends UserAction<?>>
    extends ActionListener<T>
    Abstract ActionListener.
    T is the type of UserAction this listener listens to. If the check method returns true, the actions defined in before, concurrent and after will be executed

    Usage:
    - extend this class (define T!)
    - implement check method
    - add actions which should be executed if this.check(T action) return true

    You can use the provided methods (of the super class ActionListener):
    + addBeforeEvent(CoreAction a)
    + addConcurrentEvent(CoreAction a)
    + addAfterEvent(CoreAction a)

    BeforeEvents will be executed before the target action, this events should be executed successfully before the target action can be executed
    ConcurrentEvents will be executed in parallel with the target action. No relation exist between successful execution of this events and the execution of the target action or the AfterEvents
    AfterEvents will be executed after a successful execution of the target action.
    • Constructor Detail

      • UserActionListener

        public UserActionListener​(java.lang.Class<T> targetClass)