CreditCardPack

Serialized Form


Package com.keyoti.creditCard.display

Class com.keyoti.creditCard.display.CardBillingAddressPanel implements Serializable

Serialized Fields

cardBillingAddress

String[] cardBillingAddress
The billing address.

cardBillingAddressField

LimitedJTextField[] cardBillingAddressField
Card text fields

Class com.keyoti.creditCard.display.CardCommentsPanel implements Serializable

Serialized Fields

comments

String comments
The card name last entered into the text field.

commentsField

LimitedJTextArea commentsField
Card text field, will not contain more than 1000 characters.

Class com.keyoti.creditCard.display.CardElementPanel implements Serializable

Serialized Fields

controller

ElementController controller
Controller part of Swing style separable model design (MVC), each sub class of this class should set this field to a sub class of ElementController to control the events and method calls to and from the elements view and model.
See Also:
ElementController

label

JLabel label
The field label, that appears in the left panel.

labelFont

Font labelFont
The font used for the labels.

leftPanel

JPanel leftPanel
Left JPanel to add components to, for example a JLabel.

rightPanel

JPanel rightPanel
Right JPanel to add components to, for example a JTextField.

showDataInputErrors

boolean showDataInputErrors
Whether data input errors will be shown to the user.

textFieldFont

Font textFieldFont
The font used for the text fields.

Class com.keyoti.creditCard.display.CardExpiryPanel implements Serializable

Serialized Fields

expiryMonth

Integer expiryMonth
The expiry last entered into the text field

expiryMonthField

LimitedJTextField expiryMonthField
Card text field.

expiryMonthLabel

JLabel expiryMonthLabel
Card text field label.

expiryYear

Integer expiryYear
The expiry last entered into the text field

expiryYearField

LimitedJTextField expiryYearField
Card text field.

expiryYearLabel

JLabel expiryYearLabel
Card text field label.

Class com.keyoti.creditCard.display.CardIssueNumberPanel implements Serializable

Serialized Fields

issueNumber

Integer issueNumber
The expiry last entered into the text field

issueNumberField

LimitedJTextField issueNumberField
Card text fields

Class com.keyoti.creditCard.display.CardIssuerPanel implements Serializable

Serialized Fields

cardIssuer

String cardIssuer
The card name last entered into the text field.

cardIssuerField

LimitedJTextField cardIssuerField
Card text field

Class com.keyoti.creditCard.display.CardNamePanel implements Serializable

Serialized Fields

cardName

String cardName
The card name last entered into the text field.

cardNameField

LimitedJTextField cardNameField
Card text field

Class com.keyoti.creditCard.display.CardNumberPanel implements Serializable

Serialized Fields

cardNumber

String cardNumber
The card number last entered into the text field.

cardNumberField

LimitedJTextField cardNumberField
Card text fields.

Class com.keyoti.creditCard.display.CardStartPanel implements Serializable

Serialized Fields

startMonth

Integer startMonth
The start last entered into the text field

startMonthField

LimitedJTextField startMonthField
Card text field.

startMonthLabel

JLabel startMonthLabel
Card text field label.

startYear

Integer startYear
The start last entered into the text field

startYearField

LimitedJTextField startYearField
Card text field.

startYearLabel

JLabel startYearLabel
Card text field label.

Class com.keyoti.creditCard.display.CardTypePanel implements Serializable

Serialized Fields

cardType

CardType cardType
The card type last selected in the JComboBox.

cardTypeField

JComboBox cardTypeField
Card type field.

cardTypes

CardType[] cardTypes
String array of card types to appear in the drop down combo box use setCardTypes() to set your own Default: American Express, Carte Blanche, Delta, Diner's Club, Discover, JCB, MasterCard, Switch, Visa

Class com.keyoti.creditCard.display.CardVerificationNumberPanel implements Serializable

Serialized Fields

cardVerificationNumber

String cardVerificationNumber
The card name last entered into the text field.

