jap.pay
Class TransactionOverviewDialog

java.lang.Object
  extended by gui.dialog.JAPDialog
      extended by jap.pay.TransactionOverviewDialog
All Implemented Interfaces:
IDialogOptions, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class TransactionOverviewDialog
extends JAPDialog
implements java.awt.event.ActionListener

This dialog shows an overview of transaction numbers for an account

Author:
Tobias Bayer, Elmar Schraml

Nested Class Summary
private  class TransactionOverviewDialog.MyTableModel
          Tabel model
protected  class TransactionOverviewDialog.TablecellAmount
           
 
Nested classes/interfaces inherited from class gui.dialog.JAPDialog
JAPDialog.AbstractLinkedURLAdapter, JAPDialog.ILinkedInformation, JAPDialog.LinkedCheckBox, JAPDialog.LinkedHelpContext, JAPDialog.LinkedInformation, JAPDialog.LinkedInformationAdapter, JAPDialog.LinkedURLCheckBox, JAPDialog.Options
 
Field Summary
private  java.util.Vector m_accounts
           
private  javax.swing.JButton m_detailsButton
           
private  javax.swing.JLabel m_fetchingLabel
           
private  javax.swing.JButton m_okButton
           
private  AccountSettingsPanel m_parent
           
private  javax.swing.JButton m_reloadButton
           
private  javax.swing.JTable m_transactionsTable
           
private static java.lang.String MSG_ACCOUNTNUMBER
           
private static java.lang.String MSG_AMOUNT
           
private static java.lang.String MSG_CANCELBUTTON
           
static java.lang.String MSG_DETAILS_FAILED
           
private static java.lang.String MSG_DETAILSBUTTON
           
private static java.lang.String MSG_EXPIREDSTATUS
           
private static java.lang.String MSG_FETCHING
           
static java.lang.String MSG_FETCHING_TAN
           
private static java.lang.String MSG_NO_OPEN_TRANSFERS
           
private static java.lang.String MSG_OK_BUTTON
          Messages
private static java.lang.String MSG_OPENSTATUS
           
private static java.lang.String MSG_PAYMENT_COMPLETED
           
private static java.lang.String MSG_PAYMENT_EXPIRED
           
private static java.lang.String MSG_PAYMENTMETHOD
           
private static java.lang.String MSG_RELOADBUTTON
           
private static java.lang.String MSG_STATUS
           
private static java.lang.String MSG_TAN
           
private static java.lang.String MSG_TRANSACTION_DATE
           
private static java.lang.String MSG_USEDSTATUS
           
private static java.lang.String MSG_VOLUMEPLAN
           
 
Fields inherited from class gui.dialog.JAPDialog
FORMAT_DEFAULT_SCREEN, FORMAT_GOLDEN_RATIO_PHI, FORMAT_WIDE_SCREEN, MSG_BTN_PROCEED, MSG_BTN_RETRY, MSG_ERROR_UNDISPLAYABLE, MSG_ERROR_UNKNOWN, MSG_TITLE_CONFIRMATION, MSG_TITLE_ERROR, MSG_TITLE_INFO, MSG_TITLE_WARNING, XML_ATTR_OPTIMIZED_FORMAT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
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
TransactionOverviewDialog(AccountSettingsPanel a_parent, java.lang.String title, boolean modal, java.util.Vector a_accounts)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
private  javax.swing.JPanel buildButtonPanel()
           
private  void buildDialog()
           
private static java.util.Vector getLocalizedActivePaymentsData(java.lang.String lang, PayAccount a_account, java.lang.String a_paymentMethod)
          getLocalizedActivePaymentsData
static void showActivePaymentDialog(JAPDialog a_parent, java.lang.String transferNumber, long amount, PayAccount a_account, java.lang.String planName, java.lang.String a_paymentMethod)
           
static void showPassivePaymentDialog(JAPDialog a_parent, XMLPassivePayment pp, long transfernumber, long accountnumber)
           
 void showTransactionDetailsDialog()
           
