Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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]
 

Creates new form SingleFilterItem


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

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.

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

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

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

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

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.

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

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

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

This sets explorer.

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

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

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

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


Member Data Documentation

javax.swing.JButton cern::laser::guiplatform::windows::filter::SingleFilterItem::addButton [private]
 

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

boolean cern::laser::guiplatform::windows::filter::SingleFilterItem::isInUpdateMode = false [private]
 

final Logger cern::laser::guiplatform::windows::filter::SingleFilterItem::logger [static, package]
 

Initial value:

LogFactory.getLogger(SingleFilterItem.class.getName())
logger

javax.swing.JComboBox cern::laser::guiplatform::windows::filter::SingleFilterItem::name [private]
 

javax.swing.JLabel cern::laser::guiplatform::windows::filter::SingleFilterItem::nameLabel [private]
 

String cern::laser::guiplatform::windows::filter::SingleFilterItem::oldName = "" [private]
 

old name

String cern::laser::guiplatform::windows::filter::SingleFilterItem::oldOperator = "" [private]
 

String cern::laser::guiplatform::windows::filter::SingleFilterItem::oldValue = "" [private]
 

javax.swing.JComboBox cern::laser::guiplatform::windows::filter::SingleFilterItem::operator [private]
 

javax.swing.JLabel cern::laser::guiplatform::windows::filter::SingleFilterItem::operatorLabel [private]
 

javax.swing.JTextField cern::laser::guiplatform::windows::filter::SingleFilterItem::value [private]
 

javax.swing.JLabel cern::laser::guiplatform::windows::filter::SingleFilterItem::valueLabel [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:09:43 2009 for ACS Java API by doxygen 1.3.8