|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>
An input harvester collects 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.
Field Summary | |
---|---|
static double |
PRIORITY
|
Method Summary | |
---|---|
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 . |
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. |
void |
processResults(InputPanel<P,W> inputPanel,
Module module)
Does any needed processing, after input values have been harvested. |
Field Detail |
---|
static final double PRIORITY
Method Detail |
---|
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, 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)
void processResults(InputPanel<P,W> inputPanel, Module module) throws ModuleException
ModuleException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |