|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jbbres.lib.actions.tools.elements.AbstractElement com.jbbres.lib.actions.tools.elements.AbstractAction
public abstract class AbstractAction
This abstract class provides default implementations for most of the methods
in the Action
interface.
To create a concrete Action
as a subclass of
AbstractAction
you need only to provide a constructor accepting
a Workflow
object, for
example:
public MyAction(final Workflow workflow) throws IOException {
super(workflow);
}
The action also requires to be associated to an AbstractActionService
and, if required, to an AbstractActionUI
. The associated classes are
declared within the action properties file (see
DefaultActionDescription
for more information about the action
properties file}.
For more information on how to create your own actions, consult the Action(s) Developer Guide or visit http://app.jbbres.com/actions/developers/.
Constructor Summary | |
---|---|
AbstractAction(Workflow workflow)
Instantiates a new action. |
Method Summary | |
---|---|
ActionDescription |
getDescription()
Returns the description of the element. |
Parameters |
getParameters()
Returns the state of the element. |
AbstractActionService<?,?> |
getService()
Returns the service associated to the element. |
AbstractActionUI |
getUI()
returns the User Interface displayed in the workflow definition panel in Action(s), and that user can use to define the settings of the action. |
void |
setParameters(Parameters parameters)
Sets the current state of the element. |
Methods inherited from class com.jbbres.lib.actions.tools.elements.AbstractElement |
---|
getWorkflow |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAction(Workflow workflow) throws java.io.IOException
workflow
- - the workflow
java.io.IOException
- Signals that an I/O exception has occurred.Method Detail |
---|
public AbstractActionService<?,?> getService()
Element
getService
in interface Action
getService
in interface Element
getService
in class AbstractElement
ElementService
public AbstractActionUI getUI()
Action
getUI
in interface Action
public ActionDescription getDescription()
Element
getDescription
in interface Action
getDescription
in interface Element
getDescription
in class AbstractElement
ElementDescription
public Parameters getParameters()
Element
getParameters
in interface Element
Element.setParameters(Parameters)
,
Parameters
public void setParameters(Parameters parameters) throws InvalidParametersException
Element
setParameters
in interface Element
parameters
- - the parameters. Can be null
InvalidParametersException
- Occurs when the parameters received are incorrect and cannot
be mapped in the element.Element.getParameters()
,
Parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |