jap.pay
Class FlatrateDialog

java.lang.Object
  extended by gui.dialog.JAPDialog
      extended by jap.pay.FlatrateDialog
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

Deprecated. : outdated, since this dialog can't show multiple volume plans Choosing a plan has been integrated into the regular charge wizard instead

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

Dialog that is shown when the user clicks the "buy flatrate" button on AccountSettingsPanel shows the current modalities of the flatrate (duration, price etc from table paymentsettings) as well as the user's balance, and allows the user to buy a flatrate if funds are sufficient

Author:
Elmar Schraml

Nested Class Summary
 
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  javax.swing.JPanel buttonPanel
          Deprecated.  
private  javax.swing.JPanel flatPanel
          Deprecated.  
private  boolean isFlatAffordable
          Deprecated.  
private  PayAccount m_account
          Deprecated.  
private  javax.swing.JButton m_btnBuy
          Deprecated.  
private  javax.swing.JButton m_btnCancel
          Deprecated.  
private  javax.swing.JLabel m_lBalance
          Deprecated.  
private  javax.swing.JLabel m_lBalanceLabel
          Deprecated.  
private  javax.swing.JLabel m_lFlatHeader
          Deprecated.  
private  javax.swing.JLabel m_lHeading
          Deprecated.  
private  javax.swing.JLabel m_lInsufficientFunds
          Deprecated.  
private  javax.swing.JLabel m_lPrice
          Deprecated.  
private  javax.swing.JLabel m_lPriceLabel
          Deprecated.  
private  javax.swing.JLabel m_lValidtime
          Deprecated.  
private  javax.swing.JLabel m_lValidtimeLabel
          Deprecated.  
private  javax.swing.JLabel m_lVolume
          Deprecated.  
private  javax.swing.JLabel m_lVolumeLabel
          Deprecated.  
private  AbstractJAPConfModule m_parent
          Deprecated.  
private static java.lang.String MSG_BALANCE_LABEL
          Deprecated.  
private static java.lang.String MSG_BUY
          Deprecated.  
private static java.lang.String MSG_CANCEL
          Deprecated.  
private static java.lang.String MSG_ERROR_ALREADY_ACTIVE
          Deprecated.  
private static java.lang.String MSG_ERROR_CONNECTION
          Deprecated.  
private static java.lang.String MSG_ERROR_FLATRATE_REFUSED
          Deprecated.  
private static java.lang.String MSG_ERROR_INSUFFICIENT_FUNDS
          Deprecated.  
private static java.lang.String MSG_ERROR_NO_SETTINGS
          Deprecated.  
private static java.lang.String MSG_FLAT_BOUGHT
          Deprecated.  
private static java.lang.String MSG_FLAT_HEADER
          Deprecated.  
private static java.lang.String MSG_HEADING
          Deprecated.  
private static java.lang.String MSG_INSUFFICIENT_FUNDS
          Deprecated.  
private static java.lang.String MSG_PRICE_LABEL
          Deprecated.  
private static java.lang.String MSG_UNLIMITED
          Deprecated.  
private static java.lang.String MSG_VALID
          Deprecated.  
private static java.lang.String MSG_VOLUME_LABEL
          Deprecated.  
private  XMLPaymentSettings paymentSettings
          Deprecated.  
 
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
FlatrateDialog(java.awt.Component parentComponent, AbstractJAPConfModule calledFrom, java.lang.String title, boolean modal, PayAccount activeAccount)
          Deprecated.  
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Deprecated.  
private  javax.swing.JPanel buildButtonPanel()
          Deprecated.  
private  javax.swing.JPanel buildFlatPanel(PayAccount account)
          Deprecated.  
private  void buyFlatrate()
          Deprecated.  
private  XMLPaymentSettings getPaymentSettings()
          Deprecated.  
private static java.lang.String getString(java.lang.String name)
          Deprecated.  
 
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_HEADING

private static final java.lang.String MSG_HEADING
Deprecated. 
See Also:
Constant Field Values

MSG_BALANCE_LABEL

private static final java.lang.String MSG_BALANCE_LABEL
Deprecated. 
See Also:
Constant Field Values

MSG_FLAT_HEADER

private static final java.lang.String MSG_FLAT_HEADER
Deprecated. 
See Also:
Constant Field Values

MSG_PRICE_LABEL

