Package com.im.commons.progress
Class UIBackgroundRunnerRO
- java.lang.Object
-
- com.im.commons.progress.BackgroundRunner
-
- com.im.commons.progress.UIBackgroundRunnerRO
-
public abstract class UIBackgroundRunnerRO extends BackgroundRunner
UI extension of background runner - this class creates newDFEnvironmentROusingEnvUtils.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.im.commons.progress.BackgroundRunner
BackgroundRunner.BackgroundTask
-
-
Constructor Summary
Constructors Constructor Description UIBackgroundRunnerRO(java.lang.String taskName, boolean cancelable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DFEnvironmentROgetEnvironment()booleanphase1Cancelled(CancelException exc)booleanphase1Exception(java.lang.Exception exc)All subclasses must override this method and provide more user-friendly error notification.protected voidphase1FinallyInternal()-
Methods inherited from class com.im.commons.progress.BackgroundRunner
createTask, failTask, getCreateLock, getDelay, getExecutorService, getTask, interrupt, phase1Finally, phase1InRequestProcessor, phase2InAWT, processTheTask, restart, start
-
-
-
-
Method Detail
-
getEnvironment
public DFEnvironmentRO getEnvironment()
-
phase1Cancelled
public boolean phase1Cancelled(CancelException exc)
- Overrides:
phase1Cancelledin classBackgroundRunner- Returns:
- when true this runner continues with AWT (second) phase. If false, the AWT phase is skipped.
-
phase1FinallyInternal
protected final void phase1FinallyInternal()
- Overrides:
phase1FinallyInternalin classBackgroundRunner
-
phase1Exception
public boolean phase1Exception(java.lang.Exception exc)
Description copied from class:BackgroundRunnerAll subclasses must override this method and provide more user-friendly error notification.- Overrides:
phase1Exceptionin classBackgroundRunner- Returns:
- when true this runner continues with AWT (second) phase. If false, the AWT phase is skipped.
-
-