rolodex
Class FileStub

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

public class FileStub
extends mvp.Model

Class FileStub is the model class for the rolodex file handling. This is an initial skeletal design with no preconditions, postconditions, or data represenation yet defined.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
FileStub(mvp.View v)
          Construct this.
 
Method Summary
 void exit()
          Quit the rolodex system.
 void newFile()
          Create a new empty rolodex.
 void open(Name n)
          Open an existing rolodex file of the given name.
 void print()
          Print this in textual format.
 void save()
          Save the contents of the current canvas in the filespace.
 void saveAs(Name n)
          Save this in the filespace under the given name.
 
Methods inherited from class mvp.Model
dump, 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

FileStub

public FileStub(mvp.View v)
Construct this.

Method Detail

newFile

public void newFile()
Create a new empty rolodex.


open

public void open(Name n)
Open an existing rolodex file of the given name. Create a rolodex containing the data of the opened file.


save

public void save()
Save the contents of the current canvas in the filespace.


saveAs

public void saveAs(Name n)
Save this in the filespace under the given name.


print

public void print()
Print this in textual format.


exit

public void exit()
Quit the rolodex system.

Overrides:
exit in class mvp.Model