P
- The type of UI component housing the input panel itself.W
- The type of UI component housing each input widget.public abstract class AbstractInputHarvester<P,W> extends AbstractContextual implements InputHarvester<P,W>
InputHarvester
s.
An input harvester obtains a module's unresolved input parameter values from
the user. Parameters are collected using an InputPanel
dialog box.
PRIORITY
Constructor and Description |
---|
AbstractInputHarvester() |
Modifier and Type | Method and Description |
---|---|
void |
buildPanel(InputPanel<P,W> inputPanel,
Module module)
Populates the given
InputPanel with widgets corresponding to the
given Module instance. |
void |
harvest(Module module)
Performs the harvesting process.
|
void |
processResults(InputPanel<P,W> inputPanel,
Module module)
Does any needed processing, after input values have been harvested.
|
context, getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createInputPanel, harvestInputs
public void harvest(Module module) throws ModuleException
InputHarvester
harvest
in interface InputHarvester<P,W>
module
- The module whose inputs should be harvest.ModuleException
- If the process goes wrong, or is canceled.public void buildPanel(InputPanel<P,W> inputPanel, Module module) throws ModuleException
InputHarvester
InputPanel
with widgets corresponding to the
given Module
instance.buildPanel
in interface InputHarvester<P,W>
inputPanel
- The panel to populate.module
- The module whose inputs should be translated into widgets.ModuleException
- if the panel cannot be populated for some reason.
This may occur due to an input of unsupported type.public void processResults(InputPanel<P,W> inputPanel, Module module) throws ModuleException
InputHarvester
processResults
in interface InputHarvester<P,W>
ModuleException
Copyright © 2009–2016 SciJava. All rights reserved.