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 TypeMethodDescriptionvoid
abort()
void
aborted()
The process has been aborted.void
void
finished()
All steps have finished.int
getText()
boolean
boolean
boolean
Returns true if the user has requested abortion.void
void
void
setProgress
(int progress) void
void
A new step has begun.void
stepDescription
(String description) Updates the description text for the current step.void
stepProgress
(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, wait
Methods inherited from interface se.conciliate.extensions.ui.ProgressCallback
exception, isGUI, log, logWarning, startProgress
Methods inherited from interface se.conciliate.extensions.ui.Shell.StatusProgress
getOnClickAction
-
Constructor Details
-
SimpleStatusProgress
public SimpleStatusProgress(boolean abortable)
-
-
Method Details
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfaceShell.StatusProgress
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceShell.StatusProgress
-
getText
- Specified by:
getText
in interfaceShell.StatusProgress
-
getProgress
public int getProgress()- Specified by:
getProgress
in interfaceShell.StatusProgress
-
isComplete
public boolean isComplete()- Specified by:
isComplete
in interfaceShell.StatusProgress
-
startStep
Description copied from interface:ProgressCallback
A new step has begun.- Specified by:
startStep
in 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:ProgressCallback
Progress has been made in the current step.- Specified by:
stepProgress
in interfaceProgressCallback
- Parameters:
percent
- how much of the current step that is completed
-
stepDescription
Description copied from interface:ProgressCallback
Updates the description text for the current step.- Specified by:
stepDescription
in interfaceProgressCallback
-
finished
public void finished()Description copied from interface:ProgressCallback
All steps have finished.- Specified by:
finished
in interfaceProgressCallback
-
aborted
public void aborted()Description copied from interface:ProgressCallback
The 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:
aborted
in interfaceProgressCallback
-
isAbortable
public boolean isAbortable()- Specified by:
isAbortable
in interfaceShell.StatusProgress
-
abort
public void abort()- Specified by:
abort
in interfaceShell.StatusProgress
-
isUserAborting
public boolean isUserAborting()Description copied from interface:ProgressCallback
Returns true if the user has requested abortion.- Specified by:
isUserAborting
in interfaceProgressCallback
- Returns:
- true if the publishing should stop
-
setComplete
public void setComplete() -
setText
-
setProgress
public void setProgress(int progress)
-