

Public Member Functions | |
| ErrorTab (LogEntryTableModelBase sourceModel, String stackID) throws Exception | |
| void | close () |
| void | setVisible (boolean b) |
| void | actionPerformed (ActionEvent e) |
Private Member Functions | |
| void | initialize () |
| void | showFieldChooser () |
| void | setupTableCols (boolean[] cols) |
Private Attributes | |
| Engine | engine |
| DetailedLogTable | detailedLogTable = new DetailedLogTable() |
| FieldChooserDialog | fieldChooser = null |
| JTable | table = new JTable() |
| LogEntryTableModelBase | model |
| JPopupMenu | popmenu |
| TableColumn[] | columns = new TableColumn[LogField.values().length] |
The component in each error tab of the error browser dialog
| alma::acs::logging::errorbrowser::ErrorTab::ErrorTab | ( | LogEntryTableModelBase | sourceModel, | |
| String | stackID | |||
| ) | throws Exception [inline] |
Constructor
| sourceModel | The model used by the engine to look for logs | |
| stackID | The STACKID of the logs in this error trace |
References engine, initialize(), model, and table.
| void alma::acs::logging::errorbrowser::ErrorTab::actionPerformed | ( | ActionEvent | e | ) | [inline] |
References showFieldChooser().
| void alma::acs::logging::errorbrowser::ErrorTab::close | ( | ) | [inline] |
Release all the resource
References alma::acs::logging::table::LogEntryTableModelBase::close(), alma::acs::logging::errorbrowser::Engine::close(), engine, fieldChooser, model, and setVisible().
Referenced by alma::acs::logging::errorbrowser::ErrorBrowserDlg::close().
| void alma::acs::logging::errorbrowser::ErrorTab::initialize | ( | ) | [inline, private] |
Init the GUI
References columns, detailedLogTable, alma::acs::logging::table::LogEntryTableModelBase::getVisibleLogEntry(), model, popmenu, setupTableCols(), and table.
Referenced by ErrorTab().
| void alma::acs::logging::errorbrowser::ErrorTab::setupTableCols | ( | boolean[] | cols | ) | [inline, private] |
Show or hide the the columns of the table.
The array of boolean has one entry for each column that is true if the column must be shown or false if such a column must be hidden.
The methods checks if a column is already shown (or hidden) before adding (or removing) a new column to the table.
The first column, i.e. the column showing if a log has additional data, is not considered here and is not part of the parameter.
| cols | The columns to show/hide |
References columns, and table.
Referenced by initialize(), and showFieldChooser().
| void alma::acs::logging::errorbrowser::ErrorTab::setVisible | ( | boolean | b | ) | [inline] |
Override setVisible to hide the field chooser dialog when the user closes the error browser dialog.
References fieldChooser, and com::cosylab::logging::settings::FieldChooserDialog::setVisible().
Referenced by close().
| void alma::acs::logging::errorbrowser::ErrorTab::showFieldChooser | ( | ) | [inline, private] |
Show the dialog to set the visible columns
The first time this class is called, the dialog is created.
References fieldChooser, com::cosylab::logging::settings::FieldChooserDialog::getChecked(), com::cosylab::logging::settings::FieldChooserDialog::setupFields(), setupTableCols(), com::cosylab::logging::settings::FieldChooserDialog::setVisible(), and table.
Referenced by actionPerformed().
TableColumn [] alma::acs::logging::errorbrowser::ErrorTab::columns = new TableColumn[LogField.values().length] [private] |
The columns shown by the table for each field of the log i.e. the array does not contain the column showing if there are additional data
Referenced by initialize(), and setupTableCols().
DetailedLogTable alma::acs::logging::errorbrowser::ErrorTab::detailedLogTable = new DetailedLogTable() [private] |
The table with the details of the log
Referenced by initialize().
The worker thread to look for logs belonging to the error trace
Referenced by close(), and ErrorTab().
The dialog to show the cols to display
Referenced by close(), setVisible(), and showFieldChooser().
The table model
Referenced by close(), ErrorTab(), and initialize().
JPopupMenu alma::acs::logging::errorbrowser::ErrorTab::popmenu [private] |
The popup menu to show the field chooser dialog
Referenced by initialize().
JTable alma::acs::logging::errorbrowser::ErrorTab::table = new JTable() [private] |
The table of logs
Referenced by ErrorTab(), initialize(), setupTableCols(), and showFieldChooser().
1.6.2