public class Task extends Resource
Constructor and Description |
---|
Task()
Initializes a new instance of the
Task class. |
Modifier and Type | Method and Description |
---|---|
float |
getActualCost()
Gets the actual cost of this task.
|
int |
getActualDuration()
Gets the task actual duration measured in minutes.
|
DateTime |
getActualEnd()
Gets the task's actual completion date.
|
DateTime |
getActualStart()
Gets the task's actual start date.
|
java.lang.String |
getDetails()
Gets the detailed description of this task.
|
DateTime |
getDueDate()
Gets the task's due date.
|
float |
getEstimatedCost()
Gets the estimated cost of this task.
|
int |
getEstimatedDuration()
Gets the estimated duration of this task.
|
int |
getImageIndex()
Gets the index of the image associated with this task.
|
TaskPriority |
getPriority()
Gets the task priority.
|
float |
getProgress()
Gets the task progress measured in percents.
|
Reminder |
getReminder()
Gets the reminder for this task.
|
DateTime |
getStartDate()
Gets the task's start date.
|
TaskStatus |
getStatus()
Gets the status of this task.
|
java.lang.String |
getSubject()
Gets the subject of this task.
|
void |
loadFrom(org.w3c.dom.Element element,
XmlSerializationContext context)
Loads task data from an XML document.
|
void |
loadFrom(JsonObject obj,
JsonSerializationContext context)
Loads the task from a JSON object.
|
void |
saveTo(org.w3c.dom.Element element,
XmlSerializationContext context)
Saves the task data to an XML document.
|
void |
saveTo(JsonObject obj,
JsonSerializationContext context)
Saves the task as a JSON object.
|
void |
setActualCost(float value)
Sets the actual cost of this task.
|
void |
setActualDuration(int value)
Sets the task actual duration measured in minutes.
|
void |
setActualEnd(DateTime value)
Sets the task's actual completion date.
|
void |
setActualStart(DateTime value)
Sets the task's actual start date.
|
void |
setDetails(java.lang.String value)
Sets the detailed description of this task.
|
void |
setDueDate(DateTime value)
Sets the task's due date.
|
void |
setEstimatedCost(float value)
Sets the estimated cost of this task.
|
void |
setEstimatedDuration(int value)
Sets the estimated duration of this task.
|
void |
setImageIndex(int value)
Sets the index of the image associated with this task.
|
void |
setPriority(TaskPriority value)
Gets the task priority.
|
void |
setProgress(float value)
Sets the task progress measured in percents.
|
void |
setReminder(Reminder value)
Sets the reminder for this task.
|
void |
setStartDate(DateTime value)
Sets the task's start date.
|
void |
setStatus(TaskStatus value)
Sets the status of this task.
|
void |
setSubject(java.lang.String value)
Sets the subject of this task.
|
getCustomBrushes, getId, getName, getTag, setCustomBrushes, setId, setName, setTag
public Task()
Task
class.public void saveTo(org.w3c.dom.Element element, XmlSerializationContext context)
saveTo
in class Resource
element
- Allows adding data to the XML document.context
- The context object contains the file format revision number
of the schedule being loaded. It also provides methods that
facilitate reading and writing various data types from and
to the XML document.public void loadFrom(org.w3c.dom.Element element, XmlSerializationContext context)
loadFrom
in class Resource
element
- Allows reading data from the XML document.context
- The context object contains the file format revision number
of the schedule being loaded. It also provides methods that
facilitate reading and writing various data types from and
to the XML document.public void saveTo(JsonObject obj, JsonSerializationContext context)
public void loadFrom(JsonObject obj, JsonSerializationContext context)
public int getImageIndex()
public void setImageIndex(int value)
value
- An integer value specifying the index of the task image
within the image list associated with the view component. The default is 0.public DateTime getDueDate()
DateTime
object specifying the task's sue date.
The default is DateTime.MaxValue
.public void setDueDate(DateTime value)
value
- A DateTime
object specifying the task's sue date.
The default is DateTime.MaxValue
.public DateTime getStartDate()
DateTime
object specifying the task's scheduled start time.
The default is DateTime.MinValue
.public void setStartDate(DateTime value)
value
- A DateTime
object specifying the task's scheduled start time.
The default is DateTime.MinValue
.public DateTime getActualEnd()
DateTime
object specifying the task's actual end date.
The default is DateTime.MaxValue
.public void setActualEnd(DateTime value)
value
- A DateTime
object specifying the task's actual end date.
The default is DateTime.MaxValue
.public DateTime getActualStart()
DateTime
object specifying the task's actual start date.
The default is DateTime.MinValue
.public void setActualStart(DateTime value)
value
- A DateTime
object specifying the task's actual start date.
The default is DateTime.MinValue
.public java.lang.String getSubject()
public void setSubject(java.lang.String value)
value
- A string containing the task subject text. The default is an empty string.public java.lang.String getDetails()
public void setDetails(java.lang.String value)
value
- A string containing the task's details text. The default is an empty string.public TaskStatus getStatus()
TaskStatus
constants.
The default is NotStarted
.public void setStatus(TaskStatus value)
value
- One of the TaskStatus
constants.
The default is NotStarted
.public TaskPriority getPriority()
TaskPriority
constants.
The default is Normal
.public void setPriority(TaskPriority value)
value
- One of the TaskPriority
constants.
The default is Normal
.public float getProgress()
public void setProgress(float value)
value
- A float value specifying the progress made on this task. The default is 0.public int getEstimatedDuration()
public void setEstimatedDuration(int value)
value
- An integer value specifying the task's scheduled duration. The default is 0.public int getActualDuration()
public void setActualDuration(int value)
value
- An integer value specifying the task's duration. The default is 0.public float getEstimatedCost()
public void setEstimatedCost(float value)
value
- A float value specifying the task's estimated cost. The default is 0.public float getActualCost()
public void setActualCost(float value)
value
- A float value specifying the task's actual cost. The default is 0.public Reminder getReminder()
Reminder
instance specifying when the task should be reminded of.
The default is null.