Public Member Functions | |
Vector< String > | check () |
String | getHelpContext () |
Component | getHelpExtractionDisplayContext () |
void | keyTyped (KeyEvent e) |
void | keyPressed (KeyEvent e) |
void | keyReleased (KeyEvent e) |
void | actionPerformed (ActionEvent e) |
void | load () throws IOException |
void | save () throws IOException |
void | itemStateChanged (ItemEvent ie) |
void | focusGained (FocusEvent e) |
void | focusLost (FocusEvent e) |
Static Public Member Functions | |
static LogCrimePanel | get () |
Protected Member Functions | |
LogCrimePanel () | |
void | enableComponents () |
Package Functions | |
void | placeComponents () |
Private Member Functions | |
void | initComponents () |
void | initGlobalPanel () |
void | exportCert () |
void | addInput (int panelIndex) |
void | removeSelectedParameter (int panelIndex) |
void | updateParameterBox (String newItem, int boxIndex) |
boolean | checkRegExp (String regExp) |
boolean | checkIP (String ip) |
void | saveAfterAction () |
void | save (Element a_configElement) throws IOException |
Static Private Member Functions | |
static JPanel | createSurveillanceParameterPanel (String nameKey, JComboBox parameters, JButton removeButton, JTextComponent inputComponent, JButton addButton) |
Private Attributes | |
JPanel | globalPanel |
JCheckBox | payloadLoggingCheckBox |
JButton | m_btnImport |
JButton | m_btnExport |
JButton[] | addButtons |
JButton[] | removeButtons |
JComboBox[] | parameterBoxes |
JTextComponent[] | inputComponents |
JPanel[] | surveillanceParameterPanels |
DataRetentionPanel | dataRetentionPanel |
InputChecker[] | inputChecker |
Static Private Attributes | |
static final String | MSG_CRIME_TITLE = LogCrimePanel.class.getName() + "_title" |
static final String | MSG_GLOBAL_PARAMS = LogCrimePanel.class.getName() + "_globalParams" |
static final String | MSG_LOG_PAYLOAD = LogCrimePanel.class.getName() + "_logPayload" |
static final String | MSG_URL_PANEL_NAME = LogCrimePanel.class.getName() + "_urlPanelName" |
static final String | MSG_PAYLOAD_PANEL_NAME = LogCrimePanel.class.getName() + "_payloadPanelName" |
static final String | MSG_IP_PANEL_NAME = LogCrimePanel.class.getName() + "_ipPanelName" |
static final String | MSG_INVALID_REGEXP = LogCrimePanel.class.getName() + "_invalidRegExp" |
static final String | MSG_INVALID_IP = LogCrimePanel.class.getName() + "_invalidIP" |
static final String | MSG_CHOOSE_LOAD_METHOD = LogCrimePanel.class.getName() + "_chooseLoadMethod" |
static final String | MSG_CHOOSE_SAVE_METHOD = LogCrimePanel.class.getName() + "_chooseSaveMethod" |
static final String | XML_ELEMENT_CRIME_DETECTION = "CrimeDetection" |
static final String | XML_ELEMENT_REG_EXP_URL = "RegExpURL" |
static final String | XML_ELEMENT_REG_EXP_PAYLOAD = "RegExpPayload" |
static final String | XML_ELEMENT_SURVEILLANCE_IP = "SurveillanceIP" |
static final String | XML_ATTR_LOG_PAYLOAD = "logPayload" |
static final int | URL_PANEL = 0 |
static final int | PAYLOAD_PANEL = 1 |
static final int | IP_PANEL = 2 |
static final int | PANELS = 3 |
static final int | ADD = 0 |
static final int | REMOVE = 1 |
static final String[] | XML_ELEMENT_NAMES |
static final String[] | PANEL_NAME_KEYS |
static final String[] | PANEL_INPUT_ERROR_KEYS |
static LogCrimePanel | panelSingleton = null |
Classes | |
interface | InputChecker |
mixconfig.panels.LogCrimePanel.LogCrimePanel | ( | ) | [protected] |
static LogCrimePanel mixconfig.panels.LogCrimePanel.get | ( | ) | [static] |
void mixconfig.panels.LogCrimePanel.initComponents | ( | ) | [private] |
References mixconfig.panels.LogCrimePanel.addButtons, mixconfig.panels.LogCrimePanel.checkIP(), mixconfig.panels.LogCrimePanel.checkRegExp(), mixconfig.panels.LogCrimePanel.createSurveillanceParameterPanel(), mixconfig.panels.LogCrimePanel.dataRetentionPanel, mixconfig.panels.LogCrimePanel.initGlobalPanel(), mixconfig.panels.LogCrimePanel.inputChecker, mixconfig.panels.LogCrimePanel.inputComponents, mixconfig.panels.LogCrimePanel.IP_PANEL, mixconfig.panels.LogCrimePanel.PANEL_NAME_KEYS, mixconfig.panels.LogCrimePanel.PANELS, mixconfig.panels.LogCrimePanel.parameterBoxes, mixconfig.panels.LogCrimePanel.removeButtons, and mixconfig.panels.LogCrimePanel.surveillanceParameterPanels.
Referenced by mixconfig.panels.LogCrimePanel.LogCrimePanel().
void mixconfig.panels.LogCrimePanel.placeComponents | ( | ) | [package] |
Vector<String> mixconfig.panels.LogCrimePanel.check | ( | ) | [virtual] |
Check the panel for inconsistencies and return a java.util.Vector
object containing possible warnings and error messages
Implements mixconfig.panels.MixConfigPanel.
void mixconfig.panels.LogCrimePanel.enableComponents | ( | ) | [protected, virtual] |
Enables used and disables unused components. Some configuration values are mutually exclusive; the panels must ensure that of two components corresponding to contradictory attributes, only one at a time is enabled.
Implements mixconfig.panels.MixConfigPanel.
References mixconfig.panels.LogCrimePanel.addButtons, mixconfig.panels.LogCrimePanel.inputChecker, mixconfig.panels.LogCrimePanel.inputComponents, mixconfig.panels.LogCrimePanel.parameterBoxes, and mixconfig.panels.LogCrimePanel.removeButtons.
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed(), mixconfig.panels.LogCrimePanel.itemStateChanged(), mixconfig.panels.LogCrimePanel.keyReleased(), and mixconfig.panels.LogCrimePanel.LogCrimePanel().
String mixconfig.panels.LogCrimePanel.getHelpContext | ( | ) |
Component mixconfig.panels.LogCrimePanel.getHelpExtractionDisplayContext | ( | ) |
void mixconfig.panels.LogCrimePanel.initGlobalPanel | ( | ) | [private] |
References mixconfig.panels.LogCrimePanel.globalPanel, mixconfig.panels.LogCrimePanel.m_btnExport, mixconfig.panels.LogCrimePanel.m_btnImport, mixconfig.panels.LogCrimePanel.MSG_GLOBAL_PARAMS, mixconfig.panels.LogCrimePanel.MSG_LOG_PAYLOAD, and mixconfig.panels.LogCrimePanel.payloadLoggingCheckBox.
Referenced by mixconfig.panels.LogCrimePanel.initComponents().
static JPanel mixconfig.panels.LogCrimePanel.createSurveillanceParameterPanel | ( | String | nameKey, | |
JComboBox | parameters, | |||
JButton | removeButton, | |||
JTextComponent | inputComponent, | |||
JButton | addButton | |||
) | [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.initComponents().
void mixconfig.panels.LogCrimePanel.keyTyped | ( | KeyEvent | e | ) |
void mixconfig.panels.LogCrimePanel.keyPressed | ( | KeyEvent | e | ) |
void mixconfig.panels.LogCrimePanel.keyReleased | ( | KeyEvent | e | ) |
void mixconfig.panels.LogCrimePanel.actionPerformed | ( | ActionEvent | e | ) |
References mixconfig.panels.LogCrimePanel.ADD, mixconfig.panels.LogCrimePanel.addButtons, mixconfig.panels.LogCrimePanel.addInput(), mixconfig.panels.LogCrimePanel.enableComponents(), mixconfig.panels.LogCrimePanel.exportCert(), mixconfig.panels.ChooseStorageMethodPane.isMethodFile(), mixconfig.panels.LogCrimePanel.load(), mixconfig.panels.LogCrimePanel.m_btnExport, mixconfig.panels.LogCrimePanel.m_btnImport, mixconfig.panels.LogCrimePanel.MSG_CHOOSE_LOAD_METHOD, mixconfig.panels.LogCrimePanel.payloadLoggingCheckBox, mixconfig.panels.LogCrimePanel.REMOVE, mixconfig.panels.LogCrimePanel.removeButtons, mixconfig.panels.LogCrimePanel.removeSelectedParameter(), mixconfig.panels.LogCrimePanel.save(), mixconfig.panels.LogCrimePanel.saveAfterAction(), and mixconfig.panels.LogCrimePanel.XML_ELEMENT_CRIME_DETECTION.
void mixconfig.panels.LogCrimePanel.exportCert | ( | ) | [private] |
References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.panels.ChooseStorageMethodPane.isMethodFile(), mixconfig.panels.LogCrimePanel.MSG_CHOOSE_SAVE_METHOD, mixconfig.panels.LogCrimePanel.save(), and mixconfig.panels.LogCrimePanel.XML_ELEMENT_CRIME_DETECTION.
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed().
void mixconfig.panels.LogCrimePanel.addInput | ( | int | panelIndex | ) | [private] |
void mixconfig.panels.LogCrimePanel.removeSelectedParameter | ( | int | panelIndex | ) | [private] |
References mixconfig.panels.LogCrimePanel.parameterBoxes.
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed().
void mixconfig.panels.LogCrimePanel.updateParameterBox | ( | String | newItem, | |
int | boxIndex | |||
) | [private] |
References mixconfig.panels.LogCrimePanel.parameterBoxes.
Referenced by mixconfig.panels.LogCrimePanel.addInput(), and mixconfig.panels.LogCrimePanel.load().
boolean mixconfig.panels.LogCrimePanel.checkRegExp | ( | String | regExp | ) | [private] |
Referenced by mixconfig.panels.LogCrimePanel.initComponents().
boolean mixconfig.panels.LogCrimePanel.checkIP | ( | String | ip | ) | [private] |
Referenced by mixconfig.panels.LogCrimePanel.initComponents().
void mixconfig.panels.LogCrimePanel.load | ( | ) | throws IOException |
Loads the attribute values from the configuration object into the panel's controls. This method iterates through all components of the panel and reads their names using the getName()
method. If the name is not null
, it retrieves the configuration attribute with the same name and sets the value of the component (text field, combo box etc.) according to the attribute value.
IOException | If loading an attribute from the configuration fails |
Reimplemented from mixconfig.panels.MixConfigPanel.
References mixconfig.panels.LogCrimePanel.dataRetentionPanel, mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.panels.LogCrimePanel.inputChecker, mixconfig.panels.LogCrimePanel.PANELS, mixconfig.panels.LogCrimePanel.payloadLoggingCheckBox, mixconfig.panels.LogCrimePanel.updateParameterBox(), mixconfig.panels.LogCrimePanel.XML_ATTR_LOG_PAYLOAD, mixconfig.panels.LogCrimePanel.XML_ELEMENT_CRIME_DETECTION, and mixconfig.panels.LogCrimePanel.XML_ELEMENT_NAMES.
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed().
void mixconfig.panels.LogCrimePanel.saveAfterAction | ( | ) | [private] |
References mixconfig.panels.LogCrimePanel.save().
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed().
void mixconfig.panels.LogCrimePanel.save | ( | ) | throws IOException |
Saves the attribute values from the panel's controls (text fields, combo boxes etc.) to the configuration object. This method iterates through all components of the panel and reads their names using the getName()
method. If the name is not null
, it retrieves the configuration attribute with the same name and sets the attribute value to the value of the component.
IOException | If saving a value to the configuration fails |
Reimplemented from mixconfig.panels.MixConfigPanel.
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed(), mixconfig.panels.LogCrimePanel.exportCert(), and mixconfig.panels.LogCrimePanel.saveAfterAction().
void mixconfig.panels.LogCrimePanel.save | ( | Element | a_configElement | ) | throws IOException [private] |
References mixconfig.panels.MixConfigPanel.getConfiguration(), mixconfig.MixConfiguration.getDocument(), mixconfig.panels.LogCrimePanel.PANELS, mixconfig.panels.LogCrimePanel.parameterBoxes, mixconfig.panels.LogCrimePanel.payloadLoggingCheckBox, mixconfig.panels.LogCrimePanel.XML_ATTR_LOG_PAYLOAD, mixconfig.panels.LogCrimePanel.XML_ELEMENT_CRIME_DETECTION, and mixconfig.panels.LogCrimePanel.XML_ELEMENT_NAMES.
void mixconfig.panels.LogCrimePanel.itemStateChanged | ( | ItemEvent | ie | ) |
Reimplemented from mixconfig.panels.MixConfigPanel.
References mixconfig.panels.LogCrimePanel.enableComponents().
void mixconfig.panels.LogCrimePanel.focusGained | ( | FocusEvent | e | ) |
Reimplemented from mixconfig.panels.MixConfigPanel.
void mixconfig.panels.LogCrimePanel.focusLost | ( | FocusEvent | e | ) |
Reimplemented from mixconfig.panels.MixConfigPanel.
final String mixconfig.panels.LogCrimePanel.MSG_CRIME_TITLE = LogCrimePanel.class.getName() + "_title" [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.LogCrimePanel().
final String mixconfig.panels.LogCrimePanel.MSG_GLOBAL_PARAMS = LogCrimePanel.class.getName() + "_globalParams" [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.initGlobalPanel().
final String mixconfig.panels.LogCrimePanel.MSG_LOG_PAYLOAD = LogCrimePanel.class.getName() + "_logPayload" [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.initGlobalPanel().
final String mixconfig.panels.LogCrimePanel.MSG_URL_PANEL_NAME = LogCrimePanel.class.getName() + "_urlPanelName" [static, private] |
final String mixconfig.panels.LogCrimePanel.MSG_PAYLOAD_PANEL_NAME = LogCrimePanel.class.getName() + "_payloadPanelName" [static, private] |
final String mixconfig.panels.LogCrimePanel.MSG_IP_PANEL_NAME = LogCrimePanel.class.getName() + "_ipPanelName" [static, private] |
final String mixconfig.panels.LogCrimePanel.MSG_INVALID_REGEXP = LogCrimePanel.class.getName() + "_invalidRegExp" [static, private] |
final String mixconfig.panels.LogCrimePanel.MSG_INVALID_IP = LogCrimePanel.class.getName() + "_invalidIP" [static, private] |
final String mixconfig.panels.LogCrimePanel.MSG_CHOOSE_LOAD_METHOD = LogCrimePanel.class.getName() + "_chooseLoadMethod" [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed().
final String mixconfig.panels.LogCrimePanel.MSG_CHOOSE_SAVE_METHOD = LogCrimePanel.class.getName() + "_chooseSaveMethod" [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.exportCert().
final String mixconfig.panels.LogCrimePanel.XML_ELEMENT_CRIME_DETECTION = "CrimeDetection" [static, private] |
final String mixconfig.panels.LogCrimePanel.XML_ELEMENT_REG_EXP_URL = "RegExpURL" [static, private] |
final String mixconfig.panels.LogCrimePanel.XML_ELEMENT_REG_EXP_PAYLOAD = "RegExpPayload" [static, private] |
final String mixconfig.panels.LogCrimePanel.XML_ELEMENT_SURVEILLANCE_IP = "SurveillanceIP" [static, private] |
final String mixconfig.panels.LogCrimePanel.XML_ATTR_LOG_PAYLOAD = "logPayload" [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.load(), and mixconfig.panels.LogCrimePanel.save().
final int mixconfig.panels.LogCrimePanel.URL_PANEL = 0 [static, private] |
final int mixconfig.panels.LogCrimePanel.PAYLOAD_PANEL = 1 [static, private] |
final int mixconfig.panels.LogCrimePanel.IP_PANEL = 2 [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.initComponents().
final int mixconfig.panels.LogCrimePanel.PANELS = 3 [static, private] |
final int mixconfig.panels.LogCrimePanel.ADD = 0 [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed().
final int mixconfig.panels.LogCrimePanel.REMOVE = 1 [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.actionPerformed().
final String [] mixconfig.panels.LogCrimePanel.XML_ELEMENT_NAMES [static, private] |
Initial value:
Referenced by mixconfig.panels.LogCrimePanel.load(), and mixconfig.panels.LogCrimePanel.save().
final String [] mixconfig.panels.LogCrimePanel.PANEL_NAME_KEYS [static, private] |
Initial value:
new String[]{MSG_URL_PANEL_NAME, MSG_PAYLOAD_PANEL_NAME, MSG_IP_PANEL_NAME}
Referenced by mixconfig.panels.LogCrimePanel.initComponents().
final String [] mixconfig.panels.LogCrimePanel.PANEL_INPUT_ERROR_KEYS [static, private] |
Initial value:
new String[]{MSG_INVALID_REGEXP, MSG_INVALID_REGEXP, MSG_INVALID_IP}
Referenced by mixconfig.panels.LogCrimePanel.addInput().
JPanel mixconfig.panels.LogCrimePanel.globalPanel [private] |
JCheckBox mixconfig.panels.LogCrimePanel.payloadLoggingCheckBox [private] |
JButton mixconfig.panels.LogCrimePanel.m_btnImport [private] |
JButton mixconfig.panels.LogCrimePanel.m_btnExport [private] |
JButton [] mixconfig.panels.LogCrimePanel.addButtons [private] |
JButton [] mixconfig.panels.LogCrimePanel.removeButtons [private] |
JComboBox [] mixconfig.panels.LogCrimePanel.parameterBoxes [private] |
JTextComponent [] mixconfig.panels.LogCrimePanel.inputComponents [private] |
JPanel [] mixconfig.panels.LogCrimePanel.surveillanceParameterPanels [private] |
InputChecker [] mixconfig.panels.LogCrimePanel.inputChecker [private] |
LogCrimePanel mixconfig.panels.LogCrimePanel.panelSingleton = null [static, private] |
Referenced by mixconfig.panels.LogCrimePanel.get().