public final class Task extends Task
Task
providing write access to the state of a Task
to be used by implementations.ASCENDING, cancelable, DESCENDING, description, indeterminate, maximum, minimum, progress, progressDescription
Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
void |
setCancelable(boolean cancelable)
Setter for property
cancelable . |
void |
setDescription(Message description)
Setter for property
description . |
void |
setIndeterminate(boolean indeterminate)
Setter for property
indeterminate . |
void |
setMaximum(int maximum)
Sets the higher end of the progress value.
|
void |
setMinimum(int minimum)
Sets the lower end of the progress value.
|
void |
setProgress(int progress)
Sets the progress of the task.
|
void |
setProgressDescription(Message progressDescription)
Setter for property
progressDescription . |
clone, equals, getDescription, getMaximum, getMinimum, getProgress, getProgressDescription, getTimestamp, hashCode, isCancelable, isCancelled, isIndeterminate, setCancelled, toString
public Task()
public void setDescription(Message description)
description
.description
- the description for the task.NullPointerException
- if description
is null
.public void setProgressDescription(Message progressDescription)
progressDescription
.progressDescription
- the description for the progress of the task.NullPointerException
- if progressDescription
is
null
.public void setMinimum(int minimum)
minimum
- an int specifying the minimum value.IllegalStateException
- if the task is indeterminate.public void setMaximum(int maximum)
maximum
- an int specifying the maximum value.IllegalStateException
- if the task is indeterminate.public void setProgress(int progress)
progress
- an int specifying the current value, between the
maximum and minimum specified for this task.IllegalStateException
- if the task is indeterminate.IllegalArgumentException
- if progress
is lower than
the minimum of the range or greater than the maximum of the range.public void setIndeterminate(boolean indeterminate)
indeterminate
.indeterminate
- true
if the operations performed by the task
are of unknown length; false
to support properties
minimum
, maximum
and progress
.public void setCancelable(boolean cancelable)
cancelable
.cancelable
- true
to indicate support for property
cancelled
; false
to indicate that property
cancelled
is not supported.Copyright © 2005-2012 jDTAUS. All Rights Reserved.