|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.swiftgantt.model.BaseTask<E>
public abstract class BaseTask<E extends BaseTask>
Base class of the Task. With task's basic information, predecessors list and subsequences list
,reference of parent object TaskTreeModel
.
PropertyChangeEvent
event raised after:
new sub-task added, task id changed, task name changed and description changed.
PredecessorChangeEvent
event raised after:
new predecessor task added.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
BaseTask()
|
Method Summary | |
---|---|
void |
add(E... tasks)
Add sub-tasks to this Task . |
void |
add(E subTask)
Add sub task to this Task . |
void |
addPredecessor(E predecessor)
Add predecessor to this Task . |
void |
addPredecessorChangeListener(PredecessorChangeListener l)
Add listener for predecessor task changes event. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add listener to this Task and all his sub-tasks. |
java.awt.Color |
getBackcolor()
Get backcolor of the task bar in Gantt Chart. |
java.util.List<Task> |
getChildren()
Get children tasks. |
java.lang.String |
getDescription()
Get description of this Task . |
int |
getId()
Get the id of this Task. |
int |
getLevel()
Get level in the task tree. |
java.lang.String |
getName()
Get name of this Task . |
java.util.List<E> |
getPredecessors()
Get predecessors of this Task . |
int |
getTasksCount()
Get count of sub-tasks in all levels. |
void |
removePredecessorChangeListener(PredecessorChangeListener l)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove listener from this Task and all his sub-tasks. |
void |
setBackcolor(java.awt.Color backcolor)
Set backcolor of this task bar in Gantt Chart, not applied to task group bar. |
void |
setDescription(java.lang.String description)
Set description of this Task . |
void |
setId(int id)
Set the id of this Task. |
void |
setName(java.lang.String name)
Set name of this Task . |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BaseTask()
Method Detail |
---|
public void add(E... tasks)
Task
.
tasks
- public void add(E subTask)
Task
.
subTask
- public int getTasksCount()
public java.util.List<Task> getChildren()
public java.util.List<E> getPredecessors()
Task
.
public void addPredecessor(E predecessor)
Task
.
predecessors
- the predecessors tasks to set.public void addPredecessorChangeListener(PredecessorChangeListener l)
l
- public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- public void removePredecessorChangeListener(PredecessorChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- public int getId()
public void setId(int id)
public java.lang.String getDescription()
Task
.
public void setDescription(java.lang.String description)
Task
.
description
- the description to setpublic java.lang.String getName()
Task
.
public void setName(java.lang.String name)
Task
.
name
- the name to setpublic int getLevel()
getLevel
in class javax.swing.tree.DefaultMutableTreeNode
public java.awt.Color getBackcolor()
public void setBackcolor(java.awt.Color backcolor)
backcolor
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |