cs015.PizzaDex
Class UserInterface

java.lang.Object
  extended bycs015.PizzaDex.UserInterface

public class UserInterface
extends java.lang.Object

Package PizzaDex
class UserInterface

author plm


Constructor Summary
UserInterface(ListInterface list)
           
 
Method Summary
 char getChoice()
          getChoice() Called by processChoice.
 void printMenu()
          printMenu() Called by main.
 char processChoice()
          processChoice() Called by main.
 void start()
          Has control of the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInterface

public UserInterface(ListInterface list)
Method Detail

start

public void start()
Has control of the program.


getChoice

public char getChoice()
getChoice() Called by processChoice. Returns char that user inputs. Catch IO exception if necessary and return an error value.


processChoice

public char processChoice()
processChoice() Called by main. Calls getChoice() first, then takes care of user input. Finally, returns user input to main so that main knows if the user wanted to quit.


printMenu

public void printMenu()
printMenu() Called by main. Prints choice menu for user. Does not take input.