private static final java.lang.String MSG_PRICE_LABEL
Deprecated. 
See Also:
Constant Field Values

MSG_VALID

private static final java.lang.String MSG_VALID
Deprecated. 
See Also:
Constant Field Values

MSG_VOLUME_LABEL

private static final java.lang.String MSG_VOLUME_LABEL
Deprecated. 
See Also:
Constant Field Values

MSG_INSUFFICIENT_FUNDS

private static final java.lang.String MSG_INSUFFICIENT_FUNDS
Deprecated. 
See Also:
Constant Field Values

MSG_UNLIMITED

private static final java.lang.String MSG_UNLIMITED
Deprecated. 
See Also:
Constant Field Values

MSG_BUY

private static final java.lang.String MSG_BUY
Deprecated. 
See Also:
Constant Field Values

MSG_CANCEL

private static final java.lang.String MSG_CANCEL
Deprecated. 
See Also:
Constant Field Values

MSG_ERROR_CONNECTION

private static final java.lang.String MSG_ERROR_CONNECTION
Deprecated. 
See Also:
Constant Field Values

MSG_ERROR_INSUFFICIENT_FUNDS

private static final java.lang.String MSG_ERROR_INSUFFICIENT_FUNDS
Deprecated. 
See Also:
Constant Field Values

MSG_ERROR_FLATRATE_REFUSED

private static final java.lang.String MSG_ERROR_FLATRATE_REFUSED
Deprecated. 
See Also:
Constant Field Values

MSG_ERROR_ALREADY_ACTIVE

private static final java.lang.String MSG_ERROR_ALREADY_ACTIVE
Deprecated. 
See Also:
Constant Field Values

MSG_ERROR_NO_SETTINGS

private static final java.lang.String MSG_ERROR_NO_SETTINGS
Deprecated. 
See Also:
Constant Field Values

MSG_FLAT_BOUGHT

private static final java.lang.String MSG_FLAT_BOUGHT
Deprecated. 
See Also:
Constant Field Values

m_parent

private AbstractJAPConfModule m_parent
Deprecated. 

m_btnBuy

private javax.swing.JButton m_btnBuy
Deprecated. 

m_btnCancel

private javax.swing.JButton m_btnCancel
Deprecated. 

m_lHeading

private javax.swing.JLabel m_lHeading
Deprecated. 

m_lBalanceLabel

private javax.swing.JLabel m_lBalanceLabel
Deprecated. 

m_lBalance

private javax.swing.JLabel m_lBalance
Deprecated. 

m_lFlatHeader

private javax.swing.JLabel m_lFlatHeader
Deprecated. 

m_lPriceLabel

private javax.swing.JLabel m_lPriceLabel
Deprecated. 

m_lPrice

private javax.swing.JLabel m_lPrice
Deprecated. 

m_lValidtimeLabel

private javax.swing.JLabel m_lValidtimeLabel
Deprecated. 

m_lValidtime

private javax.swing.JLabel m_lValidtime
Deprecated. 

m_lVolumeLabel

private javax.swing.JLabel m_lVolumeLabel
Deprecated. 

m_lVolume

private javax.swing.JLabel m_lVolume
Deprecated. 

m_lInsufficientFunds

private javax.swing.JLabel m_lInsufficientFunds
Deprecated. 

buttonPanel

private javax.swing.JPanel buttonPanel
Deprecated. 

flatPanel

private javax.swing.JPanel flatPanel
Deprecated. 

paymentSettings

private XMLPaymentSettings paymentSettings
Deprecated. 

isFlatAffordable

private boolean isFlatAffordable
Deprecated. 

m_account

private PayAccount m_account
Deprecated. 
Constructor Detail

FlatrateDialog

public FlatrateDialog(java.awt.Component parentComponent,
                      AbstractJAPConfModule calledFrom,
                      java.lang.String title,
                      boolean modal,
                      PayAccount activeAccount)
Deprecated. 
Method Detail

buildButtonPanel

private javax.swing.JPanel buildButtonPanel()
Deprecated. 

buildFlatPanel

private javax.swing.JPanel buildFlatPanel(PayAccount account)
Deprecated. 

actionPerformed

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

buyFlatrate

private void buyFlatrate()
Deprecated. 

getPaymentSettings

private XMLPaymentSettings getPaymentSettings()
Deprecated. 

getString

private static java.lang.String getString(java.lang.String name)
Deprecated.