alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel Class Reference

Inheritance diagram for alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LogLevelSelectorPanel (LoggingConfigurableOperations configurable, String name) throws LogLvlSelNotSupportedException
void refresh ()
void actionPerformed (ActionEvent e)
boolean userChangedLogLevels ()

Public Attributes

LogTypeRenderer editorLocal
LogTypeRenderer editorGlobal

Private Member Functions

void initialize (String name) throws LogLvlSelNotSupportedException
JComponent initLogLevelsPanel () throws LogLvlSelNotSupportedException
LogLevelHelper[] loggersLbl () throws Exception
void applyChanges ()
LogTypeHelper getMinLocalLevel ()
LogTypeHelper getMinGlobalLevel ()
LogTypeHelper getMinLogLevel (boolean isLocal)
JPanel initAllLoggersPanel ()
void refreshAllLoggersPanel ()
JPanel initMimimumLevelsPanel ()
void updateMinLevels ()

Private Attributes

JButton applyBtn = new JButton("Apply")
JButton refreshBtn = new JButton("Refresh")
LoggingConfigurableOperations logConf = null
LogLevelTable table
LogLevelModel model
JComboBox allLocalCB
JComboBox allGlobalCB
JLabel minLocal
JLabel minGlobal
JButton defaultBtn = new JButton("Reset all loggers to use default levels")

Detailed Description

The panel to select the log level of the named loggers

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::LogLevelSelectorPanel ( LoggingConfigurableOperations  configurable,
String  name 
) throws LogLvlSelNotSupportedException [inline]

Constructor

Parameters:
owner The windo that owns this dialog (it can be null)
configurable The LoggingConfigurable whose log level the user wants to read or set
title The name of the configurable to add to the tile
Exceptions:
LogLvlSelNotSupportedException If the configurable does not support selection

References actionPerformed(), allGlobalCB, allLocalCB, applyBtn, editorGlobal, editorLocal, initialize(), and logConf.


Member Function Documentation

void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::actionPerformed ( ActionEvent  e  )  [inline]
void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::applyChanges (  )  [inline, private]
LogTypeHelper alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::getMinGlobalLevel (  )  [inline, private]
Returns:
the minimum level

References getMinLogLevel().

Referenced by updateMinLevels().

LogTypeHelper alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::getMinLocalLevel (  )  [inline, private]
Returns:
the mimimum level

References getMinLogLevel().

Referenced by updateMinLevels().

LogTypeHelper alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::getMinLogLevel ( boolean  isLocal  )  [inline, private]

Get the minimum log level among the loggers

Parameters:
isLocal true for local log level, false for global log level
Returns:
the minimum level

References loggersLbl().

Referenced by getMinGlobalLevel(), and getMinLocalLevel().

JPanel alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::initAllLoggersPanel (  )  [inline, private]

Setup the panel with the option for all the named loggers

Returns:

References allGlobalCB, allLocalCB, defaultBtn, editorGlobal, editorLocal, and refreshAllLoggersPanel().

Referenced by initialize().

void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::initialize ( String  name  )  throws LogLvlSelNotSupportedException [inline, private]

Init the GUI

Exceptions:
LogLvlSelNotSupportedException If the configurable does not support selection

References applyBtn, initAllLoggersPanel(), initLogLevelsPanel(), initMimimumLevelsPanel(), and refreshBtn.

Referenced by LogLevelSelectorPanel().

JComponent alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::initLogLevelsPanel (  )  throws LogLvlSelNotSupportedException [inline, private]

Initialize the log level panel (i.e. the table)

Returns:
The panel with the table of log levels
Exceptions:
LogLvlSelNotSupportedException If the configurable does not support selection

References applyBtn, loggersLbl(), model, table, and userChangedLogLevels().

Referenced by initialize().

JPanel alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::initMimimumLevelsPanel (  )  [inline, private]

Setup the panel to show mimimum levels

Returns:

References minGlobal, minLocal, and updateMinLevels().

Referenced by initialize().

LogLevelHelper [] alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::loggersLbl (  )  throws Exception [inline, private]
void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::refresh (  )  [inline]
void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::refreshAllLoggersPanel (  )  [inline, private]
void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::updateMinLevels (  )  [inline, private]

Updates the minimum log level panel

References getMinGlobalLevel(), getMinLocalLevel(), minGlobal, and minLocal.

Referenced by applyChanges(), and initMimimumLevelsPanel().

boolean alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::userChangedLogLevels (  )  [inline]

Check if the user changed one of the logger level

Returns:
true if the user changed at least one level

References alma::acs::gui::loglevel::leveldlg::LogLevelModel::getLevels(), and model.

Referenced by alma::acs::gui::loglevel::leveldlg::ButtonTabComponent::TabButton::actionPerformed(), initLogLevelsPanel(), and refresh().


Member Data Documentation

JButton alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::defaultBtn = new JButton("Reset all loggers to use default levels") [private]

Referenced by actionPerformed(), and initialize().


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

Generated by  doxygen 1.6.2