Public Member Functions | |
| PriceCertPanel (String name, String toolTip, XMLPriceCertificate priceCert) | |
| void | actionPerformed (ActionEvent a_e) |
| void | removeCert () |
| XMLPriceCertificate | getCert () |
| void | setCert (byte[] a_cert) |
| void | setCert (XMLPriceCertificate a_cert) |
| void | setEnabled (boolean enabled) |
| void | stateChanged (ChangeEvent event) |
| void | addChangeListener (ChangeListener a_listener) |
Static Public Attributes | |
| static final String | XMLPATH_PRICECERT = PaymentPanel.XMLPATH_ACCOUNTING+"/"+XMLPriceCertificate.XML_ELEMENT_NAME |
Private Member Functions | |
| boolean | importCert () throws IOException |
| void | showPrice (XMLPriceCertificate a_cert) |
| String | formatEuroCentValue (double centvalue) |
| void | clearPrice () |
| void | showError (String sMessage, String sToolTip) |
| void | enableButtons () |
| void | checkIDs () |
| void | fireStateChanged () |
Private Attributes | |
| XMLPriceCertificate | m_cert |
| Vector< ChangeListener > | m_changeListeners = new Vector<ChangeListener>() |
| JButton | m_bttnImport |
| JButton | m_bttnUpdate |
| JButton | m_bttnRemove |
| JLabel | m_rate |
Static Private Attributes | |
| static final String | MSG_CHOOSE_IMPORT_METHOD = PriceCertPanel.class.getName()+"_chooseImportMethod" |
| static final String | MSG_CONFIRM_DELETION = PriceCertPanel.class.getName() + "_confirmDeletion" |
Classes | |
| class | ChooseImportMethodPane |
Load and Store a price certificate as part of a MixConfiguration
| mixconfig.panels.PriceCertPanel.PriceCertPanel | ( | String | name, | |
| String | toolTip, | |||
| XMLPriceCertificate | priceCert | |||
| ) |
Constructor
| name | ||
| toolTip | ||
| priceCert |
References mixconfig.panels.PriceCertPanel.m_bttnImport, mixconfig.panels.PriceCertPanel.m_bttnRemove, mixconfig.panels.PriceCertPanel.m_bttnUpdate, mixconfig.panels.PriceCertPanel.m_cert, mixconfig.panels.PriceCertPanel.m_rate, and mixconfig.panels.PriceCertPanel.showPrice().
| void mixconfig.panels.PriceCertPanel.actionPerformed | ( | ActionEvent | a_e | ) |
Actions here:
References mixconfig.panels.PriceCertPanel.enableButtons(), mixconfig.panels.PriceCertPanel.fireStateChanged(), mixconfig.panels.PriceCertPanel.importCert(), mixconfig.panels.PriceCertPanel.m_bttnImport, mixconfig.panels.PriceCertPanel.m_bttnRemove, mixconfig.panels.PriceCertPanel.m_bttnUpdate, mixconfig.panels.PriceCertPanel.MSG_CONFIRM_DELETION, and mixconfig.panels.PriceCertPanel.removeCert().
| boolean mixconfig.panels.PriceCertPanel.importCert | ( | ) | throws IOException [private] |
Import an X.509 public certificate. The user is prompted to give the name of a file from which to import. If that fails, the user is prompted to paste the certificate from the system clipboard.
| IOException | If an error occurs while reading the certificate. |
References mixconfig.panels.PriceCertPanel.ChooseImportMethodPane.isMethodFile(), mixconfig.panels.PriceCertPanel.m_cert, mixconfig.panels.PriceCertPanel.MSG_CHOOSE_IMPORT_METHOD, and mixconfig.panels.PriceCertPanel.setCert().
Referenced by mixconfig.panels.PriceCertPanel.actionPerformed().
| void mixconfig.panels.PriceCertPanel.removeCert | ( | ) |
Remove certificate from this panel
References mixconfig.panels.PriceCertPanel.clearPrice(), mixconfig.panels.PriceCertPanel.fireStateChanged(), and mixconfig.panels.PriceCertPanel.m_cert.
Referenced by mixconfig.panels.PriceCertPanel.actionPerformed().
| XMLPriceCertificate mixconfig.panels.PriceCertPanel.getCert | ( | ) |
Return the price certificate that is currently maintained by this JPanel
References mixconfig.panels.PriceCertPanel.m_cert.
| void mixconfig.panels.PriceCertPanel.setCert | ( | byte[] | a_cert | ) |
Create and set the price certificate from a given byte array
| a_cert |
References mixconfig.panels.PriceCertPanel.m_cert, and mixconfig.panels.PriceCertPanel.showPrice().
Referenced by mixconfig.panels.PriceCertPanel.importCert().
| void mixconfig.panels.PriceCertPanel.setCert | ( | XMLPriceCertificate | a_cert | ) |
Set a given XMLPriceCertificate to this panel
| a_cert |
References mixconfig.panels.PriceCertPanel.m_cert, and mixconfig.panels.PriceCertPanel.showPrice().
| void mixconfig.panels.PriceCertPanel.showPrice | ( | XMLPriceCertificate | a_cert | ) | [private] |
References mixconfig.panels.PriceCertPanel.clearPrice(), mixconfig.panels.PriceCertPanel.formatEuroCentValue(), and mixconfig.panels.PriceCertPanel.m_rate.
Referenced by mixconfig.panels.PriceCertPanel.checkIDs(), mixconfig.panels.PriceCertPanel.PriceCertPanel(), and mixconfig.panels.PriceCertPanel.setCert().
| String mixconfig.panels.PriceCertPanel.formatEuroCentValue | ( | double | centvalue | ) | [private] |
Return a string representation of the price per megabyte
| centvalue |
Referenced by mixconfig.panels.PriceCertPanel.showPrice().
| void mixconfig.panels.PriceCertPanel.clearPrice | ( | ) | [private] |
References mixconfig.panels.PriceCertPanel.m_rate.
Referenced by mixconfig.panels.PriceCertPanel.removeCert(), and mixconfig.panels.PriceCertPanel.showPrice().
| void mixconfig.panels.PriceCertPanel.showError | ( | String | sMessage, | |
| String | sToolTip | |||
| ) | [private] |
References mixconfig.panels.PriceCertPanel.m_rate.
Referenced by mixconfig.panels.PriceCertPanel.checkIDs().
| void mixconfig.panels.PriceCertPanel.setEnabled | ( | boolean | enabled | ) |
References mixconfig.panels.PriceCertPanel.enableButtons().
Referenced by mixconfig.panels.PaymentPanel.enableComponents().
| void mixconfig.panels.PriceCertPanel.enableButtons | ( | ) | [private] |
Enables/disables the buttons according to this object's state. The buttons for creating and importing certificates are enabled if the stored certificate is null. Otherwise, the buttons for exporting and removing the certificate and for changing the password are enabled.
References mixconfig.panels.PriceCertPanel.m_bttnImport, mixconfig.panels.PriceCertPanel.m_bttnRemove, mixconfig.panels.PriceCertPanel.m_bttnUpdate, and mixconfig.panels.PriceCertPanel.m_cert.
Referenced by mixconfig.panels.PriceCertPanel.actionPerformed(), and mixconfig.panels.PriceCertPanel.setEnabled().
| void mixconfig.panels.PriceCertPanel.checkIDs | ( | ) | [private] |
Check if Mix-Cert and JPI-Cert go well with the Price-Cert
References mixconfig.panels.PriceCertPanel.m_cert, mixconfig.panels.PriceCertPanel.showError(), and mixconfig.panels.PriceCertPanel.showPrice().
Referenced by mixconfig.panels.PriceCertPanel.stateChanged().
| void mixconfig.panels.PriceCertPanel.stateChanged | ( | ChangeEvent | event | ) |
Listen to ChangeEvents
References mixconfig.panels.PriceCertPanel.checkIDs(), mixconfig.ConfigurationEvent.getModifiedXMLPath(), mixconfig.panels.PriceCertPanel.m_cert, and mixconfig.panels.PriceCertPanel.XMLPATH_PRICECERT.
Referenced by mixconfig.panels.PriceCertPanel.fireStateChanged().
| void mixconfig.panels.PriceCertPanel.addChangeListener | ( | ChangeListener | a_listener | ) |
References mixconfig.panels.PriceCertPanel.m_changeListeners.
Referenced by mixconfig.panels.PaymentPanel.PaymentPanel().
| void mixconfig.panels.PriceCertPanel.fireStateChanged | ( | ) | [private] |
final String mixconfig.panels.PriceCertPanel.XMLPATH_PRICECERT = PaymentPanel.XMLPATH_ACCOUNTING+"/"+XMLPriceCertificate.XML_ELEMENT_NAME [static] |
Referenced by mixconfig.panels.PriceCertPanel.stateChanged().
final String mixconfig.panels.PriceCertPanel.MSG_CHOOSE_IMPORT_METHOD = PriceCertPanel.class.getName()+"_chooseImportMethod" [static, private] |
Referenced by mixconfig.panels.PriceCertPanel.importCert().
final String mixconfig.panels.PriceCertPanel.MSG_CONFIRM_DELETION = PriceCertPanel.class.getName() + "_confirmDeletion" [static, private] |
Referenced by mixconfig.panels.PriceCertPanel.actionPerformed().
XMLPriceCertificate mixconfig.panels.PriceCertPanel.m_cert [private] |
Referenced by mixconfig.panels.PriceCertPanel.checkIDs(), mixconfig.panels.PriceCertPanel.enableButtons(), mixconfig.panels.PriceCertPanel.getCert(), mixconfig.panels.PriceCertPanel.importCert(), mixconfig.panels.PriceCertPanel.PriceCertPanel(), mixconfig.panels.PriceCertPanel.removeCert(), mixconfig.panels.PriceCertPanel.setCert(), and mixconfig.panels.PriceCertPanel.stateChanged().
Vector<ChangeListener> mixconfig.panels.PriceCertPanel.m_changeListeners = new Vector<ChangeListener>() [private] |
JButton mixconfig.panels.PriceCertPanel.m_bttnImport [private] |
JButton mixconfig.panels.PriceCertPanel.m_bttnUpdate [private] |
JButton mixconfig.panels.PriceCertPanel.m_bttnRemove [private] |
JLabel mixconfig.panels.PriceCertPanel.m_rate [private] |
1.5.6