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 |
mixconfig.panels.PaymentPanel.PaymentPanel | ( | ) | throws IOException |
Constructor
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.
boolean mixconfig.panels.PaymentPanel.isPaymentEnabled | ( | ) | [private] |
Check the 'payment'-attribute in the Mix Type element of the configuration
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] |
Enable or disable the single components of this panel
Implements mixconfig.panels.MixConfigPanel.
References mixconfig.panels.MixConfigPanel.getConfiguration(), 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.MixConfiguration.MIXTYPE_FIRST, mixconfig.panels.CertPanel.setEnabled(), and mixconfig.panels.PriceCertPanel.setEnabled().
Referenced by mixconfig.panels.PaymentPanel.setConfiguration(), and mixconfig.panels.PaymentPanel.stateChanged().
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.
a_mixConf | The new configuration |
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 | ) |
References mixconfig.MixConfiguration.addAccounting(), mixconfig.panels.PaymentPanel.enableComponents(), mixconfig.panels.CertPanel.getCert(), mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.ConfigurationEvent.getModifiedXMLPath(), mixconfig.MixConfiguration.isAccountingNodePresent(), mixconfig.panels.PaymentPanel.isPaymentEnabled(), mixconfig.panels.MixConfigPanel.load(), mixconfig.MixConfiguration.removeAttribute(), mixconfig.panels.MixConfigPanel.save(), mixconfig.MixConfiguration.setAttribute(), mixconfig.panels.MixConfigPanel.setEnabled(), mixconfig.panels.PaymentPanel.XML_ATTRIBUTE_ID, and mixconfig.panels.PaymentPanel.XMLPATH_PAYMENT_INSTANCE.
String mixconfig.panels.PaymentPanel.getHelpContext | ( | ) |
Vector<String> mixconfig.panels.PaymentPanel.check | ( | ) | [virtual] |
Check this panel for validity
Implements mixconfig.panels.MixConfigPanel.
References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.panels.PaymentPanel.m_panelDatabase, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_HOST, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_NAME, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_PORT, mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_USERNAME, 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_PRICE_CERT, and mixconfig.panels.PaymentPanel.XMLPATH_SETTLEINTERVAL.
Container mixconfig.panels.PaymentPanel.getHelpExtractionDisplayContext | ( | ) |
final String mixconfig.panels.PaymentPanel.XMLPATH_ACCOUNTING = "Accounting" [static] |
final String mixconfig.panels.PaymentPanel.XMLPATH_SOFTLIMIT = XMLPATH_ACCOUNTING + "/SoftLimit" [static] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_HARDLIMIT = XMLPATH_ACCOUNTING + "/HardLimit" [static] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_PREPAIDINTERVAL = XMLPATH_ACCOUNTING + "/PrepaidInterval" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_SETTLEINTERVAL = XMLPATH_ACCOUNTING + "/SettleInterval" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_PAYMENT_INSTANCE = XMLPATH_ACCOUNTING + "/PaymentInstance" [static] |
Referenced by mixconfig.panels.PaymentPanel.stateChanged().
final String mixconfig.panels.PaymentPanel.XMLPATH_PI_HOST = XMLPATH_PAYMENT_INSTANCE + "/Network/ListenerInterfaces/ListenerInterface/Host" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_PI_PORT = XMLPATH_PAYMENT_INSTANCE + "/Network/ListenerInterfaces/ListenerInterface/Port" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_PI_CERT = XMLPATH_PAYMENT_INSTANCE + "/Certificate" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_PRICE_CERT = XMLPATH_ACCOUNTING + "/PriceCertificate" [static] |
Referenced by mixconfig.panels.PaymentPanel.check().
final String mixconfig.panels.PaymentPanel.XMLPATH_DATABASE = XMLPATH_ACCOUNTING + "/Database" [static] |
final String mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_HOST = XMLPATH_DATABASE + "/Host" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_PORT = XMLPATH_DATABASE + "/Port" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_NAME = XMLPATH_DATABASE + "/DBName" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_USERNAME = XMLPATH_DATABASE + "/Username" [static] |
Referenced by mixconfig.panels.PaymentPanel.check(), and mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XMLPATH_DATABASE_PASSWORD = XMLPATH_DATABASE + "/Password" [static] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
final String mixconfig.panels.PaymentPanel.XML_ATTRIBUTE_ID = "id" [static] |
Referenced by mixconfig.panels.PaymentPanel.stateChanged().
final String mixconfig.panels.PaymentPanel.FILESYSTEM_PATH_PI_CERT = "certificates/Payment_Instance.cer" [static] |
final int mixconfig.panels.PaymentPanel.VISIBLE_PASSWORD_LENGTH = 15 [static, private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
TitledGridBagPanel mixconfig.panels.PaymentPanel.m_panelJPI [private] |
MixConfigTextField mixconfig.panels.PaymentPanel.m_tfJPIHost [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
JAPJIntField mixconfig.panels.PaymentPanel.m_tfJPIPort [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
TitledGridBagPanel mixconfig.panels.PaymentPanel.m_panelDatabase [private] |
MixConfigTextField mixconfig.panels.PaymentPanel.m_tfDatabaseHost [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
JAPJIntField mixconfig.panels.PaymentPanel.m_tfDatabasePort [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
MixConfigTextField mixconfig.panels.PaymentPanel.m_tfDatabaseName [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
MixConfigTextField mixconfig.panels.PaymentPanel.m_tfDatabaseUsername [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
JPasswordField mixconfig.panels.PaymentPanel.m_pwfDatabasePassword [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
TitledGridBagPanel mixconfig.panels.PaymentPanel.m_panelGeneral [private] |
JAPJIntField mixconfig.panels.PaymentPanel.m_tfSoftLimit [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
JAPJIntField mixconfig.panels.PaymentPanel.m_tfHardLimit [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
JAPJIntField mixconfig.panels.PaymentPanel.m_tfPrepaidInterval [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
JAPJIntField mixconfig.panels.PaymentPanel.m_tfSettleInterval [private] |
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().