Class HMExecutor
- java.lang.Object
-
- javax.swing.SwingWorker<Void,org.hortonmachine.gears.ui.progress.ProgressUpdate>
-
- org.hortonmachine.gui.utils.executor.HMExecutor
-
- All Implemented Interfaces:
Runnable,Future<Void>,RunnableFuture<Void>,org.hortonmachine.gears.ui.progress.IProgressPrinter
- Direct Known Subclasses:
ExecutorIndeterminateGui,ExecutorProgressGui,ExecutorProgressPrintStream
public abstract class HMExecutor extends SwingWorker<Void,org.hortonmachine.gears.ui.progress.ProgressUpdate> implements org.hortonmachine.gears.ui.progress.IProgressPrinter
An swingworker executor helper to work with a progress printer.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
-
Constructor Summary
Constructors Constructor Description HMExecutor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidbackGroundWork()protected VoiddoInBackground()voiddone()protected voidprocess(List<org.hortonmachine.gears.ui.progress.ProgressUpdate> chunks)voidpublish(org.hortonmachine.gears.ui.progress.ProgressUpdate update)voidsetProgressPrinter(org.hortonmachine.gears.ui.progress.IProgressPrinter progress)-
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
-
-
-
-
Method Detail
-
setProgressPrinter
public void setProgressPrinter(org.hortonmachine.gears.ui.progress.IProgressPrinter progress)
-
process
protected void process(List<org.hortonmachine.gears.ui.progress.ProgressUpdate> chunks)
- Overrides:
processin classSwingWorker<Void,org.hortonmachine.gears.ui.progress.ProgressUpdate>
-
doInBackground
protected Void doInBackground()
- Specified by:
doInBackgroundin classSwingWorker<Void,org.hortonmachine.gears.ui.progress.ProgressUpdate>
-
publish
public void publish(org.hortonmachine.gears.ui.progress.ProgressUpdate update)
- Specified by:
publishin interfaceorg.hortonmachine.gears.ui.progress.IProgressPrinter
-
done
public void done()
- Specified by:
donein interfaceorg.hortonmachine.gears.ui.progress.IProgressPrinter- Overrides:
donein classSwingWorker<Void,org.hortonmachine.gears.ui.progress.ProgressUpdate>
-
-