alma::acs::logging::dialogs::main::LogToolBar Class Reference

Inheritance diagram for alma::acs::logging::dialogs::main::LogToolBar:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::dialogs::main::LogToolBar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LogToolBar (LogTypeHelper initialLogLvl, LogTypeHelper intialDiscardLvl)
void setEventHandler (ActionListener listener)
JComboBox getDiscardLevelCB ()
JComboBox getLogLevelCB ()
JButton getClearLogsBtn ()
JButton getPauseBtn ()
JButton getFiltersBtn ()
JButton getZoomBtn ()
boolean clickPauseBtn ()
boolean pause ()
boolean unpause ()
void setEnabled (boolean enabled)
boolean isPaused ()
void setZoomable (boolean zoomable)

Static Public Attributes

static final String pauseStr = "<HTML><FONT size=-2>Pause</FONT>"
static final String playStr = "<HTML><FONT size=-2>Play</FONT>"

Private Member Functions

void setupToolBar ()

Private Attributes

JComboBox logLevelCB
JComboBox discardLevelCB
JButton pauseBtn
boolean pauseBtnPaused
ImageIcon pauseIcon
ImageIcon playIcon
JButton clearLogsBtn
JButton filtersBtn
JButton zoomBtn
LogTypeHelper initialDiscardLevel
LogTypeHelper initialLogLevel

Detailed Description

The toolbar of the main window

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::logging::dialogs::main::LogToolBar::LogToolBar ( LogTypeHelper  initialLogLvl,
LogTypeHelper  intialDiscardLvl 
) [inline]

Constructor

Parameters:
initialLogLvl The initial log level to set in the CB
intialDiscardLvl The initial discard level to set in the COB

References initialDiscardLevel, initialLogLevel, and setupToolBar().


Member Function Documentation

boolean alma::acs::logging::dialogs::main::LogToolBar::clickPauseBtn (  )  [inline]

The pause has been pressed Change the test and icon in the button.

Returns:
true if the button is in pause

References getPauseBtn(), pauseBtnPaused, pauseIcon, pauseStr, playIcon, and playStr.

Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed().

JButton alma::acs::logging::dialogs::main::LogToolBar::getClearLogsBtn (  )  [inline]
Returns:
The button to clear the logs

References clearLogsBtn.

Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), and setupToolBar().

JComboBox alma::acs::logging::dialogs::main::LogToolBar::getDiscardLevelCB (  )  [inline]
JButton alma::acs::logging::dialogs::main::LogToolBar::getFiltersBtn (  )  [inline]
JComboBox alma::acs::logging::dialogs::main::LogToolBar::getLogLevelCB (  )  [inline]
JButton alma::acs::logging::dialogs::main::LogToolBar::getPauseBtn (  )  [inline]
JButton alma::acs::logging::dialogs::main::LogToolBar::getZoomBtn (  )  [inline]
Returns:
The zoom button

References zoomBtn.

Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), and setupToolBar().

boolean alma::acs::logging::dialogs::main::LogToolBar::isPaused (  )  [inline]
boolean alma::acs::logging::dialogs::main::LogToolBar::pause (  )  [inline]

Set the play/pause button in pause mode

Returns:
The status of the button previous of the command (true means pasused)

References getPauseBtn(), pauseBtnPaused, playIcon, and playStr.

Referenced by com::cosylab::logging::LoggingClient::pause().

void alma::acs::logging::dialogs::main::LogToolBar::setEnabled ( boolean  enabled  )  [inline]

Enable/Disable all the control in the GUI than can cause the invalidation of the logs

Parameters:
enabled If true the controls are enabled

References clearLogsBtn, filtersBtn, getDiscardLevelCB(), getLogLevelCB(), and pauseBtn.

Referenced by com::cosylab::logging::LoggingClient::errorAcknowledged(), com::cosylab::logging::LoggingClient::setEnabled(), and com::cosylab::logging::LoggingClient::showErrorMessage().

void alma::acs::logging::dialogs::main::LogToolBar::setEventHandler ( ActionListener  listener  )  [inline]

Set the event handler for the widgets in the toolbar

Parameters:
listener The action listener

References clearLogsBtn, discardLevelCB, filtersBtn, logLevelCB, pauseBtn, and zoomBtn.

Referenced by com::cosylab::logging::LoggingClient::initConnections().

void alma::acs::logging::dialogs::main::LogToolBar::setupToolBar (  )  [inline, private]
void alma::acs::logging::dialogs::main::LogToolBar::setZoomable ( boolean  zoomable  )  [inline]

Set the state of the zoom button

Parameters:
zoomable If true the zoom button is enabled.

References zoomBtn.

Referenced by com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), and com::cosylab::logging::LoggingClient::initialize().

boolean alma::acs::logging::dialogs::main::LogToolBar::unpause (  )  [inline]

Unpause the play/pause button

Returns:
The status of the button previous of the command (true means pasused)

References getPauseBtn(), pauseBtnPaused, pauseIcon, and pauseStr.

Referenced by com::cosylab::logging::LoggingClient::resume().


Member Data Documentation

The button to delete the logs

Referenced by getClearLogsBtn(), setEnabled(), and setEventHandler().

The ComboBox with the discard level in the toolbar (the logs with a level lower then what is shown in this ComboBox are discarded when read from the NC)

Referenced by getDiscardLevelCB(), setEventHandler(), and setupToolBar().

The button to manage filters

Referenced by getFiltersBtn(), setEnabled(), and setEventHandler().

The initial discard level

Referenced by getDiscardLevelCB(), and LogToolBar().

The initial log level

Referenced by getLogLevelCB(), and LogToolBar().

The ComboBox in the toolbar and its default value (i.e. the log level at startup

Referenced by getLogLevelCB(), setEventHandler(), and setupToolBar().

Referenced by clickPauseBtn(), getPauseBtn(), and unpause().

final String alma::acs::logging::dialogs::main::LogToolBar::pauseStr = "<HTML><FONT size=-2>Pause</FONT>" [static]

Referenced by clickPauseBtn(), getPauseBtn(), and unpause().

Referenced by clickPauseBtn(), getPauseBtn(), and pause().

final String alma::acs::logging::dialogs::main::LogToolBar::playStr = "<HTML><FONT size=-2>Play</FONT>" [static]

Referenced by clickPauseBtn(), and pause().

The button for zooming

Referenced by getZoomBtn(), setEventHandler(), and setZoomable().


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

Generated by  doxygen 1.6.2