|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.data.Task
A simple representation of a task. The task has a description and a duration. You can add sub-tasks to the task.
Constructor Summary | |
Task(java.lang.String description,
TimePeriod duration)
Creates a new task. |
Method Summary | |
void |
addSubtask(Task subtask)
Adds a sub-task to the task. |
java.lang.String |
getDescription()
Returns the task description. |
TimePeriod |
getDuration()
Returns the duration (actual or estimated) of the task. |
Task |
getSubtask(int index)
Returns a sub-task. |
int |
getSubtaskCount()
Returns the sub-task count. |
void |
removeSubtask(Task subtask)
Removes a sub-task from the task. |
void |
setDescription(java.lang.String description)
Sets the task description. |
void |
setDuration(TimePeriod duration)
Sets the task duration (actual or estimated). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Task(java.lang.String description, TimePeriod duration)
description
- the task description.duration
- the task duration.Method Detail |
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the new description.public TimePeriod getDuration()
public void setDuration(TimePeriod duration)
duration
- the duration.public void addSubtask(Task subtask)
subtask
- the subtask.public void removeSubtask(Task subtask)
subtask
- the subtask.public int getSubtaskCount()
public Task getSubtask(int index)
index
- the index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |