|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.model.AbstractTask
User: matthewhorridge
The University Of Manchester
Medical Informatics Group
Date: Sep 12, 2005
Field Summary | |
private boolean |
canBeCancelled
|
private boolean |
cancelled
|
private String |
title
|
private TaskManager |
tm
|
Constructor Summary | |
AbstractTask(String title,
boolean canBeCancelled,
TaskManager tm)
|
Method Summary | |
void |
cancelTask()
Requests that the task be cancelled. |
int |
getProgressMax()
Gets the maximum progress value for this task. |
int |
getProgressMin()
Gets the minimum progress value for this task. |
String |
getTitle()
Gets the title for this task. |
boolean |
isCancelled()
Checks whether this Task has been cancelled. |
boolean |
isPossibleToCancel()
Determines if the task can be cancelled |
void |
setMessage(String message)
|
void |
setProgress(int value)
|
void |
setProgressIndeterminate(boolean b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.Task |
runTask |
Field Detail |
private boolean cancelled
private String title
private boolean canBeCancelled
private TaskManager tm
Constructor Detail |
public AbstractTask(String title, boolean canBeCancelled, TaskManager tm)
Method Detail |
public boolean isPossibleToCancel()
Task
isPossibleToCancel
in interface Task
true
if the task can
be cancelled, or false
if the
task cannot be cancelled.public void cancelTask()
Task
cancelTask
in interface Task
public String getTitle()
Task
getTitle
in interface Task
public int getProgressMin()
Task
getProgressMin
in interface Task
public int getProgressMax()
Task
getProgressMax
in interface Task
public boolean isCancelled()
Task
isCancelled
in interface Task
public void setProgress(int value)
public void setProgressIndeterminate(boolean b)
public void setMessage(String message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |