caltool.schedule
Class Categories

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

public class Categories
extends mvp.Model

See Also:
Serialized Form

Field Summary
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
Categories()
           
 
Method Summary
 void add(Category c)
          Add the given category to this.
 void change(Category oldCat, Category newCat)
          Replace the given old Category with the given new Cateogry in this.
 void delete(java.lang.String name)
          Remove the given Category of the given new Cateogry from 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, toString, wait, wait, wait
 

Constructor Detail

Categories

public Categories()
Method Detail

add

public void add(Category c)
Add the given category to this. No category of the same name can be in the list already. Category names are compared on a character-by-character, case sensitive basis.


change

public void change(Category oldCat,
                   Category newCat)
Replace the given old Category with the given new Cateogry in this.


delete

public void delete(java.lang.String name)
Remove the given Category of the given new Cateogry from this.