Package se.conciliate.extensions.ui
Class Shell.SimpleStatusProgress
java.lang.Object
se.conciliate.extensions.ui.Shell.SimpleStatusProgress
- All Implemented Interfaces:
ProgressCallback,Shell.StatusProgress
- Enclosing interface:
- Shell
public static class Shell.SimpleStatusProgress
extends Object
implements Shell.StatusProgress, ProgressCallback
Simple status progress with a static title that consumes
progress values between 0-100 where -1 is indeterminate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidaborted()The process has been aborted.voidvoidfinished()All steps have finished.intgetText()booleanbooleanbooleanReturns true if the user has requested abortion.voidvoidvoidsetProgress(int progress) voidvoidA new step has begun.voidstepDescription(String description) Updates the description text for the current step.voidstepProgress(int percent) Progress has been made in the current step.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.conciliate.extensions.ui.ProgressCallback
exception, isGUI, log, logWarning, startProgressMethods inherited from interface se.conciliate.extensions.ui.Shell.StatusProgress
getOnClickAction
-
Constructor Details
-
SimpleStatusProgress
public SimpleStatusProgress(boolean abortable)
-
-
Method Details
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceShell.StatusProgress
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceShell.StatusProgress
-
getText
- Specified by:
getTextin interfaceShell.StatusProgress
-
getProgress
public int getProgress()- Specified by:
getProgressin interfaceShell.StatusProgress
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceShell.StatusProgress
-
startStep
Description copied from interface:ProgressCallbackA new step has begun.- Specified by:
startStepin interfaceProgressCallback- Parameters:
step- index of the stepdescription- A description of the current stepindeterminate- true if the step is indeterminate (won't call stepProgress(int)
-
stepProgress
public void stepProgress(int percent) Description copied from interface:ProgressCallbackProgress has been made in the current step.- Specified by:
stepProgressin interfaceProgressCallback- Parameters:
percent- how much of the current step that is completed
-
stepDescription
Description copied from interface:ProgressCallbackUpdates the description text for the current step.- Specified by:
stepDescriptionin interfaceProgressCallback
-
finished
public void finished()Description copied from interface:ProgressCallbackAll steps have finished.- Specified by:
finishedin interfaceProgressCallback
-
aborted
public void aborted()Description copied from interface:ProgressCallbackThe process has been aborted. This method is expected to be called if isUserAborting() is returning true or after exception(Exception) has been called.- Specified by:
abortedin interfaceProgressCallback
-
isAbortable
public boolean isAbortable()- Specified by:
isAbortablein interfaceShell.StatusProgress
-
abort
public void abort()- Specified by:
abortin interfaceShell.StatusProgress
-
isUserAborting
public boolean isUserAborting()Description copied from interface:ProgressCallbackReturns true if the user has requested abortion.- Specified by:
isUserAbortingin interfaceProgressCallback- Returns:
- true if the publishing should stop
-
setComplete
public void setComplete() -
setText
-
setProgress
public void setProgress(int progress)
-