Class UserActionListener<T extends UserAction<?>>
java.lang.Object
com.mendix.core.actionmanagement.ActionListener<T>
com.mendix.systemwideinterfaces.core.UserActionListener<T>
- All Implemented Interfaces:
Cloneable
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:
ReplaceEvent will be executed instead of the target action.
AfterEvents will be executed after a successful execution of the target/replace action.
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
addBeforeEvent(CoreAction a)
addReplaceEvent(CoreAction a)
addAfterEvent(CoreAction a)
ReplaceEvent will be executed instead of the target action.
AfterEvents will be executed after a successful execution of the target/replace action.
-
Constructor Summary
ConstructorDescriptionUserActionListener
(Class<T> targetClass) Creates a new user action listener. -
Method Summary
Methods inherited from class com.mendix.core.actionmanagement.ActionListener
addAfterEvent, addAfterEvent, addBeforeEvent, addBeforeEvent, addBeforeEvent, addReplaceEvent, check, clone, createClone, getAfter, getBefore, getReplace, getTargetClass, setTargetClass
-
Constructor Details
-
UserActionListener
Creates a new user action listener.- Parameters:
targetClass
- the class of the user action
-