public class TaskContainer extends ProjectEntityWithIDContainer<Task> implements ChildTaskContainer
m_idMapm_sequenceProvidermodCount| Constructor and Description |
|---|
TaskContainer(ProjectFile projectFile)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Task |
add()
Add a task to the project.
|
Task |
addTask()
Creates and adds a task to the list of tasks held by this object.
|
protected int |
firstUniqueID()
Returns the value of the first Unique ID to use when renumbering Unique IDs.
|
List<Task> |
getChildTasks()
Retrieve a list of child tasks held by this object.
|
List<CustomField> |
getCustomFields()
Retrieve a list of task custom fields.
|
FieldType |
getFieldTypeByAlias(String alias)
Retrieve the type of a field by its alias.
|
Set<FieldType> |
getPopulatedFields()
Retrieve the set of populated fields for this project.
|
void |
removed(Task task)
Called to notify subclasses of item removal.
|
void |
synchronizeTaskIDToHierarchy()
Microsoft Project bases the order of tasks displayed on their ID
value.
|
getByID, getNextID, mapID, renumberIDs, unmapIDadded, fixUniqueIdClashes, getByUniqueID, getSequenceProvider, updateUniqueIDadd, add, clear, get, remove, replaced, set, sizeaddAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic TaskContainer(ProjectFile projectFile)
projectFile - parent projectpublic List<Task> getChildTasks()
ChildTaskContainergetChildTasks in interface ChildTaskContainerpublic Task addTask()
ChildTaskContaineraddTask in interface ChildTaskContainerpublic Task add()
public void removed(Task task)
ProjectEntityContainerremoved in class ProjectEntityContainer<Task>task - removed itempublic void synchronizeTaskIDToHierarchy()
public Set<FieldType> getPopulatedFields()
public List<CustomField> getCustomFields()
public FieldType getFieldTypeByAlias(String alias)
alias - field aliasprotected int firstUniqueID()
ProjectEntityContainerfirstUniqueID in class ProjectEntityContainer<Task>Copyright © 2000–2025 MPXJ. All rights reserved.