Schnittstelle ActionTask
public interface ActionTask
Definition of an interface for the task of an action.
Each
object is associated with a target
object, which will be called when the action is triggered. The default
implementations support different types or target objects. One possibility is
that the target object implements this interface. It defines a single
FormAction
run()
method that expects the event object, which triggered
the action, as argument.
Action can also deal with plain Runnable
objects. If the logic
behind an action does not care about the triggering event, using just a
Runnable
may be easier.
- Version:
- $Id: ActionTask.java 205 2012-01-29 18:29:57Z oheger $
- Autor:
- Oliver Heger
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
run
(FormAction action, BuilderEvent event) Implements the logic behind an action.
-
Methodendetails
-
run
Implements the logic behind an action. This method will be called when an action is triggered (when itsexecute()
method is invoked). The passed in parameters can be used to further distinguish the operations to perform.- Parameter:
action
- the calling actionevent
- the event that triggered the action
-