
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 |
This window allows user to create new filter
| cern::laser::guiplatform::windows::filter::SingleFilterItem::SingleFilterItem | ( | ) | [inline] |
Creates new form SingleFilterItem
References initComponents(), initializeComponents(), and postInit().
| void cern::laser::guiplatform::windows::filter::SingleFilterItem::addButtonActionPerformed | ( | java.awt.event.ActionEvent | evt | ) | [inline, private] |
References cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::addFilter(), filterExplorer, cern::laser::client::services::selection::Filter::getOperator(), cern::laser::client::services::selection::Filter::getProperty(), cern::laser::client::services::selection::Filter::getValue(), isInUpdateMode, logger, name, oldName, oldOperator, oldValue, cern::laser::guiplatform::windows::filter::CreatedFiltersExplorer::removeFilter(), resetPanel(), cern::laser::client::services::selection::Filter::validate(), and value.
Referenced by initComponents().
| boolean cern::laser::guiplatform::windows::filter::SingleFilterItem::enableAddButton | ( | ) | [inline, private] |
This method checks if add button can be enabled
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] |
| 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.
| 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)
| 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.
| 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().
javax.swing.JButton cern::laser::guiplatform::windows::filter::SingleFilterItem::addButton [private] |
Referenced by initComponents(), initializeComponents(), nameActionPerformed(), nameKeyReleased(), reload(), resetPanel(), setInUpdateMode(), and valueKeyReleased().
CreatedFiltersExplorer cern::laser::guiplatform::windows::filter::SingleFilterItem::filterExplorer = null [private] |
created filters explorer, this variable is used when user wants to add new filter to created filters list
Referenced by addButtonActionPerformed(), and setFitlerExplorer().
boolean cern::laser::guiplatform::windows::filter::SingleFilterItem::isInUpdateMode = false [private] |
Referenced by addButtonActionPerformed(), resetPanel(), and setInUpdateMode().
final Logger cern::laser::guiplatform::windows::filter::SingleFilterItem::logger [static, package] |
LogFactory.getLogger(SingleFilterItem.class.getName())
logger
Referenced by addButtonActionPerformed(), and reload().
javax.swing.JComboBox cern::laser::guiplatform::windows::filter::SingleFilterItem::name [private] |
Referenced by addButtonActionPerformed(), enableAddButton(), initComponents(), initializeComponents(), nameKeyReleased(), postInit(), and resetPanel().
javax.swing.JLabel cern::laser::guiplatform::windows::filter::SingleFilterItem::nameLabel [private] |
Referenced by initComponents().
String cern::laser::guiplatform::windows::filter::SingleFilterItem::oldName = "" [private] |
old name
Referenced by addButtonActionPerformed(), setInUpdateMode(), and setMode().
String cern::laser::guiplatform::windows::filter::SingleFilterItem::oldOperator = "" [private] |
Referenced by addButtonActionPerformed(), setInUpdateMode(), and setMode().
String cern::laser::guiplatform::windows::filter::SingleFilterItem::oldValue = "" [private] |
Referenced by addButtonActionPerformed(), setInUpdateMode(), and setMode().
javax.swing.JComboBox cern::laser::guiplatform::windows::filter::SingleFilterItem::operator [private] |
javax.swing.JLabel cern::laser::guiplatform::windows::filter::SingleFilterItem::operatorLabel [private] |
Referenced by initComponents().
javax.swing.JTextField cern::laser::guiplatform::windows::filter::SingleFilterItem::value [private] |
Referenced by addButtonActionPerformed(), enableAddButton(), initComponents(), nameKeyReleased(), and resetPanel().
javax.swing.JLabel cern::laser::guiplatform::windows::filter::SingleFilterItem::valueLabel [private] |
Referenced by initComponents().
1.6.2