private  void showTransactions()
           
 
Methods inherited from class gui.dialog.JAPDialog
addComponentListener, addWindowListener, dispose, doClosingOnContentPaneCancel, getAccessibleContext, getContentPane, getDefaultCloseOperation, getFont, getGlassPane, getInsets, getJMenuBar, getLayeredPane, getLocation, getName, getOptimizedFormat, getOptimizedFormatDelta, getOptimizedFormatDelta, getOptimizedFormatInternal, getOwner, getParentComponent, getPreferredSize, getRootPane, getScreenBounds, getSize, getTitle, imageUpdate, isClosingOnContentPaneCancel, isConsoleOnly, isDisposed, isEnabled, isModal, isResizable, isVisible, moveToUpRightCorner, pack, postEvent, remove, removeComponentListener, removeWindowListener, requestFocus, resetAutomaticLocation, restoreLocation, restoreSize, retrieveErrorMessage, setAlwaysOnTop, setConsoleOnly, setContentPane, setDefaultCloseOperation, setDockable, setEnabled, setGlassPane, setJMenuBar, setLayeredPane, setLocation, setLocation, setLocationCenteredOn, setLocationCenteredOnOwner, setLocationCenteredOnParent, setLocationCenteredOnScreen, setLocationRelativeToOwner, setModal, setName, setOptimizedFormat, setResizable, setSize, setSize, setTitle, setVisible, setVisible, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, toBack, toFront, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_OK_BUTTON

private static final java.lang.String MSG_OK_BUTTON
Messages


MSG_DETAILSBUTTON

private static final java.lang.String MSG_DETAILSBUTTON

MSG_RELOADBUTTON

private static final java.lang.String MSG_RELOADBUTTON

MSG_CANCELBUTTON

private static final java.lang.String MSG_CANCELBUTTON

MSG_FETCHING

private static final java.lang.String MSG_FETCHING

MSG_TAN

private static final java.lang.String MSG_TAN

MSG_AMOUNT

private static final java.lang.String MSG_AMOUNT

MSG_STATUS

private static final java.lang.String MSG_STATUS

MSG_TRANSACTION_DATE

private static final java.lang.String MSG_TRANSACTION_DATE

MSG_DETAILS_FAILED

public static final java.lang.String MSG_DETAILS_FAILED

MSG_FETCHING_TAN

public static final java.lang.String MSG_FETCHING_TAN

MSG_ACCOUNTNUMBER

private static final java.lang.String MSG_ACCOUNTNUMBER

MSG_VOLUMEPLAN

private static final java.lang.String MSG_VOLUMEPLAN

MSG_PAYMENTMETHOD

private static final java.lang.String MSG_PAYMENTMETHOD

MSG_USEDSTATUS

private static final java.lang.String MSG_USEDSTATUS

MSG_OPENSTATUS

private static final java.lang.String MSG_OPENSTATUS

MSG_EXPIREDSTATUS

private static final java.lang.String MSG_EXPIREDSTATUS

MSG_PAYMENT_COMPLETED

private static final java.lang.String MSG_PAYMENT_COMPLETED

MSG_PAYMENT_EXPIRED

private static final java.lang.String MSG_PAYMENT_EXPIRED

MSG_NO_OPEN_TRANSFERS

private static final java.lang.String MSG_NO_OPEN_TRANSFERS

m_transactionsTable

private javax.swing.JTable m_transactionsTable

m_okButton

private javax.swing.JButton m_okButton

m_reloadButton

private javax.swing.JButton m_reloadButton

m_detailsButton

private javax.swing.JButton m_detailsButton

m_fetchingLabel

private javax.swing.JLabel m_fetchingLabel

m_parent

private AccountSettingsPanel m_parent

m_accounts

private java.util.Vector m_accounts
Constructor Detail

TransactionOverviewDialog

public TransactionOverviewDialog(AccountSettingsPanel a_parent,
                                 java.lang.String title,
                                 boolean modal,
                                 java.util.Vector a_accounts)
Method Detail

buildDialog

private void buildDialog()
                  throws java.lang.Exception
Throws:
java.lang.Exception

buildButtonPanel

private javax.swing.JPanel buildButtonPanel()

showTransactions

private void showTransactions()

actionPerformed

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

showTransactionDetailsDialog

public void showTransactionDetailsDialog()

showActivePaymentDialog

public static void showActivePaymentDialog(JAPDialog a_parent,
                                           java.lang.String transferNumber,
                                           long amount,
                                           PayAccount a_account,
                                           java.lang.String planName,
                                           java.lang.String a_paymentMethod)

getLocalizedActivePaymentsData

private static java.util.Vector getLocalizedActivePaymentsData(java.lang.String lang,
                                                               PayAccount a_account,
                                                               java.lang.String a_paymentMethod)
getLocalizedActivePaymentsData

Parameters:
lang: - String, 2-letter language code, e.g. "en" for english
a_paymentMethod: - the internal name of the payment method that the user chose when creating the transaction
Returns:
Vector: of Hashtables (one per XMLPaymentOption) entries in Hashtable: Strings for keys "name","heading","detailedInfo", Vector of Strings for key "extraInfos"

showPassivePaymentDialog

public static void showPassivePaymentDialog(JAPDialog a_parent,
                                            XMLPassivePayment pp,
                                            long transfernumber,
                                            long accountnumber)