P - The type of UI component housing the input panel itself.W - The type of UI component housing each input widget.public abstract class AbstractInputHarvesterPlugin<P,W> extends AbstractInputHarvester<P,W> implements PreprocessorPlugin
InputHarvester that implements the
 PreprocessorPlugin interface. It is intended to be extended by
 UI-specific implementations such as SwingInputHarvester.
 The input harvester will first check whether the default UI matches that of its implementation; for example, the Swing-based input harvester plugin will only harvest inputs if the Swing UI is currently the default one.
PRIORITY| Constructor and Description | 
|---|
| AbstractInputHarvesterPlugin() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cancel(String reason)Cancels the operation execution, with the given reason for doing so. | 
| String | getCancelReason()Gets a message describing why the operation was canceled. | 
| protected abstract String | getUI()Gets the name (or class name) of the input harvester's affiliated UI. | 
| boolean | isCanceled()Gets whether the operation has been canceled. | 
| void | process(Module module)Performs a processing step on the given module instance. | 
buildPanelcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontext, getContext, setContextcreateInputPanel, harvest, harvestInputs, processResultspublic void process(Module module)
ModuleProcessorprocess in interface ModuleProcessorpublic boolean isCanceled()
CancelableisCanceled in interface Cancelablepublic void cancel(String reason)
Cancelable
 This method merely sets the operation status to canceled; it cannot
 necessarily stop the operation itself. That is, it is the responsibility of
 each individual operation to check Cancelable.isCanceled() in a timely manner
 during execution, and stop doing whatever it is doing if the flag has been
 tripped.
 
cancel in interface Cancelablereason - A message describing why the operation is being canceled.public String getCancelReason()
CancelablegetCancelReason in interface Cancelableprotected abstract String getUI()
Copyright © 2015–2022 SciJava. All rights reserved.