mixconfig.panels.LogCrimePanel Class Reference

Inherits mixconfig::panels::MixConfigPanel, java::awt::event::ActionListener, and java::awt::event::KeyListener.

List of all members.

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


Constructor & Destructor Documentation

mixconfig.panels.LogCrimePanel.LogCrimePanel (  )  [protected]


Member Function Documentation

static LogCrimePanel mixconfig.panels.LogCrimePanel.get (  )  [static]

void mixconfig.panels.LogCrimePanel.initComponents (  )  [private]

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

Returns:
Possible error and warning messages

Implements mixconfig.panels.MixConfigPanel.

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

String mixconfig.panels.LogCrimePanel.getHelpContext (  ) 

Component mixconfig.panels.LogCrimePanel.getHelpExtractionDisplayContext (  ) 

void mixconfig.panels.LogCrimePanel.initGlobalPanel (  )  [private]

static JPanel mixconfig.panels.LogCrimePanel.createSurveillanceParameterPanel ( String  nameKey,
JComboBox  parameters,
JButton  removeButton,
JTextComponent  inputComponent,
JButton  addButton 
) [static, private]

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  ) 

void mixconfig.panels.LogCrimePanel.exportCert (  )  [private]

void mixconfig.panels.LogCrimePanel.addInput ( int  panelIndex  )  [private]

void mixconfig.panels.LogCrimePanel.removeSelectedParameter ( int  panelIndex  )  [private]

void mixconfig.panels.LogCrimePanel.updateParameterBox ( String  newItem,
int  boxIndex 
) [private]

boolean mixconfig.panels.LogCrimePanel.checkRegExp ( String  regExp  )  [private]

boolean mixconfig.panels.LogCrimePanel.checkIP ( String  ip  )  [private]

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.

Exceptions:
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]

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.

Exceptions:
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]

void mixconfig.panels.LogCrimePanel.itemStateChanged ( ItemEvent  ie  ) 

void mixconfig.panels.LogCrimePanel.focusGained ( FocusEvent  e  ) 

Reimplemented from mixconfig.panels.MixConfigPanel.

void mixconfig.panels.LogCrimePanel.focusLost ( FocusEvent  e  ) 

Reimplemented from mixconfig.panels.MixConfigPanel.


Member Data Documentation

final String mixconfig.panels.LogCrimePanel.MSG_CRIME_TITLE = LogCrimePanel.class.getName() + "_title" [static, private]

final String mixconfig.panels.LogCrimePanel.MSG_GLOBAL_PARAMS = LogCrimePanel.class.getName() + "_globalParams" [static, private]

final String mixconfig.panels.LogCrimePanel.MSG_LOG_PAYLOAD = LogCrimePanel.class.getName() + "_logPayload" [static, private]

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]

final String mixconfig.panels.LogCrimePanel.MSG_CHOOSE_SAVE_METHOD = LogCrimePanel.class.getName() + "_chooseSaveMethod" [static, private]

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]

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]

final int mixconfig.panels.LogCrimePanel.PANELS = 3 [static, private]

final int mixconfig.panels.LogCrimePanel.ADD = 0 [static, private]

final int mixconfig.panels.LogCrimePanel.REMOVE = 1 [static, private]

final String [] mixconfig.panels.LogCrimePanel.XML_ELEMENT_NAMES [static, private]

final String [] mixconfig.panels.LogCrimePanel.PANEL_NAME_KEYS [static, private]

final String [] mixconfig.panels.LogCrimePanel.PANEL_INPUT_ERROR_KEYS [static, 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