T
- the class of the parameterpublic abstract class AbstractParameterRenderer<T extends Parameter> extends Object implements ParameterRenderer<T>
ParameterRenderer.render(Parameter, Pane, Application.ToolReady)
that renders
all typical elements (name, comment, error messages) that should be common to all Parameter
types.Constructor and Description |
---|
AbstractParameterRenderer() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addInputs(T parameter,
Pane parent,
Label name,
Node comment,
Label error,
Application.ToolReady ready)
Adds the parameter-specific input fields to the provided parent pane.
|
void |
render(T parameter,
Pane parent,
Application.ToolReady ready)
Renders the given parameter in the JavaFX GUI.
|
protected abstract void addInputs(T parameter, Pane parent, Label name, Node comment, Label error, Application.ToolReady ready)
parameter
- the parameter that is renderedparent
- the parent pane containing the rendered parametername
- the name label that has been created by render(Parameter, Pane, Application.ToolReady)
comment
- the comment label that has been created by render(Parameter, Pane, Application.ToolReady)
error
- the error label that has been created by render(Parameter, Pane, Application.ToolReady)
ready
- object that checks if all parameters have been specified. Any change to a parameter value should issue the method Application.ToolReady.testReady()
to test this condition.public void render(T parameter, Pane parent, Application.ToolReady ready)
ParameterRenderer
render
in interface ParameterRenderer<T extends Parameter>
parameter
- the parameter that is renderedparent
- the parent pane that will contain the rendered parameterready
- object that checks if all parameters have been specified. Any change to a parameter value should issue the method Application.ToolReady.testReady()
to test this condition.