Package org.scijava.widget
Class AbstractInputHarvester<P,W>
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.widget.AbstractInputHarvester<P,W>
-
- Type Parameters:
P- The type of UI component housing the input panel itself.W- The type of UI component housing each input widget.
- All Implemented Interfaces:
Contextual,InputHarvester<P,W>
- Direct Known Subclasses:
AbstractInputHarvesterPlugin
public abstract class AbstractInputHarvester<P,W> extends AbstractContextual implements InputHarvester<P,W>
Abstract superclass forInputHarvesters.An input harvester obtains a module's unresolved input parameter values from the user. Parameters are collected using an
InputPaneldialog box.- Author:
- Curtis Rueden
-
-
Field Summary
-
Fields inherited from interface org.scijava.widget.InputHarvester
PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AbstractInputHarvester()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildPanel(InputPanel<P,W> inputPanel, Module module)Populates the givenInputPanelwith widgets corresponding to the givenModuleinstance.-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
setContext
-
Methods inherited from interface org.scijava.widget.InputHarvester
createInputPanel, harvest, harvestInputs, processResults
-
-
-
-
Method Detail
-
buildPanel
public void buildPanel(InputPanel<P,W> inputPanel, Module module) throws ModuleException
Description copied from interface:InputHarvesterPopulates the givenInputPanelwith widgets corresponding to the givenModuleinstance.- Specified by:
buildPanelin interfaceInputHarvester<P,W>- Parameters:
inputPanel- The panel to populate.module- The module whose inputs should be translated into widgets.- Throws:
ModuleException- if the panel cannot be populated for some reason. This may occur due to an input of unsupported type.
-
-