public abstract class DefaultJIPipeParameterGenerator extends Object implements JIPipeParameterGenerator, JIPipeParameterCollection, JIPipeValidatable
JIPipeParameterGenerator
that shows all parameters of this JIPipeParameterCollection
in a dialog before generating the data. The dialog input is checked by the validation function.JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterUIChangedEvent
Constructor and Description |
---|
DefaultJIPipeParameterGenerator() |
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
generate(JIPipeWorkbench workbench,
Component parent,
Class<T> klass)
Generates the values
|
abstract <T> List<T> |
generateAfterDialog(JIPipeWorkbench workbench,
Component parent,
Class<T> klass)
This function generates the values after the dialog was confirmed
|
EventBus |
getEventBus()
Gets the event bus that posts events about the parameters
|
void |
reportValidity(JIPipeIssueReport report)
Generates a validity report
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getName
addParameterChangeListener, addParameterChangeListener, getContextActions, getParameter, getParameterAccess, isParameterUIVisible, isParameterUIVisible, setParameter, triggerParameterChange, triggerParameterStructureChange, triggerParameterUIChange
generateValidityReport
public <T> List<T> generate(JIPipeWorkbench workbench, Component parent, Class<T> klass)
JIPipeParameterGenerator
generate
in interface JIPipeParameterGenerator
T
- the generated field typeworkbench
- the workbenchparent
- the parent component for any dialogsklass
- the generated field classpublic void reportValidity(JIPipeIssueReport report)
JIPipeValidatable
reportValidity
in interface JIPipeValidatable
report
- the report to be added topublic abstract <T> List<T> generateAfterDialog(JIPipeWorkbench workbench, Component parent, Class<T> klass)
T
- the generated classparent
- the parentpublic EventBus getEventBus()
JIPipeParameterCollection
getEventBus
in interface JIPipeParameterCollection
JIPipeParameterCollection.ParameterChangedEvent
and JIPipeParameterCollection.ParameterStructureChangedEvent
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.