airline
Enum AdministratorSession.AdminMenuChoice

java.lang.Object
  extended by java.lang.Enum<AdministratorSession.AdminMenuChoice>
      extended by airline.AdministratorSession.AdminMenuChoice
All Implemented Interfaces:
Serializable, Comparable<AdministratorSession.AdminMenuChoice>
Enclosing class:
AdministratorSession

public static enum AdministratorSession.AdminMenuChoice
extends Enum<AdministratorSession.AdminMenuChoice>

Serves as a return value from Connection.getAdminMainMenuChoice().


Enum Constant Summary
ADD_FLIGHT
          Should proceed to AdministratorSession.addFlightDialog()
EXPORT
          Should proceed to AdministratorSession.exportDatabaseDialog()
IMPORT
          Should proceed to AdministratorSession.importDatabaseDialog()
LOGOUT
          Should exit AdministratorSession.mainDialog()
VIEW_PASSENGER_LIST
          Should proceed to AdministratorSession.viewPassengerListDialog()
 
Method Summary
static AdministratorSession.AdminMenuChoice valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AdministratorSession.AdminMenuChoice[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADD_FLIGHT

public static final AdministratorSession.AdminMenuChoice ADD_FLIGHT
Should proceed to AdministratorSession.addFlightDialog()


EXPORT

public static final AdministratorSession.AdminMenuChoice EXPORT
Should proceed to AdministratorSession.exportDatabaseDialog()


IMPORT

public static final AdministratorSession.AdminMenuChoice IMPORT
Should proceed to AdministratorSession.importDatabaseDialog()


LOGOUT

public static final AdministratorSession.AdminMenuChoice LOGOUT
Should exit AdministratorSession.mainDialog()


VIEW_PASSENGER_LIST

public static final AdministratorSession.AdminMenuChoice VIEW_PASSENGER_LIST
Should proceed to AdministratorSession.viewPassengerListDialog()

Method Detail

valueOf

public static AdministratorSession.AdminMenuChoice valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

values

public static AdministratorSession.AdminMenuChoice[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AdministratorSession.AdminMenuChoice c : AdministratorSession.AdminMenuChoice.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared