alma::acs::logging::archive::QueryDlg Class Reference

Inheritance diagram for alma::acs::logging::archive::QueryDlg:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::archive::QueryDlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QueryDlg (ArchiveConnectionManager archiveConn, ACSRemoteLogListener listener, ACSRemoteErrorListener errorListener, LoggingClient client)
void actionPerformed (ActionEvent e)
void setVisible (boolean visible)
void close ()

Private Member Functions

void initGUI ()
JComboBox setupTypeCB (JComboBox box)
void submitQuery ()
boolean checkFields ()
String formatErrorMsg (String msg)
void updateStatusLbl (final String msg)

Private Attributes

ACSRemoteLogListener logListener
ACSRemoteErrorListener errorListener
JButton submitBtn
JButton doneBtn
ArchiveConnectionManager archive
JTextField fromYY
JTextField fromMM
JTextField fromDD
JTextField fromHr
JTextField fromMin
JTextField fromSec
JTextField toYY
JTextField toMM
JTextField toDD
JTextField toHr
JTextField toMin
JTextField toSec
JComboBox minLogLevelCB
JComboBox maxLogLevelCB
JTextField procName
JTextField sourceName
JTextField routineName
JTextField rowLimit
ACSLogParser parser = null
LoggingClient loggingClient = null
LoadSwitchesPanel guiSwitches
JLabel statusLbl = new JLabel()
volatile boolean terminateThread

Detailed Description

A class to setup a query to submit to the DB

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::logging::archive::QueryDlg::QueryDlg ( ArchiveConnectionManager  archiveConn,
ACSRemoteLogListener  listener,
ACSRemoteErrorListener  errorListener,
LoggingClient  client 
) [inline]

Constructor

References archive, initGUI(), loggingClient, logListener, parser, and setVisible().


Member Function Documentation

void alma::acs::logging::archive::QueryDlg::actionPerformed ( ActionEvent  e  )  [inline]
See also:
java.awt.event.ActionListener
java.awt.event.ActionEvent

References doneBtn, setVisible(), submitBtn, submitQuery(), and terminateThread.

boolean alma::acs::logging::archive::QueryDlg::checkFields (  )  [inline, private]

Check the fields in the GUI before executing a query. It makes only some checks...

Returns:
true if the vaules in the fields are ok

References fromDD, fromHr, fromMin, fromMM, fromSec, fromYY, rowLimit, toDD, toHr, toMin, toMM, toSec, and toYY.

Referenced by submitQuery().

void alma::acs::logging::archive::QueryDlg::close (  )  [inline]

Close the dialog, terminate the thread a free all the resources.

References setVisible(), and terminateThread.

Referenced by com::cosylab::logging::LoggingClient::close().

String alma::acs::logging::archive::QueryDlg::formatErrorMsg ( String  msg  )  [inline, private]

Return a string formatted for JOptionPane making a word wrap

Parameters:
error The error i.e. the exception
msg The message to show
Returns:
A formatted string

Referenced by submitQuery().

void alma::acs::logging::archive::QueryDlg::initGUI (  )  [inline, private]
JComboBox alma::acs::logging::archive::QueryDlg::setupTypeCB ( JComboBox  box  )  [inline, private]

Referenced by initGUI().

void alma::acs::logging::archive::QueryDlg::setVisible ( boolean  visible  )  [inline]

Override setVisible() to move the statistic window over the logging client and in front of other windows

References alma::acs::logging::io::LoadSwitchesPanel::checkControlsState(), guiSwitches, and loggingClient.

Referenced by actionPerformed(), com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), close(), and QueryDlg().

void alma::acs::logging::archive::QueryDlg::submitQuery (  )  [inline, private]
void alma::acs::logging::archive::QueryDlg::updateStatusLbl ( final String  msg  )  [inline, private]

Set a new message in the status label.

Parameters:
msg The message to show in the label

References statusLbl.

Referenced by submitQuery().


Member Data Documentation

Referenced by initGUI(), QueryDlg(), and submitQuery().

Referenced by actionPerformed(), and initGUI().

Referenced by submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by initGUI(), setVisible(), and submitQuery().

Referenced by QueryDlg(), and submitQuery().

Referenced by initGUI(), and submitQuery().

Referenced by initGUI(), and submitQuery().

Referenced by QueryDlg(), and submitQuery().

Referenced by initGUI(), and submitQuery().

Referenced by initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by initGUI(), and submitQuery().

JLabel alma::acs::logging::archive::QueryDlg::statusLbl = new JLabel() [private]

The label showing the status of a query to give feedback to users

Referenced by initGUI(), and updateStatusLbl().

Referenced by actionPerformed(), and initGUI().

Signal the thread that get logs from the DB that the user pressed cancel to abort

Referenced by actionPerformed(), close(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().

Referenced by checkFields(), initGUI(), and submitQuery().


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

Generated by  doxygen 1.6.2