public class TaskContainer extends ProjectEntityWithIDContainer<Task>
m_idMap
m_projectFile
modCount
Constructor and Description |
---|
TaskContainer(ProjectFile projectFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Task |
add()
Add a task to the project.
|
protected int |
firstUniqueID()
Returns the value of the first Unique ID to use when renumbering Unique IDs.
|
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.
|
void |
updateStructure()
This method is used to recreate the hierarchical structure of the
project file from scratch.
|
getByID, getNextID, mapID, renumberIDs, unmapID
added, fixUniqueIdClashes, getByUniqueID, getNextUniqueID, renumberUniqueIDs, updateUniqueID, updateUniqueIdCounter, validateUniqueIDsForMicrosoftProject
add, add, clear, get, remove, replaced, set, size
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public TaskContainer(ProjectFile projectFile)
projectFile
- parent projectpublic Task add()
public void removed(Task task)
ProjectEntityContainer
removed
in class ProjectEntityContainer<Task>
task
- removed itempublic void synchronizeTaskIDToHierarchy()
public void updateStructure()
public Set<FieldType> getPopulatedFields()
public List<CustomField> getCustomFields()
public FieldType getFieldTypeByAlias(String alias)
alias
- field aliasprotected int firstUniqueID()
ProjectEntityContainer
firstUniqueID
in class ProjectEntityContainer<Task>
Copyright © 2000–2024 Packwood Software. All rights reserved.