Package com.illumon.iris.gui.util
Class IrisSwingWorkerWithProgress<T>
java.lang.Object
com.illumon.iris.gui.util.IrisSwingWorker
com.illumon.iris.gui.util.IrisSwingWorkerWithProgress<T>
-
Constructor Summary
ConstructorsConstructorDescriptionIrisSwingWorkerWithProgress(com.fishlib.io.logger.Logger log, Window windowAncestor, String dialogTitle, String labelText, Dialog.ModalityType modalityType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddButton(String name, ActionListener listener) Adds a button to the bottom of the panel with the given name and action listener.abstract voidCompute the value to be returned by thegetmethod.protected voiddisplayError(String message) protected voiddisplayError(Throwable result) protected voidvoidfinished()Called on the event dispatching thread (not on the worker thread) after theconstructmethod has returned.protected Stringabstract TvoidsetProgress(int value, int minimum, int maximum) voidstart()Start the worker thread.Methods inherited from class com.illumon.iris.gui.util.IrisSwingWorker
get, getValue, interrupt, setDefaultUncaughtExceptionHandler
-
Constructor Details
-
IrisSwingWorkerWithProgress
public IrisSwingWorkerWithProgress(com.fishlib.io.logger.Logger log, Window windowAncestor, String dialogTitle, String labelText, Dialog.ModalityType modalityType)
-
-
Method Details
-
makeValue
- Throws:
Exception
-
construct
Description copied from class:IrisSwingWorkerCompute the value to be returned by thegetmethod.- Specified by:
constructin classIrisSwingWorker
-
finished
public void finished()Description copied from class:IrisSwingWorkerCalled on the event dispatching thread (not on the worker thread) after theconstructmethod has returned.- Overrides:
finishedin classIrisSwingWorker
-
displayError
-
displayError
-
complete
-
errorCompletion
protected void errorCompletion() -
getErrorString
-
start
public void start()Description copied from class:IrisSwingWorkerStart the worker thread.- Overrides:
startin classIrisSwingWorker
-
setProgress
public void setProgress(int value, int minimum, int maximum) -
addButton
Adds a button to the bottom of the panel with the given name and action listener.- Parameters:
name- the name of the buttonlistener- the action listner for the button click
-