|
||||||||||
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.AbstractVariable
public class AbstractVariable
This abstract class provides default implementations for most of the methods
in the Variable
interface.
To create a concrete Variable
as a subclass of
AbstractVariable
you need only to provide a constructor
accepting a Workflow
object,
for example:
public MyVariable(final Workflow workflow) throws IOException {
super(workflow);
}
The action also requires to be associated to an
AbstractVariableService
. The associated class is declared within the
variable properties file (see DefaultVariableDescription
for more
information about the variable properties file}.
However, it is recommended to create your own variables as subclasses of
RuntimeVariable
or StorageVariable
.
For more information on how to create your own variables, consult the Action(s) Developer Guide or visit http://app.jbbres.com/actions/developers/.
Constructor Summary | |
---|---|
AbstractVariable(Workflow workflow)
Instantiates a new variable. |
Method Summary | |
---|---|
VariableDescription |
getDescription()
Returns the description of the element. |
javax.swing.table.TableCellEditor |
getEditor()
Returns the TableCellEditor used to edit the variable value. |
Parameters |
getParameters()
Returns the state of the element. |
javax.swing.table.TableCellRenderer |
getRenderer()
Returns the TableCellRenderer used to render the variable
value. |
AbstractVariableService<?> |
getService()
Returns the service associated to the element. |
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 AbstractVariable(Workflow workflow) throws java.io.IOException
workflow
- - the workflow
java.io.IOException
- Signals that an I/O exception has occurred.Method Detail |
---|
public AbstractVariableService<?> getService()
Element
getService
in interface Element
getService
in interface Variable
getService
in class AbstractElement
ElementService
public VariableDescription getDescription()
Element
getDescription
in interface Element
getDescription
in interface Variable
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
public javax.swing.table.TableCellEditor getEditor()
Variable
TableCellEditor
used to edit the variable value.
This method is not used in Action(s) 1.0.
getEditor
in interface Variable
public javax.swing.table.TableCellRenderer getRenderer()
Variable
TableCellRenderer
used to render the variable
value.
This method is not used in Action(s) 1.0.
getRenderer
in interface Variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |