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.
FormAction
Modifier and Type | Method and Description |
---|---|
void |
run(FormAction action,
BuilderEvent event)
Implements the logic behind an action.
|
void run(FormAction action, BuilderEvent event)
execute()
method is
invoked). The passed in parameters can be used to further distinguish the
operations to perform.action
- the calling actionevent
- the event that triggered the actionCopyright © 2016 The JGUIraffe Team. All rights reserved.