Class ApplicationActionSwingWorker<A extends AbstractApplicationAction>
- java.lang.Object
-
- javax.swing.SwingWorker<Void,String>
-
- org.nuiton.jaxx.application.swing.action.ApplicationActionSwingWorker<A>
-
- All Implemented Interfaces:
Runnable,Future<Void>,RunnableFuture<Void>
public class ApplicationActionSwingWorker<A extends AbstractApplicationAction> extends SwingWorker<Void,String>
Worker to execute logic action.- Since:
- 2.8
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classApplicationActionSwingWorker.TuttiActionTimerTask-
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedApplicationActionSwingWorker(A action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VoiddoInBackground()protected voiddone()ThrowablegetError()booleanisFailed()protected voidupdateBusyState(boolean busy)-
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
-
-
-
-
Field Detail
-
actionUI
protected final ApplicationActionUI actionUI
-
action
protected final A extends AbstractApplicationAction action
-
error
protected Throwable error
-
timer
protected TimerTask timer
-
-
Constructor Detail
-
ApplicationActionSwingWorker
protected ApplicationActionSwingWorker(A action)
-
-
Method Detail
-
getError
public Throwable getError()
-
isFailed
public boolean isFailed()
-
doInBackground
protected Void doInBackground() throws Exception
- Specified by:
doInBackgroundin classSwingWorker<Void,String>- Throws:
Exception
-
done
protected void done()
- Overrides:
donein classSwingWorker<Void,String>
-
updateBusyState
protected void updateBusyState(boolean busy)
-
-