mixconfig.panels.PaymentPanel Class Reference

Inherits mixconfig::panels::MixConfigPanel, and javax::swing::event::ChangeListener.

List of all members.

Public Member Functions

 PaymentPanel () throws IOException
void setConfiguration (MixConfiguration a_conf) throws IOException
void stateChanged (ChangeEvent e)
String getHelpContext ()
Vector< String > check ()
Container getHelpExtractionDisplayContext ()

Static Public Attributes

static final String XMLPATH_ACCOUNTING = "Accounting"
static final String XMLPATH_SOFTLIMIT = XMLPATH_ACCOUNTING + "/SoftLimit"
static final String XMLPATH_HARDLIMIT = XMLPATH_ACCOUNTING + "/HardLimit"
static final String XMLPATH_PREPAIDINTERVAL = XMLPATH_ACCOUNTING + "/PrepaidInterval"
static final String XMLPATH_SETTLEINTERVAL = XMLPATH_ACCOUNTING + "/SettleInterval"
static final String XMLPATH_PAYMENT_INSTANCE = XMLPATH_ACCOUNTING + "/PaymentInstance"
static final String XMLPATH_PI_HOST = XMLPATH_PAYMENT_INSTANCE + "/Network/ListenerInterfaces/ListenerInterface/Host"
static final String XMLPATH_PI_PORT = XMLPATH_PAYMENT_INSTANCE + "/Network/ListenerInterfaces/ListenerInterface/Port"
static final String XMLPATH_PI_CERT = XMLPATH_PAYMENT_INSTANCE + "/Certificate"
static final String XMLPATH_PRICE_CERT = XMLPATH_ACCOUNTING + "/PriceCertificate"
static final String XMLPATH_DATABASE = XMLPATH_ACCOUNTING + "/Database"
static final String XMLPATH_DATABASE_HOST = XMLPATH_DATABASE + "/Host"
static final String XMLPATH_DATABASE_PORT = XMLPATH_DATABASE + "/Port"
static final String XMLPATH_DATABASE_NAME = XMLPATH_DATABASE + "/DBName"
static final String XMLPATH_DATABASE_USERNAME = XMLPATH_DATABASE + "/Username"
static final String XMLPATH_DATABASE_PASSWORD = XMLPATH_DATABASE + "/Password"
static final String XML_ATTRIBUTE_ID = "id"
static final String FILESYSTEM_PATH_PI_CERT = "certificates/Payment_Instance.cer"

Protected Member Functions

void enableComponents ()

Private Member Functions

boolean isPaymentEnabled ()

Private Attributes

PriceCertPanel m_panelPriceCert
CertPanel m_panelJPICert
TitledGridBagPanel m_panelJPI
MixConfigTextField m_tfJPIHost
JAPJIntField m_tfJPIPort
TitledGridBagPanel m_panelDatabase
MixConfigTextField m_tfDatabaseHost
JAPJIntField m_tfDatabasePort
MixConfigTextField m_tfDatabaseName
MixConfigTextField m_tfDatabaseUsername
JPasswordField m_pwfDatabasePassword
TitledGridBagPanel m_panelGeneral
JAPJIntField m_tfSoftLimit
JAPJIntField m_tfHardLimit
JAPJIntField m_tfPrepaidInterval
JAPJIntField m_tfSettleInterval

Static Private Attributes

static final int VISIBLE_PASSWORD_LENGTH = 15


Detailed Description

The PaymentPanel is one page in the MixConfig TabbedPane and allows the user to specify the data which is needed for the mix to successfully use payment, namely the JPI Host/Port, and the Postgresql Database Host/Port/DBName/Username.

Author:
Bastian Voigt

ronin <ronin2@web.de>

Tobias Bayer

Johannes Renner


Constructor & Destructor Documentation

mixconfig.panels.PaymentPanel.PaymentPanel (  )  throws IOException

Constructor

Exceptions:
IOException 

