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

Fields inherited from class org.davesag.tasktracker.ListEntry
mList, mListname
 
Fields inherited from class org.pronoic.cos.entry.CosEntry
mAppContext, mCreated, mCreationEnsembleName, mLastModified
 
Fields inherited from class org.pronoic.cos.core.CosEntryTemplate
mEntryVersionNumber, mUniqueServiceEntryId
 
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.
 
Method Summary
 void addProject(String category)
          add a category to the list.
 void addProjects(String[] categories)
          add an array of categories to the list.
 String[] getProjects()
          getProjects returns a String array of category names
 
Methods inherited from class org.davesag.tasktracker.ListEntry
add, add, archive, equals, extract, getList, getListname, getSize, makeNullTemplate
 
Methods inherited from class org.pronoic.cos.entry.CosEntry
created, getAppContext, getCreationEnsembleName, setAppContext, setCreationEnsembleName, updated
 
Methods inherited from class org.pronoic.cos.core.CosEntryTemplate
clone, getUniqueServiceEntryId, getVersion, incrementVersion, setUniqueServiceEntryId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pronoic.cos.entry.CosEntryInterface
created, getAppContext, getCreationEnsembleName, getUniqueServiceEntryId, getVersion, incrementVersion, setAppContext, setCreationEnsembleName, setUniqueServiceEntryId, updated
 

Constructor Detail

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.
Method Detail

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.