jap.pay.wizardnew
Class PassivePaymentPane

java.lang.Object
  extended by gui.dialog.DialogContentPane
      extended by jap.pay.wizardnew.PassivePaymentPane
All Implemented Interfaces:
DialogContentPane.IWizardSuitable, IDialogOptions, JAPHelpContext.IHelpContext

public class PassivePaymentPane
extends DialogContentPane
implements DialogContentPane.IWizardSuitable


Nested Class Summary
 
Nested classes/interfaces inherited from class gui.dialog.DialogContentPane
DialogContentPane.CheckError, DialogContentPane.IWizardSuitable, DialogContentPane.IWizardSuitableNoWizardButtons, DialogContentPane.Layout
 
Field Summary
static java.lang.String[] creditCardDataKeys
           
static java.lang.String IMG_CREDITCARDSECURITY
          Images
private  java.awt.GridBagConstraints m_c
           
private  javax.swing.JComboBox m_cbCompany
          Fields for special credit card form
private  javax.swing.JComboBox m_cbMonth
          Fields for special credit card form
private  javax.swing.JComboBox m_cbYear
          Fields for special credit card form
private  java.util.Vector m_inputFields
           
private  java.lang.String m_language
           
private  XMLPaymentOptions m_paymentOptions
           
private  java.awt.Container m_rootPanel
           
private  XMLPaymentOption m_selectedOption
           
private  JAPJIntField m_tfCardCheckNumber
           
private  JAPJIntField m_tfCardNumber1
           
private  JAPJIntField m_tfCardNumber2
           
private  JAPJIntField m_tfCardNumber3
           
private  JAPJIntField m_tfCardNumber4
           
private  javax.swing.JTextField m_tfCardOwner
           
private static java.lang.String MSG_CARDCHECKNUMBER
           
private static java.lang.String MSG_CARDCOMPANY
           
private static java.lang.String MSG_CARDNUMBER
           
private static java.lang.String MSG_CARDOWNER
           
private static java.lang.String MSG_CARDVALIDITY
           
private static java.lang.String MSG_ENTER
          Messages
private static java.lang.String MSG_ERRALLFIELDS
           
 
Fields inherited from class gui.dialog.DialogContentPane
BUTTON_OPERATION_WIZARD, DEFAULT_BUTTON_CANCEL, DEFAULT_BUTTON_EMPTY, DEFAULT_BUTTON_HELP, DEFAULT_BUTTON_KEEP, DEFAULT_BUTTON_NO, DEFAULT_BUTTON_OK, DEFAULT_BUTTON_YES, MSG_CANCEL, MSG_FINISH, MSG_NEXT, MSG_NO, MSG_OK, MSG_OPERATION_FAILED, MSG_PREVIOUS, MSG_SEE_FULL_MESSAGE, MSG_YES, ON_CANCEL_DISPOSE_DIALOG, ON_CANCEL_HIDE_DIALOG, ON_CANCEL_SHOW_NEXT_CONTENT, ON_CANCEL_SHOW_PREVIOUS_CONTENT, ON_CLICK_DISPOSE_DIALOG, ON_CLICK_DO_NOTHING, ON_CLICK_HIDE_DIALOG, ON_CLICK_SHOW_NEXT_CONTENT, ON_CLICK_SHOW_PREVIOUS_CONTENT, ON_NO_DISPOSE_DIALOG, ON_NO_HIDE_DIALOG, ON_NO_SHOW_NEXT_CONTENT, ON_NO_SHOW_PREVIOUS_CONTENT, ON_YESOK_DISPOSE_DIALOG, ON_YESOK_HIDE_DIALOG, ON_YESOK_SHOW_NEXT_CONTENT, ON_YESOK_SHOW_PREVIOUS_CONTENT
 
Fields inherited from interface gui.dialog.IDialogOptions
MESSAGE_TYPE_ERROR, MESSAGE_TYPE_INFORMATION, MESSAGE_TYPE_PLAIN, MESSAGE_TYPE_QUESTION, MESSAGE_TYPE_WARNING, OPTION_TYPE_CANCEL, OPTION_TYPE_DEFAULT, OPTION_TYPE_EMPTY, OPTION_TYPE_OK_CANCEL, OPTION_TYPE_YES_NO, OPTION_TYPE_YES_NO_CANCEL, RETURN_VALUE_CANCEL, RETURN_VALUE_CLOSED, RETURN_VALUE_NO, RETURN_VALUE_OK, RETURN_VALUE_UNINITIALIZED, RETURN_VALUE_YES
 
Constructor Summary
PassivePaymentPane(JAPDialog a_parentDialog, DialogContentPane a_previousContentPane)
           
 
Method Summary
 DialogContentPane.CheckError[] checkUpdate()
          Is called when someone calls updateDialog() on this content pane.
 DialogContentPane.CheckError[] checkYesOK()
          Is called when the "Yes", "OK" or "Next" button is clicked.
private  XMLPassivePayment getEnteredCreditCardInfo()
          getEnteredCreditCardInfo
 XMLPassivePayment getEnteredGenericInfo()
           
 XMLPassivePayment getEnteredInfo()
           
