public abstract class MonitoredRunnable
extends java.lang.Object
implements java.lang.Runnable
Runnable
subclass with methods for getting progress and status.
Modifier and Type | Field and Description |
---|---|
protected boolean |
interrupted
Has the runnable been interrupted?
|
protected StatusBarMessage |
message
The message to be displayed by the application status bar.
|
protected int |
progressValue
The current progress value.
|
Constructor and Description |
---|
MonitoredRunnable()
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
int |
getProgress()
Getter for progress value.
|
StatusBarMessage |
getStatusBarMessage()
Getter for status.
|
abstract boolean |
isIndeterminate()
Use indeterminate mode instead of numerical progress?
|
boolean |
isInterrupted()
Getter for current interruption state.
|
void |
setInterrupted(boolean interrupted)
Sets the interrupted state for the monitor.
|
protected int progressValue
protected StatusBarMessage message
protected boolean interrupted
public int getProgress()
public StatusBarMessage getStatusBarMessage()
null
public void setInterrupted(boolean interrupted)
interrupted
- The statepublic boolean isInterrupted()
public abstract boolean isIndeterminate()
Copyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.