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

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

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


Member Function Documentation

void alma::acs::logging::archive::QueryDlg::actionPerformed ActionEvent  e  )  [inline]
 

See also:
java.awt.event.ActionListener

java.awt.event.ActionEvent

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

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

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

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

void alma::acs::logging::archive::QueryDlg::initGUI  )  [inline, private]
 

Build the GUI

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

Override 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

void alma::acs::logging::archive::QueryDlg::submitQuery  )  [inline, private]
 

Submit a query to the archive and insert the logs in the main window

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


Member Data Documentation

ArchiveConnectionManager alma::acs::logging::archive::QueryDlg::archive [private]
 

JButton alma::acs::logging::archive::QueryDlg::doneBtn [private]
 

ACSRemoteErrorListener alma::acs::logging::archive::QueryDlg::errorListener [private]
 

JTextField alma::acs::logging::archive::QueryDlg::fromDD [private]
 

JTextField alma::acs::logging::archive::QueryDlg::fromHr [private]
 

JTextField alma::acs::logging::archive::QueryDlg::fromMin [private]
 

JTextField alma::acs::logging::archive::QueryDlg::fromMM [private]
 

JTextField alma::acs::logging::archive::QueryDlg::fromSec [private]
 

JTextField alma::acs::logging::archive::QueryDlg::fromYY [private]
 

LoadSwitchesPanel alma::acs::logging::archive::QueryDlg::guiSwitches [private]
 

LoggingClient alma::acs::logging::archive::QueryDlg::loggingClient = null [private]
 

ACSRemoteLogListener alma::acs::logging::archive::QueryDlg::logListener [private]
 

JComboBox alma::acs::logging::archive::QueryDlg::maxLogLevelCB [private]
 

JComboBox alma::acs::logging::archive::QueryDlg::minLogLevelCB [private]
 

ACSLogParser alma::acs::logging::archive::QueryDlg::parser = null [private]
 

JTextField alma::acs::logging::archive::QueryDlg::procName [private]
 

JTextField alma::acs::logging::archive::QueryDlg::routineName [private]
 

JTextField alma::acs::logging::archive::QueryDlg::rowLimit [private]
 

JTextField alma::acs::logging::archive::QueryDlg::sourceName [private]
 

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

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

JButton alma::acs::logging::archive::QueryDlg::submitBtn [private]
 

volatile boolean alma::acs::logging::archive::QueryDlg::terminateThread [private]
 

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

JTextField alma::acs::logging::archive::QueryDlg::toDD [private]
 

JTextField alma::acs::logging::archive::QueryDlg::toHr [private]
 

JTextField alma::acs::logging::archive::QueryDlg::toMin [private]
 

JTextField alma::acs::logging::archive::QueryDlg::toMM [private]
 

JTextField alma::acs::logging::archive::QueryDlg::toSec [private]
 

JTextField alma::acs::logging::archive::QueryDlg::toYY [private]
 


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