cardVerificationNumberField

LimitedJTextField cardVerificationNumberField
Card text field

Class com.keyoti.creditCard.display.CreditCardPanel implements Serializable

Serialized Fields

cardElements

Vector cardElements
Track all cardElements that are added, so that can inform of new creditCard.

creditCard

CreditCard creditCard
The CreditCard logic object that is being used as the model for all the elements added to this panel.

Class com.keyoti.creditCard.display.ElementController implements Serializable

Serialized Fields

creditCard

CreditCard creditCard
The model object.

view

CardElementPanel view
The view object, this should be set to an object with the CardElementPanel as a base class.

Class com.keyoti.creditCard.display.LimitedJTextArea implements Serializable

Serialized Fields

maxLength

int maxLength
Maximum number of characters that may be input into this field.

Class com.keyoti.creditCard.display.LimitedJTextField implements Serializable

Serialized Fields

maxLength

int maxLength
Maximum number of characters that may be input into this field.


Package com.keyoti.creditCard.logic

Class com.keyoti.creditCard.logic.CardType implements Serializable

Serialized Fields

identifierPatterns

String[] identifierPatterns
Card number patterns for this card type, eg "51xxxx" for MasterCard.

Identifier patterns are an array of Strings containing the valid patterns for the card type.
Eg; MasterCard cards have card numbers that follow any of these patterns "51xxxx", "52xxxx", "53xxxx", "54xxxx", "55xxxx" where "x" signifies a wildcard. This is never null although it may be an empty array.


name

String name
A string name for this type, eg "MasterCard". This is presented to the user and is never null.

validNumberLengths

int[] validNumberLengths
Valid card number lengths for this type of card, this may be empty.

Class com.keyoti.creditCard.logic.CreditCard implements Serializable

Serialized Fields

billingAddress

String[] billingAddress
The billing address for this card, this is a 5 element array. eg;
     billingAddress[0] = "StreetLine1";
     billingAddress[1] = "StreetLine2";
     billingAddress[2] = "City";
     billingAddress[3] = "State/Province/County";
     billingAddress[4] = "PostalCode";
     billingAddress[5] = "Country";
     

cardName

String cardName
The card owners name

cardNumber

String cardNumber
The card number.
String of unconstrained length, no guarantees as to the content of it.

cardType

CardType cardType
The card type

cardVerificationNumber

String cardVerificationNumber
The card verification number (CVV2/CVC2/CID), which for Mastercard & Visa is a 3 digit number that appears on the back of the card, above the signature strip on the right. For American Express this is a 4 digit number on the front of the card, to the right, above the card number.
this field is serialised, but should not be stored in long term persistence, this field is stored for short term purposes such as RMI.

comments

String comments
Any comments, this is a plain String field that may be used to record comments about this card.

expiryMonth

Integer expiryMonth
The card expiry month (1->12)

expiryYear

Integer expiryYear
The 2 digit card expiry year (yy)

issueNumber

Integer issueNumber
The card issue number

issuer

String issuer
The card issuer's (i.e. the bank) name.

pcs

PropertyChangeSupport pcs
Property change support

startMonth

Integer startMonth
The card start month (1->12)

startYear

Integer startYear
The 2 digit card start year (yy)


Package com.keyoti.creditCard.logic.ejb

Class com.keyoti.creditCard.logic.ejb.CreditCardBean implements Serializable

Serialized Fields

cardVerificationNumber

String cardVerificationNumber
The card verification number, this is not persisted.
This field is not persisted in CMP, however it IS serialized, for the purpose of temporary persistence.
See Also:
CreditCardBean.setCardVerificationNumber(java.lang.String)

context

javax.ejb.EntityContext context


Package com.keyoti.creditCard.logic.event

Class com.keyoti.creditCard.logic.event.CreditCardEvent implements Serializable

Serialized Fields

cardField

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


CreditCardPack

Copyright © 2002 Keyoti All Rights Reserved.