|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object addressbook.AddressBookController
public class AddressBookController
An object of this class performs operations on the address book in response to user gestures on the GUI
Constructor Summary | |
---|---|
AddressBookController(FileSystem fileSystem)
Constructor |
Method Summary | |
---|---|
boolean |
doAdd()
Do the Add a Person Use Case. |
boolean |
doDelete(java.lang.String name)
Do the Delete a Person use case |
boolean |
doEdit(java.lang.String name)
Do the Edit a Person use case |
boolean |
doFind(int startingIndex)
Do the Find Use Case |
boolean |
doFindAgain()
Do the Find Again UseCase |
boolean |
doNew()
Do the Create New Address Book Use Case |
boolean |
doOpen()
Do the Open Existing Address Book Use Case |
void |
doPrintMailingLabels()
Do the Print Mailing Labels Use Case |
void |
doQuit()
Do the Quit Program Use Case. |
boolean |
doSave()
Do the Save Address Book Use Case |
boolean |
doSaveAs()
Do the Save Address Book As use case |
void |
doSortByName()
Do the Sort Entries by Name Use Case |
void |
doSortByZip()
Do the Sort Entries by ZIP Use Case |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddressBookController(FileSystem fileSystem)
fileSystem
- the object to use for interacting with the file systemMethod Detail |
---|
public boolean doAdd()
public boolean doEdit(java.lang.String name)
name
- the name of the person whose entry is to be edited
public boolean doDelete(java.lang.String name)
name
- the name of the person whose entry is to be deleted
public void doSortByName()
public void doSortByZip()
public boolean doFind(int startingIndex)
startingIndex
- the first position in the address book to consider
public boolean doFindAgain()
public boolean doNew()
public boolean doOpen() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public boolean doSave() throws java.io.IOException
java.io.IOException
public boolean doSaveAs() throws java.io.IOException
java.io.IOException
public void doPrintMailingLabels() throws java.io.IOException
java.io.IOException
- if there was any problem writing the address bookpublic void doQuit()
java.lang.IllegalStateException
- if the user cancels
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |