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

alma::acsplugins::alarmsystem::gui::toolbar::Toolbar Class Reference

Collaboration diagram for alma::acsplugins::alarmsystem::gui::toolbar::Toolbar:

Collaboration graph
[legend]
List of all members.

Public Types

enum  ComboBoxValues {
  None, INACTIVE, Priority, PRIORITY_3,
  Priority, PRIORITY_2, Priority, tit = 00,
  width = tit new JLabel(tit) normalRenderer.getFont() fnt.deriveFont(fnt.getSize()*80/100) new JLabel(tit) val.normalRenderer.getFont() val.normalRenderer.getFontMetrics(f) fm.getHeight()+5 fm.charsWidth(val.title.toCharArray(), 0, val.title.length())+10 new Dimension(ComboBoxValues.getWidth(),ComboBoxValues.getHeight()) height width
}

Public Member Functions

 Toolbar (AlarmTableModel model, boolean reduce, AlarmPanel panel)
void actionPerformed (ActionEvent e)
void updatePauseBtn (boolean paused)

Package Types


Private Member Functions

void initialize (boolean reduce)

Private Attributes

final AlarmPanel alarmPanel
JComboBox autoAckLevelCB = new JComboBox(ComboBoxValues.values())
ImageIcon activeReductionIcon
ImageIcon inactiveReductionIcon
JToggleButton reductionRulesBtn
ImageIcon pausedIcon = new ImageIcon(Toolbar.class.getResource(AlarmGUIType.iconFolder+"play.png"))
ImageIcon notPausedIcon = new ImageIcon(Toolbar.class.getResource(AlarmGUIType.iconFolder+"pause.png"))
JButton pauseBtn = new JButton("Pause",notPausedIcon)
JLabel autoAckLbl = new JLabel("Auto ack: ")
AlarmTableModel model

Detailed Description

The toolbar for the alarm panel

Author:
acaproni


Member Enumeration Documentation

enum alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::ComboBoxValues
 

The values shown in the ComboBox. It contains the labels to use as renderer for each cell. One label is for the normal situation and the second one is used when the cell has focus (inverted colors)

Author:
acaproni
Enumeration values:
None 
INACTIVE 
Priority 
PRIORITY_3 
Priority 
PRIORITY_2 
Priority 
tit  Constructor

Parameters:
title 
color 
width  Set the width (static fields can't be called directly by the constructor)

Parameters:
width The new width


Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::Toolbar AlarmTableModel  model,
boolean  reduce,
AlarmPanel  panel
[inline]
 

Constructor

Parameters:
model The table model
reduce true if the reduction rules are applied at startup
panel The panel showing the toolbar


Member Function Documentation

void alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::actionPerformed ActionEvent  e  )  [inline]
 

See also:
ActionListener

void alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::initialize boolean  reduce  )  [inline, private]
 

Initialize the toolbar

Parameters:
<code>true</code> if the reduction rules are applied at startup

void alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::updatePauseBtn boolean  paused  )  [inline]
 

Update the state of the pause button depending on the state paused/unpaused of the application

This method is not called directly by actionPerformed when the button is pressed. It is executed when the application is started/paused.

Parameters:
paused true if the application is paused


Member Data Documentation

ImageIcon alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::activeReductionIcon [private]
 

The icon shown in the button when reduction is active

final AlarmPanel alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::alarmPanel [private]
 

The panel showing the toolbar

JLabel alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::autoAckLbl = new JLabel("Auto ack: ") [private]
 

The label box for auto-acknowledgement of alarms

JComboBox alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::autoAckLevelCB = new JComboBox(ComboBoxValues.values()) [private]
 

The combo box for auto-acknowledgment of alarms

ImageIcon alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::inactiveReductionIcon [private]
 

The icon shown in the button when reduction is inactive

AlarmTableModel alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::model [private]
 

ImageIcon alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::notPausedIcon = new ImageIcon(Toolbar.class.getResource(AlarmGUIType.iconFolder+"pause.png")) [private]
 

The icon shown by pauseBtn when the application is not paused

JButton alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::pauseBtn = new JButton("Pause",notPausedIcon) [private]
 

The button to pause/unpause the application

ImageIcon alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::pausedIcon = new ImageIcon(Toolbar.class.getResource(AlarmGUIType.iconFolder+"play.png")) [private]
 

The icon shown by pauseBtn when the application is paused

JToggleButton alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::reductionRulesBtn [private]
 

The check box to activate/deactivate the reduction of alarms


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