public class ConsoleProgressIndicator extends ProgressIndicatorAdapter
| Constructor and Description |
|---|
ConsoleProgressIndicator() |
ConsoleProgressIndicator(java.io.PrintStream out,
java.io.PrintStream err) |
| Modifier and Type | Method and Description |
|---|---|
double |
getFraction() |
void |
logError(java.lang.String s,
java.lang.Throwable e)
Logs an error, including a stacktrace.
|
void |
logInfo(java.lang.String s)
Logs an info message.
|
void |
logWarning(java.lang.String s,
java.lang.Throwable e)
Logs a warning, including a stacktrace.
|
void |
setFraction(double progress)
Sets how much progress should be shown on the progress bar, between 0 and 1.
|
void |
setSecondaryText(java.lang.String text)
Sets the secondary text on the progress indicator.
|
void |
setText(java.lang.String text)
Sets the main text shown in the progress indicator.
|
cancel, isCanceled, isCancellable, isIndeterminate, logError, logWarning, setCancellable, setIndeterminateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSubProgress, logVerbosepublic ConsoleProgressIndicator()
public ConsoleProgressIndicator(@NonNull
java.io.PrintStream out,
@NonNull
java.io.PrintStream err)
public double getFraction()
getFraction in interface ProgressIndicatorgetFraction in class ProgressIndicatorAdapterpublic void setFraction(double progress)
ProgressIndicatorsetFraction in interface ProgressIndicatorsetFraction in class ProgressIndicatorAdapterpublic void logWarning(@NonNull
java.lang.String s,
@Nullable
java.lang.Throwable e)
ProgressIndicatorlogWarning in interface ProgressIndicatorlogWarning in class ProgressIndicatorAdapterpublic void logError(@NonNull
java.lang.String s,
@Nullable
java.lang.Throwable e)
ProgressIndicatorlogError in interface ProgressIndicatorlogError in class ProgressIndicatorAdapterpublic void logInfo(@NonNull
java.lang.String s)
ProgressIndicatorlogInfo in interface ProgressIndicatorlogInfo in class ProgressIndicatorAdapterpublic void setText(@Nullable
java.lang.String text)
ProgressIndicatorsetText in interface ProgressIndicatorsetText in class ProgressIndicatorAdapterpublic void setSecondaryText(@Nullable
java.lang.String text)
ProgressIndicatorsetSecondaryText in interface ProgressIndicatorsetSecondaryText in class ProgressIndicatorAdapter