

Public Member Functions | |
| LoadSwitchesPanel (LoggingClient client) | |
| void | checkControlsState () |
| boolean | clearLogs () |
| boolean | disconnectEngine () |
| void | execute () |
Private Member Functions | |
| void | initGUI () |
Private Attributes | |
| JCheckBox | clearLogsCB = null |
| JCheckBox | disconnectCB = null |
| LoggingClient | loggingClient = null |
The panel contains the checkboxes to clear the logs in the table and to disconnect.
It will be used in the panel to load logs (from URL, file or the database)
| alma::acs::logging::io::LoadSwitchesPanel::LoadSwitchesPanel | ( | LoggingClient | client | ) | [inline] |
Constructor
References initGUI(), and loggingClient.
| void alma::acs::logging::io::LoadSwitchesPanel::checkControlsState | ( | ) | [inline] |
Enable/disable the check boxes depending on the number of logs in the table and the connection status.
References clearLogsCB, disconnectCB, com::cosylab::logging::LoggingClient::getLCModel1(), com::cosylab::logging::LoggingClient::isConnected, and loggingClient.
Referenced by initGUI(), alma::acs::logging::archive::QueryDlg::setVisible(), and alma::acs::logging::archive::QueryDlg::submitQuery().
| boolean alma::acs::logging::io::LoadSwitchesPanel::clearLogs | ( | ) | [inline] |
References clearLogsCB.
| boolean alma::acs::logging::io::LoadSwitchesPanel::disconnectEngine | ( | ) | [inline] |
References disconnectCB.
| void alma::acs::logging::io::LoadSwitchesPanel::execute | ( | ) | [inline] |
Remove the logs from the table and disconnect the engine (if the checkboxes are selected).
References clearLogsCB, com::cosylab::logging::LoggingClient::connect(), disconnectCB, com::cosylab::logging::LoggingClient::getLCModel1(), and loggingClient.
Referenced by alma::acs::logging::io::LoadFileChooser::execute(), and alma::acs::logging::archive::QueryDlg::submitQuery().
| void alma::acs::logging::io::LoadSwitchesPanel::initGUI | ( | ) | [inline, private] |
Initialize the panel
References checkControlsState(), clearLogsCB, and disconnectCB.
Referenced by LoadSwitchesPanel().
JCheckBox alma::acs::logging::io::LoadSwitchesPanel::clearLogsCB = null [private] |
The check box to clear the logs before starting to load logs (enabled by default)
Referenced by checkControlsState(), clearLogs(), execute(), and initGUI().
JCheckBox alma::acs::logging::io::LoadSwitchesPanel::disconnectCB = null [private] |
The checkbox to disconnect before starting to load logs (enabled by default)
Referenced by checkControlsState(), disconnectEngine(), execute(), and initGUI().
LoggingClient alma::acs::logging::io::LoadSwitchesPanel::loggingClient = null [private] |
Referenced by checkControlsState(), execute(), and LoadSwitchesPanel().
1.6.2