|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.widget.AbstractInputHarvester<P,W>
org.scijava.ui.AbstractInputHarvesterPlugin<P,W>
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>
AbstractInputHarvesterPlugin is an 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.
Field Summary |
---|
Fields inherited from interface org.scijava.widget.InputHarvester |
---|
PRIORITY |
Constructor Summary | |
---|---|
AbstractInputHarvesterPlugin()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.scijava.widget.AbstractInputHarvester |
---|
buildPanel, harvest, processResults |
Methods inherited from class org.scijava.AbstractContextual |
---|
context, getContext, setContext |
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 |
---|
context, getContext, setContext |
Methods inherited from interface org.scijava.widget.InputHarvester |
---|
createInputPanel, harvestInputs |
Constructor Detail |
---|
public AbstractInputHarvesterPlugin()
Method Detail |
---|
public void process(Module module)
ModuleProcessor
process
in interface ModuleProcessor
public boolean isCanceled()
Cancelable
isCanceled
in interface Cancelable
public 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 Cancelable
reason
- A message describing why the operation is being canceled.public String getCancelReason()
Cancelable
getCancelReason
in interface Cancelable
protected abstract String getUI()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |