org.cocome.tradingsystem.cashdeskline.cashdesk.application.impl
Enum CashDeskStates

java.lang.Object
  extended by java.lang.Enum<CashDeskStates>
      extended by org.cocome.tradingsystem.cashdeskline.cashdesk.application.impl.CashDeskStates
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CashDeskStates>

public enum CashDeskStates
extends java.lang.Enum<CashDeskStates>

Description of the states the ApplicationEventHandler can be in

Author:
Yannick Welsch

Enum Constant Summary
CREDIT_CARD_SCANNED
          After the credit card was scanned
INITIALIZED
          Initial state
PAID
          After the payment per cash
PAYING_BY_CASH
          After the selection for cash payment was made
PAYING_BY_CREDITCARD
          After the selection for credit card payment was made
SALE_FINISHED
          After a sale has finished (All products have been scanned) and Finish Sale button pushed
SALE_STARTED
          After a sale has started (New Sale button pushed)
 
Method Summary
static CashDeskStates valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CashDeskStates[] 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

INITIALIZED

public static final CashDeskStates INITIALIZED
Initial state


SALE_STARTED

public static final CashDeskStates SALE_STARTED
After a sale has started (New Sale button pushed)


SALE_FINISHED

public static final CashDeskStates SALE_FINISHED
After a sale has finished (All products have been scanned) and Finish Sale button pushed


PAYING_BY_CREDITCARD

public static final CashDeskStates PAYING_BY_CREDITCARD
After the selection for credit card payment was made


CREDIT_CARD_SCANNED

public static final CashDeskStates CREDIT_CARD_SCANNED
After the credit card was scanned


PAYING_BY_CASH

public static final CashDeskStates PAYING_BY_CASH
After the selection for cash payment was made


PAID

public static final CashDeskStates PAID
After the payment per cash

Method Detail

values

public static CashDeskStates[] 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 (CashDeskStates c : CashDeskStates.values())
    System.out.println(c);

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

valueOf

public static CashDeskStates valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null