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

alma::acs::logging::table::LogEntryTable Class Reference

Collaboration diagram for alma::acs::logging::table::LogEntryTable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LogEntryTable (LoggingClient client, boolean initialDateFormat, boolean initalLogTypeFormat) throws Exception
org.w3c.dom.Node getExtraInfo ()
LogTableDataModel getLCModel ()
int getSortIndex ()
void hideColumn (int columnIndex)
Component prepareRenderer (TableCellRenderer renderer, int rowIndex, int vColIndex)
int getColumnWidth (int n)
void setAdditionalWidth (int n, int width)
boolean isSortAscending ()
void setSortIndex (int index)
void setSortOrder (boolean ascending)
void setOrdering (int field, boolean ascending)
void showColumn (int columnIndex)
void showFieldChooser ()
boolean[] getVisibleColumns (boolean zeroBased)
void close ()
void setShortDateFormat (boolean shortFormat)
void setLogTypeDescriptionView (boolean showDescription)
Override void changeSelection (int rowIndex, int columnIndex, boolean toggle, boolean extend)
void scrollToNextSelectedRow ()
void scrollToPrevSelectedRow ()
void scrollToFirstRow ()
void scrollToLastRow ()
void scrollToSelectedRow ()
FiltersVector getFilters ()
void setFilters (FiltersVector newFilters, boolean append)
String getFiltersString ()
void setLogLevel (LogTypeHelper newLevel)
int getViewRowCount ()
Override void sorterChanged (RowSorterEvent e)
void zoom ()
Override void zoomReadingFile (int num)
Override void zoomTotalFileToRead (int num)

Protected Member Functions

int columnToModel (int index)

Private Member Functions

String getCellStringContent (int row, int col)
void initialize (boolean shortDateFormat, boolean logTypeformat)

Private Attributes

TableColumn[] columnsList
boolean[] visibleColumns
FieldChooserDialog fieldChooser = null
LoggingClient loggingClient
DefaultListSelectionModel selectionModel
LogTableRowSorter rowSorter
int selecteViewdRow = - 1
int selecteModelRow = - 1
int selecteLogKey = - 1
DateRenderer dateRenderer
EntryTypeRenderer logTypeRenderer
ProgressMonitor zoomProgressMonitor = null
int zoomTotFiles

Detailed Description

Subclasses JTable allowing grouping and sorting depending on user's input. Creation date: (11/11/2001 13:45:22)
Author:
:


Constructor & Destructor Documentation

alma::acs::logging::table::LogEntryTable::LogEntryTable LoggingClient  client,
boolean  initialDateFormat,
boolean  initalLogTypeFormat
throws Exception [inline]
 

LogEntryTable constructor.

Parameters:
logClient The LoggingClient that owns this table
initialDateFormat The format to show the date (true means short)
initalLogTypeFormat If true shows the written close to the icon of the log type


Member Function Documentation

Override void alma::acs::logging::table::LogEntryTable::changeSelection int  rowIndex,
int  columnIndex,
boolean  toggle,
boolean  extend
[inline]
 

Override the method in JTable to catch the change of selection operated by the user and update the detailed log info accordingly.

See also:
JTable.changeSelection(int rowIndex, int columnIndex, boolean toggle,boolean extend)

void alma::acs::logging::table::LogEntryTable::close  )  [inline]
 

Close the filterChooser dialog releasing all the resources. This is intended to be the last operatione when the application is closing

int alma::acs::logging::table::LogEntryTable::columnToModel int  index  )  [inline, protected]
 

Utility method to provide mapping of column index to data fields. Creation date: (1/25/02 11:11:43 AM)

Returns:
int
Parameters:
index int

String alma::acs::logging::table::LogEntryTable::getCellStringContent int  row,
int  col
[inline, private]
 

Get a string representing the content of a cell

Parameters:
row The table row of the cell
col The table column of the cell
Returns:
A string representing the content of the cell

int alma::acs::logging::table::LogEntryTable::getColumnWidth int  n  )  [inline]
 

Computes the total width of the table taking into consideration the visible columns' width.

Returns:
number of columns

org.w3c.dom.Node alma::acs::logging::table::LogEntryTable::getExtraInfo  )  [inline]
 

