|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdtaus.core.monitor.Task
A task of execution.
A task is a sequence of operations taking time. If property is , properties , and hold information regarding the progress of the task.
TaskEventSource,
Serialized Form| Constructor Summary | |
Task()
Creates a new instance. |
|
| Method Summary | |
Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(Object o)
Indicates whether some other object is equal to this one. |
abstract Message |
getDescription()
Getter for property . |
int |
getMaximum()
Gets the higher end of the progress value. |
int |
getMinimum()
Gets the lower end of the progress value. |
int |
getProgress()
Gets the progress of the task. |
int |
hashCode()
Returns a hash code value for this object. |
boolean |
isIndeterminate()
Flag indicating if the operations performed by the task are of unknown length. |
void |
setIndeterminate(boolean indeterminate)
Setter for property . |
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. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Task()
| Method Detail |
public Object clone()
public final boolean equals(Object o)
Tasks internally cary a UID which is created during instantiation. This UID is used for comparing with the instance.
o - the reference object with which to compare.
UIDpublic abstract Message getDescription()
public final int getMaximum()
public final int getMinimum()
public final int getProgress()
public final int hashCode()
public final boolean isIndeterminate()
public final void setIndeterminate(boolean indeterminate)
indeterminate - if the operations performed by the task
are of unknown length; if properties ,
and hold progress information.public final void setMaximum(int maximum)
maximum - an int specifying the maximum value.public final void setMinimum(int minimum)
minimum - an int specifying the minimum value.public final void setProgress(int progress)
progress - an int specifying the current value, between the
maximum and minimum specified for this task.
IllegalArgumentException - if is lower than
the minimum of the range or greater than the maximum of the range.public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||