public abstract class Progress
extends java.lang.Object
stop() method.| Modifier and Type | Field and Description |
|---|---|
boolean |
updating
Updating flag.
|
| Constructor and Description |
|---|
Progress() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort()
Aborts a failed or interrupted progress.
|
void |
checkStop()
Checks if the progress was interrupted; if yes, sends a runtime exception.
|
protected java.lang.String |
det()
Returns short information on this process.
|
java.lang.String |
detail()
Returns detailed information on the current process or sub process.
|
protected double |
prog()
Returns a progress value (0 - 1).
|
double |
progress()
Returns a progress value from the interval
[0, 1]. |
protected <P extends Progress> |
progress(P prog)
Sets a new sub progress.
|
void |
startTimeout(long sec)
Starts a timeout thread.
|
void |
stop()
Stops a process or sub process.
|
void |
stopTimeout()
Stops the timeout thread.
|
protected java.lang.String |
tit()
Returns short information on this process.
|
java.lang.String |
title()
Returns short information on the current process or sub process.
|
public final java.lang.String title()
public final java.lang.String detail()
public final double progress()
[0, 1].protected final <P extends Progress> P progress(P prog)
P - progress typeprog - progresspublic final void stop()
public final void checkStop()
protected void abort()
public final void startTimeout(long sec)
sec - seconds to wait; deactivated if set to 0public final void stopTimeout()
protected java.lang.String tit()
protected java.lang.String det()
protected double prog()