|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object airline.Connection airline.TextConnection
public class TextConnection
Console-based front end for the airline system.
Constructor Summary | |
---|---|
TextConnection(AirlineSystem system)
Instantiates a new text-based connection to the given AirlineSystem. |
Method Summary | |
---|---|
AdministratorSession.AdminMenuChoice |
getAdminMainMenuChoice()
This dialog is responsible for offering the main administrator menu and returning the user's choice. |
AdministratorSession.NewFlightDetails |
getNewFlightInfo()
This dialog is responsible for gathering information from an administrator while adding a new flight to the system. |
User |
loginDialog()
This dialog manages the login process. |
Methods inherited from class airline.Connection |
---|
connect |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextConnection(AirlineSystem system)
system
- The AirlineSystem associated with this connectionMethod Detail |
---|
public AdministratorSession.AdminMenuChoice getAdminMainMenuChoice()
Connection
getAdminMainMenuChoice
in class Connection
public AdministratorSession.NewFlightDetails getNewFlightInfo()
Connection
getNewFlightInfo
in class Connection
public User loginDialog()
Connection
User
, or to return null
to signify that the application should exit.
loginDialog
in class Connection
User
(or null
if none).
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |