Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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 ()
Override void setVisible (boolean b)
Override 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[Field.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


Member Function Documentation

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

void alma::acs::logging::errorbrowser::ErrorTab::close  )  [inline]
 

Release all the resource

void alma::acs::logging::errorbrowser::ErrorTab::initialize  )  [inline, private]
 

Init the GUI

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

Override 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.

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.


Member Data Documentation

TableColumn [] alma::acs::logging::errorbrowser::ErrorTab::columns = new TableColumn[Field.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

DetailedLogTable alma::acs::logging::errorbrowser::ErrorTab::detailedLogTable = new DetailedLogTable() [private]
 

The table with the details of the log

Engine alma::acs::logging::errorbrowser::ErrorTab::engine [private]
 

The worker thread to look for logs belonging to the error trace

FieldChooserDialog alma::acs::logging::errorbrowser::ErrorTab::fieldChooser = null [private]
 

The dialog to show the cols to display

LogEntryTableModelBase alma::acs::logging::errorbrowser::ErrorTab::model [private]
 

The table model

JPopupMenu alma::acs::logging::errorbrowser::ErrorTab::popmenu [private]
 

The popup menu to show the field chooser dialog

JTable alma::acs::logging::errorbrowser::ErrorTab::table = new JTable() [private]
 

The table of logs


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:52 2009 for ACS Java API by doxygen 1.3.8