caltool.schedule
Class Category

java.lang.Object
  extended by java.util.Observable
      extended by mvp.Model
          extended by caltool.schedule.Category
All Implemented Interfaces:
java.io.Serializable

public class Category
extends mvp.Model

A Category has a Name and StandardColor, which serve to distinguish it from other categories. Colored-coded categories serve as visual cues to the user when viewing lists of scheduled items in some form. Categories can also be used in filtered viewing.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
Category()
          Construct an empty category.
Category(java.lang.String name)
          Construct a category of the given name.
 
Method Summary
 java.lang.String toString()
          Return the string representation of this.
 
Methods inherited from class mvp.Model
dump, exit, getView, setView
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Category

public Category()
Construct an empty category.


Category

public Category(java.lang.String name)
Construct a category of the given name. The color is determined by asking the Catgories class for the color assignment of the given cateogories name.

Method Detail

toString

public java.lang.String toString()
Return the string representation of this. Current implementation does not do color.

Overrides:
toString in class java.lang.Object