

Classes | |
| class | DetailedTableModel |
| class | MultilineRenderer |
Public Member Functions | |
| DetailedLogTable () | |
| void | setupContent (ILogEntry log) |
| Component | prepareRenderer (TableCellRenderer renderer, int rowIndex, int vColIndex) |
| TableCellRenderer | getCellRenderer (int row, int column) |
Private Member Functions | |
| void | setEmptyContent () |
Private Attributes | |
| final String | NOT_AVAILABLE = "" |
| DetailedTableModel | dataModel = new DetailedTableModel() |
| int | rowsNum |
| int | normalRowHeight |
| String[][] | nameValue |
| MultilineRenderer | logMessageRenderer = new MultilineRenderer() |
| EntryTypeRenderer | entryTypeRenderer = new EntryTypeRenderer(true) |
The table used to represent data in the right panel of the main window
| com::cosylab::logging::client::DetailedLogTable::DetailedLogTable | ( | ) | [inline] |
Build a table using the data in the log entry
| log | The logEntry with the data to display |
References dataModel, normalRowHeight, and setEmptyContent().
| TableCellRenderer com::cosylab::logging::client::DetailedLogTable::getCellRenderer | ( | int | row, | |
| int | column | |||
| ) | [inline] |
References entryTypeRenderer, and logMessageRenderer.
| Component com::cosylab::logging::client::DetailedLogTable::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 mouse scrolls over it.
References nameValue.
| void com::cosylab::logging::client::DetailedLogTable::setEmptyContent | ( | ) | [inline, private] |
Fill the table with an empty content (no log selected)
References dataModel, nameValue, NOT_AVAILABLE, and rowsNum.
Referenced by DetailedLogTable(), and setupContent().
| void com::cosylab::logging::client::DetailedLogTable::setupContent | ( | ILogEntry | log | ) | [inline] |
Fill the table with the fields of the given log.
| log | The log whose content is shown in the table |
References dataModel, com::cosylab::logging::engine::log::ILogEntry::getAdditionalData(), com::cosylab::logging::engine::log::ILogEntry::getField(), com::cosylab::logging::client::DetailedLogTable::DetailedTableModel::logType, nameValue, rowsNum, and setEmptyContent().
Referenced by com::cosylab::logging::LoggingClient::setLogDetailContent(), and com::cosylab::logging::LoggingClient::showDetailedLogInfo().
DetailedTableModel com::cosylab::logging::client::DetailedLogTable::dataModel = new DetailedTableModel() [private] |
The table model
Referenced by DetailedLogTable(), setEmptyContent(), and setupContent().
EntryTypeRenderer com::cosylab::logging::client::DetailedLogTable::entryTypeRenderer = new EntryTypeRenderer(true) [private] |
Referenced by getCellRenderer().
MultilineRenderer com::cosylab::logging::client::DetailedLogTable::logMessageRenderer = new MultilineRenderer() [private] |
The multiline renderer for the log message
Referenced by getCellRenderer().
String [][] com::cosylab::logging::client::DetailedLogTable::nameValue [private] |
The pairs <name,value> i.e. all the values displayed in the table.
The first column contains the title of each cell in HTML format; the second column contains the value displayed in the right column of the table in plain text. The renderes will take such a string and format to be properly displayed, with the exception of the log type that is stored into the DetailedTableModel as a LogTypeHelper.
Referenced by com::cosylab::logging::client::DetailedLogTable::DetailedTableModel::getValueAt(), prepareRenderer(), setEmptyContent(), and setupContent().
The height of a row with only one line of text
Referenced by DetailedLogTable(), and com::cosylab::logging::client::DetailedLogTable::MultilineRenderer::getTableCellRendererComponent().
final String com::cosylab::logging::client::DetailedLogTable::NOT_AVAILABLE = "" [private] |
The string shown when the dialog is not displaying a log
Referenced by setEmptyContent().
int com::cosylab::logging::client::DetailedLogTable::rowsNum [private] |
The rows in the table
Referenced by com::cosylab::logging::client::DetailedLogTable::DetailedTableModel::getRowCount(), setEmptyContent(), and setupContent().
1.6.2