jap.pay.wizardnew
Class MethodSelectionPane

java.lang.Object
  extended by gui.dialog.DialogContentPane
      extended by jap.pay.wizardnew.MethodSelectionPane
All Implemented Interfaces:
DialogContentPane.IWizardSuitable, IDialogOptions, JAPHelpContext.IHelpContext, java.awt.event.ActionListener, java.util.EventListener

public class MethodSelectionPane
extends DialogContentPane
implements DialogContentPane.IWizardSuitable, java.awt.event.ActionListener


Nested Class Summary
 
Nested classes/interfaces inherited from class gui.dialog.DialogContentPane
DialogContentPane.CheckError, DialogContentPane.IWizardSuitable, DialogContentPane.IWizardSuitableNoWizardButtons, DialogContentPane.Layout
 
Field Summary
private  java.awt.GridBagConstraints m_c
           
(package private)  XMLPaymentOptions m_options
           
private  XMLPaymentOptions m_paymentOptions
           
private  javax.swing.ButtonGroup m_rbGroup
           
private  java.awt.Container m_rootPanel
           
private  XMLPaymentOption m_selectedPaymentOption
           
private static java.lang.String MSG_ERRSELECT
           
private static java.lang.String MSG_MARKUP
           
private static java.lang.String MSG_MARKUP_CAPTION
           
private static java.lang.String MSG_NOTSUPPORTED
           
private static java.lang.String MSG_PRICE
          Messages
private static java.lang.String MSG_SELECTED_PLAN
           
private static java.lang.String MSG_SELECTOPTION
           
private static int SHOW_MARKUP_IF_ABOVE
           
 
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
MethodSelectionPane(JAPDialog a_parentDialog, WorkerContentPane a_previousContentPane)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
private  void addOption(java.lang.String a_name, java.lang.String markup)
           
 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.
 XMLPaymentOption getSelectedPaymentOption()
           
 void showPaymentOptions()
           
 
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

SHOW_MARKUP_IF_ABOVE

private static final int SHOW_MARKUP_IF_ABOVE
See Also:
Constant Field Values

MSG_PRICE

private static final java.lang.String MSG_PRICE
Messages


MSG_SELECTOPTION

private static final java.lang.String MSG_SELECTOPTION

MSG_ERRSELECT

private static final java.lang.String MSG_ERRSELECT

MSG_NOTSUPPORTED

private static final java.lang.String MSG_NOTSUPPORTED

MSG_SELECTED_PLAN

private static final java.lang.String MSG_SELECTED_PLAN

MSG_MARKUP

private static final java.lang.String MSG_MARKUP

MSG_MARKUP_CAPTION

private static final java.lang.String MSG_MARKUP_CAPTION

m_rbGroup

private javax.swing.ButtonGroup m_rbGroup

m_paymentOptions

private XMLPaymentOptions m_paymentOptions

m_c

private java.awt.GridBagConstraints m_c

m_selectedPaymentOption

private XMLPaymentOption m_selectedPaymentOption

m_rootPanel

private java.awt.Container m_rootPanel

m_options

XMLPaymentOptions m_options
Constructor Detail

MethodSelectionPane

public MethodSelectionPane(JAPDialog a_parentDialog,
                           WorkerContentPane a_previousContentPane)
Method Detail

addOption

private void addOption(java.lang.String a_name,
                       java.lang.String markup)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getSelectedPaymentOption

public XMLPaymentOption getSelectedPaymentOption()

showPaymentOptions

public void showPaymentOptions()

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