Insert the method's description here. Creation date: (2/7/02 3:52:36 PM)

Returns:
java.lang.String

FiltersVector alma::acs::logging::table::LogEntryTable::getFilters  )  [inline]
 

Return the filters defined by the user.

Returns:
The user defined filters

String alma::acs::logging::table::LogEntryTable::getFiltersString  )  [inline]
 

Returns:
A description of the active filters
See also:
FiltersVector.getFilterString()

LogTableDataModel alma::acs::logging::table::LogEntryTable::getLCModel  )  [inline]
 

Returns the LogTableDataModel. This is a convenience method that returns properly case data model.

Creation date: (11/24/2001 18:44:41)

Returns:
com.cosylab.logging.client.LCLogTableDataModel

int alma::acs::logging::table::LogEntryTable::getSortIndex  )  [inline]
 

Sets the index of the column the table should be sorted by. If the table is currently unsorted, the result is -1.

Returns:
int

int alma::acs::logging::table::LogEntryTable::getViewRowCount  )  [inline]
 

Shows the number of rows shown by the table.

Returns:
the number of rows shown by the table.

boolean [] alma::acs::logging::table::LogEntryTable::getVisibleColumns boolean  zeroBased  )  [inline]
 

Returns an array of boolean with true for each visible column The visibleComun array of this class starts counting the column from 1 instead of 0 (i.e. 0 is not used)

Parameters:
zeroBased If true the number 0 correspond to the first column (the array of visible columns uses 1 for the first column)
Returns:
An array of boolean describing which columns are displayed

void alma::acs::logging::table::LogEntryTable::hideColumn int  columnIndex  )  [inline]
 

Hides a table column specified by index. Creation date: (12/4/2001 22:57:58)

Parameters:
columnIndex int

void alma::acs::logging::table::LogEntryTable::initialize boolean  shortDateFormat,
boolean  logTypeformat
[inline, private]
 

Setup the table

Parameters:
shortDateFormat The format to show the date (if true is short, otherwise complete)
logTypeformat The way to show the log type (if true the description is shown)

boolean alma::acs::logging::table::LogEntryTable::isSortAscending  )  [inline]
 

Returns true if the elements are sorted in ascending order and false if in descending. If the table is not sorted, this parameter has no meaning. Creation date: (1/24/02 10:49:21 AM)

Returns:
boolean

Component alma::acs::logging::table::LogEntryTable::prepareRenderer TableCellRenderer  renderer,
int  rowIndex,
int  vColIndex
[inline]
 

Sets a tool tip on all the cells. It pops up when the value is not fully displayed while the mose scrolls over it.

See also:
javax.swing.JTable#prepareRenderer(TableCellRenderer, int, int)

void alma::acs::logging::table::LogEntryTable::scrollToFirstRow  )  [inline]
 

Scroll the table to the first row

void alma::acs::logging::table::LogEntryTable::scrollToLastRow  )  [inline]
 

Scroll the table to the last row

void alma::acs::logging::table::LogEntryTable::scrollToNextSelectedRow  )  [inline]
 

Scroll the table to the next selected row and select it.

If there is no row selected or the selected line is the last row of the table, the method return without scrolling the table.

void alma::acs::logging::table::LogEntryTable::scrollToPrevSelectedRow  )  [inline]
 

Scroll the table to the next selected row and select it.

If there is no row selected or the selected row is the first row of the table, the method return without scrolling the table

void alma::acs::logging::table::LogEntryTable::scrollToSelectedRow  )  [inline]
 

Scroll the table to the selected row

If there is no selected row, the method return without scrolling.

The selected row could not be anymore present in the table for example because it has been deleted by the LogDeleter or the table has been cleared by the user.

void alma::acs::logging::table::LogEntryTable::setAdditionalWidth int  n,
int  width
[inline]
 

Assigns the additional width that is left to the right to Log Message column.

Parameters:
width 
number of columns
Returns:
TableColumn

void alma::acs::logging::table::LogEntryTable::setFilters FiltersVector  newFilters,
boolean  append
[inline]
 

Parameters:
newFilters 
append 

void alma::acs::logging::table::LogEntryTable::setLogLevel LogTypeHelper  newLevel  )  [inline]
 

