CreditCardPack

com.keyoti.creditCard.logic.event
Class CreditCardEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.keyoti.creditCard.logic.event.CreditCardEvent

public class CreditCardEvent
extends EventObject

Event signifying change of state in CreditCard

Author:
Keyoti
See Also:
Serialized Form

Field Summary
protected  int cardField
          The card field that changed, causing the event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CreditCardEvent(int cardField, CreditCard sourceCard)
          Creates a new CreditCardEvent with information about which CreditCard field changed.
 
Method Summary
 int getCardField()
          Gets the field that changed and caused this event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cardField

protected int cardField
The card field that changed, causing the event. An int CreditCard identifier field, such as CreditCard.CARD_NUMBER
See Also:
CreditCard.CARD_NUMBER
Constructor Detail

CreditCardEvent

public CreditCardEvent(int cardField,
                       CreditCard sourceCard)
Creates a new CreditCardEvent with information about which CreditCard field changed.
Parameters:
cardField - an int CreditCard identifier field, such as CreditCard.CARD_NUMBER.
sourceCard - the CreditCard that fired this event.
See Also:
CreditCard.CARD_NUMBER
Method Detail

getCardField

public int getCardField()
Gets the field that changed and caused this event

CreditCardPack

Copyright © 2002 Keyoti All Rights Reserved.