public final class TaskView extends Object
ObservableExecutorService.ObservableExecutorPanel, and passed to the
TaskViewHandler that was assigned to the
ObservableExecutorPanel, for further configuration.| Modifier and Type | Method and Description |
|---|---|
Color |
getForegroundColor()
Returns the foreground color of this task view, or
null
if no foreground color has been set |
double |
getProgress()
Returns the progress of the task computation.
|
String |
getText()
Returns the text that is displayed in this task view
|
Throwable |
getThrowable()
Returns the throwable that was caused by the task, or
null
if no throwable is associated with the task |
void |
remove()
Cause this task view to be removed from the list that displayed it
|
void |
setForegroundColor(Color color)
Set the foreground (text) color of this task view
|
void |
setProgress(double progress)
Set the progress of the task computation.
|
void |
setText(String text)
Set the text that should be displayed in this task view
|
void |
setThrowable(Throwable throwable)
Set the throwable that may have been caused by the task
|
public void setText(String text)
text - The textpublic String getText()
public void setProgress(double progress)
progress - The progresspublic double getProgress()
setProgress(double)public void setThrowable(Throwable throwable)
throwable - The throwablepublic Throwable getThrowable()
null
if no throwable is associated with the taskpublic void setForegroundColor(Color color)
color - The colorpublic Color getForegroundColor()
null
if no foreground color has been setpublic void remove()
Copyright © 2016. All rights reserved.