jap.pay.wizardnew
Class JpiSelectionPane
java.lang.Object
gui.dialog.DialogContentPane
jap.pay.wizardnew.JpiSelectionPane
- All Implemented Interfaces:
- DialogContentPane.IWizardSuitable, IDialogOptions, JAPHelpContext.IHelpContext, java.awt.event.ActionListener, java.util.EventListener
public class JpiSelectionPane
- extends DialogContentPane
- implements java.awt.event.ActionListener, DialogContentPane.IWizardSuitable
shown as the first panel when creating an account
shows a list of JPIs, and allows the user to choose one to connect to
- Author:
- Elmar Schraml
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 |
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 |
MSG_CHOOSEAJPI
private static final java.lang.String MSG_CHOOSEAJPI
MSG_CHOOSEAJPI_TITLE
private static final java.lang.String MSG_CHOOSEAJPI_TITLE
MSG_HAVE_TO_CHOOSE
private static final java.lang.String MSG_HAVE_TO_CHOOSE
m_fetchJPIPane
private WorkerContentPane m_fetchJPIPane
m_selectedJpi
private PaymentInstanceDBEntry m_selectedJpi
m_allJpis
private java.util.Vector m_allJpis
m_Jpis
private java.util.Hashtable m_Jpis
m_rbGroup
private javax.swing.ButtonGroup m_rbGroup
m_c
private java.awt.GridBagConstraints m_c
m_rootPanel
private java.awt.Container m_rootPanel
JpiSelectionPane
public JpiSelectionPane(JAPDialog a_parentDialog,
WorkerContentPane a_previousContentPane,
java.lang.String a_jpiId)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
addJpi
private void addJpi(PaymentInstanceDBEntry a_Jpi)
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
showPaymentInstances
public void showPaymentInstances()
resetSelection
public void resetSelection()
getSelectedPaymentInstance
public PaymentInstanceDBEntry getSelectedPaymentInstance()