rolodex
Class RolodexTool

java.lang.Object
  |
  +--java.util.Observable
        |
        +--mvp.Model
              |
              +--rolodex.RolodexTool
All Implemented Interfaces:
java.io.Serializable

public class RolodexTool
extends mvp.Model

Class RolodexTool is the top-level model class for the simple rolodex system described in the CSC 205 formal specification primer, q.v. The rolodex tool allows users to maintain a database of personal information cards. Cards contaion a person name, id, and other information. The rolodex tool provides operations to add, delete, change, and find cards. It also has standard file operations for new, open, save, save as, and print, as well as standard edit operations for undo, redo, repeat, cut, copy, paste, delete, and select all.

See Also:
Serialized Form

Field Summary
protected  EditStub e
          Basic editing module
protected  File f
          File handling module
protected  Rolodex r
          The rolodex class, including its operations
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
RolodexTool(RolodexMenuUI ui)
          Construct this with the given companion view.
 
Method Summary
 EditStub getEdit()
          Return the Edit model.
 File getFile()
          Return the File model.
 Rolodex getRolodex()
          Return the Rolodex model.
 void newRolodex()
          Create a new empty Rolodex.
 
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
 

Field Detail

f

protected File f
File handling module


e

protected EditStub e
Basic editing module


r

protected Rolodex r
The rolodex class, including its operations

Constructor Detail

RolodexTool

public RolodexTool(RolodexMenuUI ui)
Construct this with the given companion view.

Method Detail

getFile

public File getFile()
Return the File model.


getEdit

public EditStub getEdit()
Return the Edit model.


getRolodex

public Rolodex getRolodex()
Return the Rolodex model.


newRolodex

public void newRolodex()
Create a new empty Rolodex. This function is called by File.newFile , among possibly others.