private  void showCreditCardForm()
          showCreditCardForm
 void showForm()
           
 void showGenericForm()
           
 
Methods inherited from class gui.dialog.DialogContentPane
addComponentListener, addDialogComponentListener, addDialogWindowListener, checkCancel, checkNo, clearStatusMessage, clearStatusMessage, closeDialog, dispose, getButtonCancel, getButtonHelp, getButtonNo, getButtonValue, getButtonYesOK, getContentPane, getDefaultButton, getDefaultButtonOperation, getDialog, getHelpContext, getHelpExtractionDisplayContext, getMessageIcon, getNextContentPane, getPreviousContentPane, getText, getValue, hasNextContentPane, hasPreviousContentPane, hasValidValue, hasWizardLayout, isActive, isAutomaticFocusSettingEnabled, isDialogVisible, isDisposed, isMoveBackAllowed, isMoveForwardAllowed, isSkippedAsNextContentPane, isSkippedAsPreviousContentPane, isVisible, moveToNextContentPane, moveToPreviousContentPane, printErrorStatusMessage, printErrorStatusMessage, printErrorStatusMessage, printStatusMessage, printStatusMessage, removeComponentListener, removeDialogComponentListener, removeDialogWindowListener, setButtonValue, setContentPane, setDefaultButton, setDefaultButtonOperation, setMouseListener, setText, showDialog, updateDialog, updateDialogOptimalSized, updateDialogOptimalSized, validateDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_ENTER

private static final java.lang.String MSG_ENTER
Messages


MSG_ERRALLFIELDS

private static final java.lang.String MSG_ERRALLFIELDS

MSG_CARDCOMPANY

private static final java.lang.String MSG_CARDCOMPANY

MSG_CARDOWNER

private static final java.lang.String MSG_CARDOWNER

MSG_CARDVALIDITY

private static final java.lang.String MSG_CARDVALIDITY

MSG_CARDNUMBER

private static final java.lang.String MSG_CARDNUMBER

MSG_CARDCHECKNUMBER

private static final java.lang.String MSG_CARDCHECKNUMBER

IMG_CREDITCARDSECURITY

public static final java.lang.String IMG_CREDITCARDSECURITY
Images


creditCardDataKeys

public static final java.lang.String[] creditCardDataKeys

m_rootPanel

private java.awt.Container m_rootPanel

m_c

private java.awt.GridBagConstraints m_c

m_language

private java.lang.String m_language

m_inputFields

private java.util.Vector m_inputFields

m_selectedOption

private XMLPaymentOption m_selectedOption

m_paymentOptions

private XMLPaymentOptions m_paymentOptions

m_cbCompany

private javax.swing.JComboBox m_cbCompany
Fields for special credit card form


m_cbMonth

private javax.swing.JComboBox m_cbMonth
Fields for special credit card form


m_cbYear

private javax.swing.JComboBox m_cbYear
Fields for special credit card form


m_tfCardOwner

private javax.swing.JTextField m_tfCardOwner

m_tfCardNumber1

private JAPJIntField m_tfCardNumber1

m_tfCardNumber2

private JAPJIntField m_tfCardNumber2

m_tfCardNumber3

private JAPJIntField m_tfCardNumber3

m_tfCardNumber4

private JAPJIntField m_tfCardNumber4

m_tfCardCheckNumber

private JAPJIntField m_tfCardCheckNumber
Constructor Detail

PassivePaymentPane

public PassivePaymentPane(JAPDialog a_parentDialog,
                          DialogContentPane a_previousContentPane)
Method Detail

showGenericForm

public void showGenericForm()

getEnteredInfo

public XMLPassivePayment getEnteredInfo()

getEnteredCreditCardInfo

private XMLPassivePayment getEnteredCreditCardInfo()
getEnteredCreditCardInfo

Returns:
XMLPassivePayment

getEnteredGenericInfo

public XMLPassivePayment getEnteredGenericInfo()

checkYesOK

public DialogContentPane.CheckError[] checkYesOK()
Description copied from class: DialogContentPane
Is called when the "Yes", "OK" or "Next" button is clicked. If one or more error occured, they should be returned as CheckErrors to inform the user. In this case, the automatic reaction on the button click is prohibited and getValue() will not change. Overwrite this method to set your own check; it returns null by default. This method should never be called directly and is only used internally.

Overrides:
checkYesOK in class DialogContentPane
Returns:
errors that prohibit the operation or null or an empty array if the operation is allowed

checkUpdate

public DialogContentPane.CheckError[] checkUpdate()
Description copied from class: DialogContentPane
Is called when someone calls updateDialog() on this content pane. The update operation is only performed if null is returned. Otherwise, the caller may interpret the errors he gets from updateDialog. This is done by moveToNextContentPane() and moveToPreviousContentPane() . Overwrite this method to set your own check; it returns null by default. This method should never be called directly and is only used internally.

Overrides:
checkUpdate in class DialogContentPane
Returns:
errors that prohibit the operation or null or an empty array if the operation is allowed

showForm

public void showForm()

showCreditCardForm

private void showCreditCardForm()
showCreditCardForm