P - The type of UI component housing the input panel itself.W - The type of UI component housing each input widget.public interface InputHarvester<P,W>
Module input values, according to the
following steps:
InputPanel with widgets corresponding to the module
inputs.Module's input values to match the harvested values.| Modifier and Type | Field and Description |
|---|---|
static double |
PRIORITY |
| 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. |
InputPanel<P,W> |
createInputPanel()
Constructs an empty
InputPanel. |
default void |
harvest(Module module)
Performs the harvesting process.
|
boolean |
harvestInputs(InputPanel<P,W> inputPanel,
Module module)
Gathers input values from the user or other source.
|
default void |
processResults(InputPanel<P,W> inputPanel,
Module module)
Does any needed processing, after input values have been harvested.
|
static final double PRIORITY
default void harvest(Module module) throws ModuleException
module - The module whose inputs should be harvest.ModuleException - If the process goes wrong, or is canceled.InputPanel<P,W> createInputPanel()
InputPanel. Widgets are added later using the
buildPanel(org.scijava.widget.InputPanel<P, W>, org.scijava.module.Module) method.void buildPanel(InputPanel<P,W> inputPanel, Module module) throws ModuleException
InputPanel with widgets corresponding to the
given Module instance.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.boolean harvestInputs(InputPanel<P,W> inputPanel, Module module)
default void processResults(InputPanel<P,W> inputPanel, Module module) throws ModuleException
ModuleExceptionCopyright © 2015–2022 SciJava. All rights reserved.