alma::acs::logging::errorbrowser::ErrorTab Class Reference

Inheritance diagram for alma::acs::logging::errorbrowser::ErrorTab:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::errorbrowser::ErrorTab:
Collaboration graph
[legend]

List of all members.

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]

Detailed Description

The component in each error tab of the error browser dialog

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::logging::errorbrowser::ErrorTab::ErrorTab ( LogEntryTableModelBase  sourceModel,
String  stackID 
) throws Exception [inline]

Constructor

Parameters:
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.


Member Function Documentation

void alma::acs::logging::errorbrowser::ErrorTab::actionPerformed ( ActionEvent  e  )  [inline]

References showFieldChooser().

void alma::acs::logging::errorbrowser::ErrorTab::close (  )  [inline]
void alma::acs::logging::errorbrowser::ErrorTab::initialize (  )  [inline, private]
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.

Parameters:
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]

Member Data Documentation

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().

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().

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().


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

Generated by  doxygen 1.6.2