References mixconfig.panels.PriceCertPanel.addChangeListener(), mixconfig.panels.CertPanel.addChangeListener(), mixconfig.panels.MixConfigPanel.getInitialConstraints(), mixconfig.panels.PaymentPanel.m_panelDatabase, mixconfig.panels.PaymentPanel.m_panelGeneral, mixconfig.panels.PaymentPanel.m_panelJPI, mixconfig.panels.PaymentPanel.m_panelJPICert, mixconfig.panels.PaymentPanel.m_panelPriceCert, mixconfig.panels.PaymentPanel.m_pwfDatabasePassword, mixconfig.panels.PaymentPanel.m_tfDatabaseHost, mixconfig.panels.PaymentPanel.m_tfDatabaseName, mixconfig.panels.PaymentPanel.m_tfDatabasePort, mixconfig.panels.PaymentPanel.m_tfDatabaseUsername, mixconfig.panels.PaymentPanel.m_tfHardLimit, mixconfig.panels.PaymentPanel.m_tfJPIHost, mixconfig.panels.PaymentPanel.m_tfJPIPort, mixconfig.panels.PaymentPanel.m_tfPrepaidInterval, mixconfig.panels.PaymentPanel.m_tfSettleInterval, mixconfig.panels.PaymentPanel.m_tfSoftLimit, mixconfig.panels.MixConfigPanel.setEnabled(), mixconfig.panels.PaymentPanel.VISIBLE_PASSWORD_LENGTH, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_HOST, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_NAME, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_PASSWORD, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_PORT, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_USERNAME, mixconfig.panels.PaymentPanel.XMLPATH_HARDLIMIT, mixconfig.panels.PaymentPanel.XMLPATH_PI_CERT, mixconfig.panels.PaymentPanel.XMLPATH_PI_HOST, mixconfig.panels.PaymentPanel.XMLPATH_PI_PORT, mixconfig.panels.PaymentPanel.XMLPATH_PREPAIDINTERVAL, mixconfig.panels.PaymentPanel.XMLPATH_SETTLEINTERVAL, and mixconfig.panels.PaymentPanel.XMLPATH_SOFTLIMIT.


Member Function Documentation

boolean mixconfig.panels.PaymentPanel.isPaymentEnabled (  )  [private]

Check the 'payment'-attribute in the Mix Type element of the configuration

Returns:
true if payment is enabled, false if attribute is set to false or not existing

References mixconfig.MixConfiguration.getAttributeValue(), and mixconfig.panels.MixConfigPanel.getConfiguration().

Referenced by mixconfig.panels.PaymentPanel.setConfiguration(), and mixconfig.panels.PaymentPanel.stateChanged().

void mixconfig.panels.PaymentPanel.enableComponents (  )  [protected, virtual]

void mixconfig.panels.PaymentPanel.setConfiguration ( MixConfiguration  a_mixConf  )  throws IOException

Informs the panel about a new Mix configuration and makes it load the attribute values from the configuration object into the text fields, combo boxes etc.

Parameters:
a_mixConf The new configuration
Exceptions:
IOException If an error occurs while transferring the data

Reimplemented from mixconfig.panels.MixConfigPanel.

References mixconfig.panels.PaymentPanel.enableComponents(), mixconfig.panels.PaymentPanel.isPaymentEnabled(), mixconfig.panels.MixConfigPanel.setAutoSaveEnabled(), and mixconfig.panels.MixConfigPanel.setEnabled().

void mixconfig.panels.PaymentPanel.stateChanged ( ChangeEvent  e  ) 

String mixconfig.panels.PaymentPanel.getHelpContext (  ) 

Vector<String> mixconfig.panels.PaymentPanel.check (  )  [virtual]

Container mixconfig.panels.PaymentPanel.getHelpExtractionDisplayContext (  ) 


Member Data Documentation

final String mixconfig.panels.PaymentPanel.XMLPATH_ACCOUNTING = "Accounting" [static]

final String mixconfig.panels.PaymentPanel.XMLPATH_PREPAIDINTERVAL = XMLPATH_ACCOUNTING + "/PrepaidInterval" [static]

final String mixconfig.panels.PaymentPanel.XMLPATH_SETTLEINTERVAL = XMLPATH_ACCOUNTING + "/SettleInterval" [static]

final String mixconfig.panels.PaymentPanel.XMLPATH_PAYMENT_INSTANCE = XMLPATH_ACCOUNTING + "/PaymentInstance" [static]

final String mixconfig.panels.PaymentPanel.XMLPATH_PI_HOST = XMLPATH_PAYMENT_INSTANCE + "/Network/ListenerInterfaces/ListenerInterface/Host" [static]

final String mixconfig.panels.PaymentPanel.XMLPATH_PI_PORT = XMLPATH_PAYMENT_INSTANCE + "/Network/ListenerInterfaces/ListenerInterface/Port" [static]

final String mixconfig.panels.PaymentPanel.XMLPATH_PRICE_CERT = XMLPATH_ACCOUNTING + "/PriceCertificate" [static]

final String mixconfig.panels.PaymentPanel.XML_ATTRIBUTE_ID = "id" [static]

final String mixconfig.panels.PaymentPanel.FILESYSTEM_PATH_PI_CERT = "certificates/Payment_Instance.cer" [static]

TitledGridBagPanel mixconfig.panels.PaymentPanel.m_panelJPI [private]

MixConfigTextField mixconfig.panels.PaymentPanel.m_tfJPIHost [private]

TitledGridBagPanel mixconfig.panels.PaymentPanel.m_panelDatabase [private]

MixConfigTextField mixconfig.panels.PaymentPanel.m_tfDatabaseHost [private]

MixConfigTextField mixconfig.panels.PaymentPanel.m_tfDatabaseName [private]

TitledGridBagPanel mixconfig.panels.PaymentPanel.m_panelGeneral [private]


The documentation for this class was generated from the following file:

Generated on Mon Nov 16 23:24:48 2009 for MixConfig by  doxygen 1.5.6