

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") |
The panel to select the log level of the named loggers
| alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::LogLevelSelectorPanel | ( | LoggingConfigurableOperations | configurable, | |
| String | name | |||
| ) | throws LogLvlSelNotSupportedException [inline] |
Constructor
| 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 |
| LogLvlSelNotSupportedException | If the configurable does not support selection |
References actionPerformed(), allGlobalCB, allLocalCB, applyBtn, editorGlobal, editorLocal, initialize(), and logConf.
| void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::actionPerformed | ( | ActionEvent | e | ) | [inline] |
References allGlobalCB, allLocalCB, applyBtn, applyChanges(), defaultBtn, refresh(), refreshBtn, alma::acs::gui::loglevel::leveldlg::LogLevelModel::setAllToCommonLevels(), alma::acs::gui::loglevel::leveldlg::LogLevelModel::setCommonGlobalLevel(), alma::acs::gui::loglevel::leveldlg::LogLevelModel::setCommonLocalLevel(), and table.
Referenced by LogLevelSelectorPanel().
| void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::applyChanges | ( | ) | [inline, private] |
Apply the changes to the log levels, if any
References allGlobalCB, allLocalCB, applyBtn, alma::acs::gui::loglevel::leveldlg::LogLevelModel::changesApplied(), si::ijs::maci::LoggingConfigurableOperations::get_default_logLevels(), alma::acs::gui::loglevel::leveldlg::LogLevelModel::getLevels(), logConf, model, si::ijs::maci::LoggingConfigurableOperations::set_default_logLevels(), si::ijs::maci::LoggingConfigurableOperations::set_logLevels(), updateMinLevels(), and si::ijs::maci::LoggingConfigurablePackage::LogLevels::useDefault.
Referenced by actionPerformed(), and refresh().
| LogTypeHelper alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::getMinGlobalLevel | ( | ) | [inline, private] |
| LogTypeHelper alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::getMinLocalLevel | ( | ) | [inline, private] |
| LogTypeHelper alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::getMinLogLevel | ( | boolean | isLocal | ) | [inline, private] |
Get the minimum log level among the loggers
| isLocal | true for local log level, false for global log 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
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
| 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)
| 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
References minGlobal, minLocal, and updateMinLevels().
Referenced by initialize().
| LogLevelHelper [] alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::loggersLbl | ( | ) | throws Exception [inline, private] |
set the labels of the logger names
References si::ijs::maci::LoggingConfigurableOperations::get_logger_names(), si::ijs::maci::LoggingConfigurableOperations::get_logLevels(), and logConf.
Referenced by getMinLogLevel(), initLogLevelsPanel(), and refresh().
| void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::refresh | ( | ) | [inline] |
Refresh the list, to see changes made by other operators
References applyBtn, applyChanges(), loggersLbl(), model, refreshAllLoggersPanel(), alma::acs::gui::loglevel::leveldlg::LogLevelModel::setLevels(), and userChangedLogLevels().
Referenced by actionPerformed().
| void alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::refreshAllLoggersPanel | ( | ) | [inline, private] |
References allGlobalCB, allLocalCB, si::ijs::maci::LoggingConfigurableOperations::get_default_logLevels(), logConf, si::ijs::maci::LoggingConfigurablePackage::LogLevels::minLogLevel, si::ijs::maci::LoggingConfigurablePackage::LogLevels::minLogLevelLocal, model, alma::acs::gui::loglevel::leveldlg::LogLevelModel::setCommonGlobalLevel(), and alma::acs::gui::loglevel::leveldlg::LogLevelModel::setCommonLocalLevel().
Referenced by initAllLoggersPanel(), and refresh().
| 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
References alma::acs::gui::loglevel::leveldlg::LogLevelModel::getLevels(), and model.
Referenced by alma::acs::gui::loglevel::leveldlg::ButtonTabComponent::TabButton::actionPerformed(), initLogLevelsPanel(), and refresh().
JComboBox alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::allGlobalCB [private] |
Referenced by actionPerformed(), applyChanges(), initAllLoggersPanel(), LogLevelSelectorPanel(), and refreshAllLoggersPanel().
JComboBox alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::allLocalCB [private] |
Referenced by actionPerformed(), applyChanges(), initAllLoggersPanel(), LogLevelSelectorPanel(), and refreshAllLoggersPanel().
JButton alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::applyBtn = new JButton("Apply") [private] |
Referenced by actionPerformed(), applyChanges(), initialize(), initLogLevelsPanel(), LogLevelSelectorPanel(), and refresh().
JButton alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::defaultBtn = new JButton("Reset all loggers to use default levels") [private] |
Referenced by actionPerformed(), and initAllLoggersPanel().
Referenced by initAllLoggersPanel(), and LogLevelSelectorPanel().
Referenced by initAllLoggersPanel(), and LogLevelSelectorPanel().
LoggingConfigurableOperations alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::logConf = null [private] |
Referenced by applyChanges(), loggersLbl(), LogLevelSelectorPanel(), and refreshAllLoggersPanel().
JLabel alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::minGlobal [private] |
Referenced by initMimimumLevelsPanel(), and updateMinLevels().
JLabel alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::minLocal [private] |
Referenced by initMimimumLevelsPanel(), and updateMinLevels().
Referenced by applyChanges(), initLogLevelsPanel(), refresh(), refreshAllLoggersPanel(), and userChangedLogLevels().
JButton alma::acs::gui::loglevel::leveldlg::LogLevelSelectorPanel::refreshBtn = new JButton("Refresh") [private] |
Referenced by actionPerformed(), and initialize().
Referenced by actionPerformed(), and initLogLevelsPanel().
1.6.2