- java.lang.Object
-
- javax.swing.SwingWorker<T,V>
-
- org.icepdf.ri.common.AbstractTask<T,V>
-
- All Implemented Interfaces:
Runnable,Future<T>,RunnableFuture<T>
- Direct Known Subclasses:
FindFontsTask,FindMarkupAnnotationTask,VerifyAllSignaturesTask
public abstract class AbstractTask<T,V> extends SwingWorker<T,V>
AbstractTask attempts to make it a little easier to great swing work user in the Viewer RI.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
-
Field Summary
Fields Modifier and Type Field Description protected Controllercontrollerprotected intlengthOfTaskprotected ResourceBundlemessageBundleprotected inttaskProgressprotected StringtaskStatusMessageprotected AbstractWorkerPanelworkerPanel
-
Constructor Summary
Constructors Constructor Description AbstractTask(Controller controller, AbstractWorkerPanel workerPanel, ResourceBundle messageBundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Returns the most recent dialog message, or null if there is no current dialog message.-
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, doInBackground, done, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
-
-
-
-
Field Detail
-
taskStatusMessage
protected String taskStatusMessage
-
taskProgress
protected int taskProgress
-
lengthOfTask
protected int lengthOfTask
-
controller
protected final Controller controller
-
messageBundle
protected final ResourceBundle messageBundle
-
workerPanel
protected final AbstractWorkerPanel workerPanel
-
-
Constructor Detail
-
AbstractTask
public AbstractTask(Controller controller, AbstractWorkerPanel workerPanel, ResourceBundle messageBundle)
-
-
Method Detail
-
getMessage
public String getMessage()
Returns the most recent dialog message, or null if there is no current dialog message.- Returns:
- current message dialog text.
-
-