Set the new log level i.e. the level of the logs shown in the table.

Parameters:
newLevel 

void alma::acs::logging::table::LogEntryTable::setLogTypeDescriptionView boolean  showDescription  )  [inline]
 

Show/Hide the description of the log type at the right side of the icon.

When the description is disabled, the icon appear without the written. The column is also resized to use less space as possible.

Parameters:
showDescription If true a string with the description of the log appear at the right side of the icon (default)

void alma::acs::logging::table::LogEntryTable::setOrdering int  field,
boolean  ascending
[inline]
 

Set the order and the field for ordering at once. Calling this method is faster the calling the setSortIndex and setSortOrder

Parameters:
field The field of the logs for ordering -1 disable the ordering
ascending The order ascending(true)/descending (false)

void alma::acs::logging::table::LogEntryTable::setShortDateFormat boolean  shortFormat  )  [inline]
 

Set the format used to show the timestamp in the date column

Parameters:
shortFormat The format of the date (true means short, false means complete)

void alma::acs::logging::table::LogEntryTable::setSortIndex int  index  )  [inline]
 

Sets the column the elements in this table should be sorted by. Setting it to -1 means the table is not sorted.

To change both the index and the order, it is better to execute setOrdering

Parameters:
index int

void alma::acs::logging::table::LogEntryTable::setSortOrder boolean  ascending  )  [inline]
 

Changes the order in which the elements are sorted. Set true for ascending and false for descending.

To change both the index and the order, it is better to execute setOrdering

Parameters:
ascending The order for the table

void alma::acs::logging::table::LogEntryTable::showColumn int  columnIndex  )  [inline]
 

Displays the column specified by index. Creation date: (12/4/2001 22:56:11)

Parameters:
columnIndex int

void alma::acs::logging::table::LogEntryTable::showFieldChooser  )  [inline]
 

Displays the field chooser dialog.

Creation date: (1/2/2002 23:20:27)

Override void alma::acs::logging::table::LogEntryTable::sorterChanged RowSorterEvent  e  )  [inline]
 

void alma::acs::logging::table::LogEntryTable::zoom  )  [inline]
 

Zoom over the selected logs.

The zoom consists of loading all the logs in the time interval defined by the selected logs. The zoom is delegated to the ZoomManager.

See also:
ZoomManager

Override void alma::acs::logging::table::LogEntryTable::zoomReadingFile int  num  )  [inline]
 

Override void alma::acs::logging::table::LogEntryTable::zoomTotalFileToRead int  num  )  [inline]
 


Member Data Documentation

TableColumn [] alma::acs::logging::table::LogEntryTable::columnsList [private]
 

DateRenderer alma::acs::logging::table::LogEntryTable::dateRenderer [private]
 

The renderer to show the date (short or complete format)

FieldChooserDialog alma::acs::logging::table::LogEntryTable::fieldChooser = null [private]
 

LoggingClient alma::acs::logging::table::LogEntryTable::loggingClient [private]
 

EntryTypeRenderer alma::acs::logging::table::LogEntryTable::logTypeRenderer [private]
 

The renderer to show the type of log (icon and description or icon only)

LogTableRowSorter alma::acs::logging::table::LogEntryTable::rowSorter [private]
 

The object to sort, order and filter the logs shown by the table

int alma::acs::logging::table::LogEntryTable::selecteLogKey = - 1 [private]
 

The key of the last log selected by the user.

-1 means no log selected.

int alma::acs::logging::table::LogEntryTable::selecteModelRow = - 1 [private]
 

The index (in the model!!!) of the row selected by the user.

-1 means no row selected.

int alma::acs::logging::table::LogEntryTable::selecteViewdRow = - 1 [private]
 

The index (in the view!!!) of the row selected by the user.

-1 means no row selected.

DefaultListSelectionModel alma::acs::logging::table::LogEntryTable::selectionModel [private]
 

boolean [] alma::acs::logging::table::LogEntryTable::visibleColumns [private]
 

ProgressMonitor alma::acs::logging::table::LogEntryTable::zoomProgressMonitor = null [private]
 

The dialog to show (and stop) the progress of the zoom

int alma::acs::logging::table::LogEntryTable::zoomTotFiles [private]
 

The total number of files to read while zooming


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