org.davesag.tasktracker
Class ProjectList
java.lang.Object
|
+--org.pronoic.cos.core.CosEntryTemplate
|
+--org.pronoic.cos.entry.CosEntry
|
+--org.davesag.tasktracker.ListEntry
|
+--org.davesag.tasktracker.ProjectList
- All Implemented Interfaces:
- Archivable, Cloneable, CosEntryInterface, Distributable, Entry, Serializable
- public class ProjectList
- extends ListEntry
ProjectList is a named vector of projects that is global to the whole application.
to use simply retrieve this list from the space, then walk through the
Iteration provided by getProjects to retrieve the tasks.
- See Also:
CosConnector
, Serialized Form
Constructor Summary |
ProjectList()
default constructor to satisfy an entry or make a template for matching. |
ProjectList(String listname)
use this constuctor when actually creating an entry. |
ProjectList
public ProjectList()
- default constructor to satisfy an entry or make a template for matching.
ProjectList
public ProjectList(String listname)
- use this constuctor when actually creating an entry.
- Parameters:
listname
- the arbitrary name for this list.
getProjects
public String[] getProjects()
- getProjects returns a String array of category names
- Returns:
- array of category names.
addProject
public void addProject(String category)
- add a category to the list.
- Parameters:
category
- the category to add.- See Also:
ListEntry.add(java.lang.Object)
addProjects
public void addProjects(String[] categories)
- add an array of categories to the list.
- Parameters:
categories
- the array of categories to add.- See Also:
ListEntry.add(java.lang.Object)
tasktracker API version 0.1 pre-release Copyright © 2002 Dave Sag. Released under the BSD Licence.