cern::laser::guiplatform::windows::filter::SingleFilterItem Class Reference

Collaboration diagram for cern::laser::guiplatform::windows::filter::SingleFilterItem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SingleFilterItem ()
void resetPanel ()
void setFitlerExplorer (CreatedFiltersExplorer explorer)
void reload (String name, String operator, String value, String buttonName)
void setInUpdateMode (String name, String operator, String value, String buttonName)
void setMode (String name, String operator, String value)

Static Package Attributes

static final Logger logger

Private Member Functions

void initComponents ()
void valueKeyReleased (java.awt.event.KeyEvent evt)
void nameKeyReleased (java.awt.event.KeyEvent evt)
void nameActionPerformed (java.awt.event.ActionEvent evt)
void addButtonActionPerformed (java.awt.event.ActionEvent evt)
void initializeComponents ()
boolean enableAddButton ()
void postInit ()

Private Attributes

javax.swing.JButton addButton
javax.swing.JComboBox name
javax.swing.JLabel nameLabel
javax.swing.JComboBox operator
javax.swing.JLabel operatorLabel
javax.swing.JTextField value
javax.swing.JLabel valueLabel
String oldName = ""
String oldOperator = ""
String oldValue = ""
boolean isInUpdateMode = false
CreatedFiltersExplorer filterExplorer = null

Detailed Description

This window allows user to create new filter

Author:
pawlowsk

Constructor & Destructor Documentation

cern::laser::guiplatform::windows::filter::SingleFilterItem::SingleFilterItem (  )  [inline]

Member Function Documentation

void cern::laser::guiplatform::windows::filter::SingleFilterItem::addButtonActionPerformed ( java.awt.event.ActionEvent  evt  )  [inline, private]
boolean cern::laser::guiplatform::windows::filter::SingleFilterItem::enableAddButton (  )  [inline, private]

This method checks if add button can be enabled

Returns:
true if button can be enbled or false if can not

References name, and value.

Referenced by nameActionPerformed(), and valueKeyReleased().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::initComponents (  )  [inline, private]

This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.

References addButton, addButtonActionPerformed(), name, nameActionPerformed(), nameLabel, operatorLabel, value, valueKeyReleased(), and valueLabel.

Referenced by SingleFilterItem().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::initializeComponents (  )  [inline, private]

This method initializes components, that is fills combo boxes, fill ListTableExplorer, etc

References addButton, and name.

Referenced by SingleFilterItem().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::nameActionPerformed ( java.awt.event.ActionEvent  evt  )  [inline, private]

References addButton, and enableAddButton().

Referenced by initComponents().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::nameKeyReleased ( java.awt.event.KeyEvent  evt  )  [inline, private]

References addButton, name, and value.

Referenced by postInit().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::postInit (  )  [inline, private]

This method does post-initialization, for all components. This method is used instead of NetBeans post-init, because is easier to use.

References name, and nameKeyReleased().

Referenced by SingleFilterItem().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::reload ( String  name,
String  operator,
String  value,
String  buttonName 
) [inline]

This method reloads combo boxes and text field using new value

Parameters:
name name
operator operator
value value
buttonName name for button

References addButton, and logger.

void cern::laser::guiplatform::windows::filter::SingleFilterItem::resetPanel (  )  [inline]

This method resets this panel, that is, clears text filed and selects default items on chechboxes and disables add button

References addButton, isInUpdateMode, name, and value.

Referenced by addButtonActionPerformed(), cern::laser::guiplatform::windows::filter::CreateFiltersPanel::removeAllFilters(), and setMode().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::setFitlerExplorer ( CreatedFiltersExplorer  explorer  )  [inline]

This sets explorer.

Parameters:
explorer CreatedFiltersExplorer object, which stores list with created filters

References filterExplorer.

Referenced by cern::laser::guiplatform::windows::filter::CreateFiltersPanel::initComponents().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::setInUpdateMode ( String  name,
String  operator,
String  value,
String  buttonName 
) [inline]

This method sets this component in Update Filter mode (used when user wants to edit filter)

Parameters:
name name
operator operator
value value
buttonName name for button

References addButton, isInUpdateMode, oldName, oldOperator, and oldValue.

Referenced by cern::laser::guiplatform::windows::filter::CreateFiltersPanel::setInUpdateMode().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::setMode ( String  name,
String  operator,
String  value 
) [inline]

This method reset SingleFilterItem if fitler is edited and was deleted. Situation when user choose filter to edit and next deleted it. If deleted fitler is exactly this, which is currently edited SingleFilterItem is reset.

Parameters:
name name from filter which should be deleted
operator operator from filter which should be deleted
value value from filter which should be deleted

References oldName, oldOperator, oldValue, and resetPanel().

Referenced by cern::laser::guiplatform::windows::filter::CreateFiltersPanel::removeFilter().

void cern::laser::guiplatform::windows::filter::SingleFilterItem::valueKeyReleased ( java.awt.event.KeyEvent  evt  )  [inline, private]

References addButton, and enableAddButton().

Referenced by initComponents().


Member Data Documentation

created filters explorer, this variable is used when user wants to add new filter to created filters list

Referenced by addButtonActionPerformed(), and setFitlerExplorer().

Initial value:
 
        LogFactory.getLogger(SingleFilterItem.class.getName())

logger

Referenced by addButtonActionPerformed(), and reload().

Referenced by initComponents().

Referenced by initComponents().

Referenced by initComponents().


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

Generated by  doxygen 1.6.2