

Public Member Functions | |
| ZoomPrefsDlg (LoggingClient logCli, ZoomManager manager) | |
| void | actionPerformed (ActionEvent e) |
| void | setVisible (boolean visible) |
Private Member Functions | |
| void | initialize () |
| JComboBox | buildLogLevelCB (LogTypeHelper initialLevel) |
| boolean | okPressed () |
| void | setupFolderLbl () |
Private Attributes | |
| final LoggingClient | loggingClient |
| final ZoomManager | zoomManager |
| JComboBox | minLevelCB |
| JComboBox | maxLevelCB |
| String | folder |
| JLabel | folderLbl = new JLabel() |
| JButton | folderBtn = new JButton("Change...") |
| JButton | okBtn = new JButton("Ok") |
| JButton | cancelBtn = new JButton("Cancel") |
The dialog to set preferences for zooming
| alma::acs::logging::archive::zoom::ZoomPrefsDlg::ZoomPrefsDlg | ( | LoggingClient | logCli, | |
| ZoomManager | manager | |||
| ) | [inline] |
Constructor
| logCli | The LoggingClient | |
| manager | The manager for zooming |
References folder, alma::acs::logging::archive::zoom::ZoomManager::getRepository(), initialize(), loggingClient, setVisible(), and zoomManager.
| void alma::acs::logging::archive::zoom::ZoomPrefsDlg::actionPerformed | ( | ActionEvent | e | ) | [inline] |
References cancelBtn, folder, folderBtn, okBtn, okPressed(), setupFolderLbl(), and setVisible().
| JComboBox alma::acs::logging::archive::zoom::ZoomPrefsDlg::buildLogLevelCB | ( | LogTypeHelper | initialLevel | ) | [inline, private] |
Build a log level combobox.
| initialLevel | The initial log level |
Referenced by initialize().
| void alma::acs::logging::archive::zoom::ZoomPrefsDlg::initialize | ( | ) | [inline, private] |
Init the GUI
References buildLogLevelCB(), cancelBtn, folder, folderBtn, folderLbl, alma::acs::logging::archive::zoom::ZoomManager::getMaxLevel(), alma::acs::logging::archive::zoom::ZoomManager::getMinLevel(), maxLevelCB, minLevelCB, okBtn, setupFolderLbl(), and zoomManager.
Referenced by ZoomPrefsDlg().
| boolean alma::acs::logging::archive::zoom::ZoomPrefsDlg::okPressed | ( | ) | [inline, private] |
Read the values from the widgets and update the ZoomManager.
true if the values has been accepted References folder, alma::acs::logging::archive::zoom::ZoomManager::isAvailable(), maxLevelCB, minLevelCB, alma::acs::logging::archive::zoom::ZoomManager::setFilesRepository(), alma::acs::logging::archive::zoom::ZoomManager::setLevels(), and zoomManager.
Referenced by actionPerformed().
| void alma::acs::logging::archive::zoom::ZoomPrefsDlg::setupFolderLbl | ( | ) | [inline, private] |
Setup the content of the label depending on the parameter
| folder | The path of the folder of XML files (can be null) |
References folder, and folderLbl.
Referenced by actionPerformed(), and initialize().
| void alma::acs::logging::archive::zoom::ZoomPrefsDlg::setVisible | ( | boolean | visible | ) | [inline] |
Override setVisible() to move the dialog over the logging client and in front of other windows
References loggingClient.
Referenced by actionPerformed(), and ZoomPrefsDlg().
JButton alma::acs::logging::archive::zoom::ZoomPrefsDlg::cancelBtn = new JButton("Cancel") [private] |
The Cancel button
Referenced by actionPerformed(), and initialize().
String alma::acs::logging::archive::zoom::ZoomPrefsDlg::folder [private] |
The path of the folder to show in the label.
Referenced by actionPerformed(), initialize(), okPressed(), setupFolderLbl(), and ZoomPrefsDlg().
JButton alma::acs::logging::archive::zoom::ZoomPrefsDlg::folderBtn = new JButton("Change...") [private] |
The button to choose the folder of XML files of logs
Referenced by actionPerformed(), and initialize().
JLabel alma::acs::logging::archive::zoom::ZoomPrefsDlg::folderLbl = new JLabel() [private] |
The label with the folder of XML files of logs.
The content of the label is built from the value of folder.
Referenced by initialize(), and setupFolderLbl().
The logging client
Referenced by setVisible(), and ZoomPrefsDlg().
JComboBox alma::acs::logging::archive::zoom::ZoomPrefsDlg::maxLevelCB [private] |
The combobox to choose maximum log level while zooming (inclusive)
Referenced by initialize(), and okPressed().
JComboBox alma::acs::logging::archive::zoom::ZoomPrefsDlg::minLevelCB [private] |
The combobox to choose minimum log level while zooming (inclusive)
Referenced by initialize(), and okPressed().
JButton alma::acs::logging::archive::zoom::ZoomPrefsDlg::okBtn = new JButton("Ok") [private] |
The OK button
Referenced by actionPerformed(), and initialize().
The manager for zooming
Referenced by initialize(), okPressed(), and ZoomPrefsDlg().
1.6.2