

Public Member Functions | |
| EntryTypeRenderer (boolean showDescription) | |
| java.awt.Component | getTableCellRendererComponent (javax.swing.JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) |
| void | paint (Graphics g) |
| void | viewDescription (boolean b) |
Private Attributes | |
| Color | bColor |
| Color | fColor |
| boolean | showDescription |
A specialized renderer to display both icon and text for each type of the log. Creation date: (12/4/2001 12:18:00)
| alma::acs::logging::table::renderer::EntryTypeRenderer::EntryTypeRenderer | ( | boolean | showDescription | ) | [inline] |
Constructor
| showDescription | If true the description is shown together with the icon |
| java.awt.Component alma::acs::logging::table::renderer::EntryTypeRenderer::getTableCellRendererComponent | ( | javax.swing.JTable | table, | |
| Object | value, | |||
| boolean | isSelected, | |||
| boolean | hasFocus, | |||
| int | row, | |||
| int | column | |||
| ) | [inline] |
This method is sent to the renderer by the drawing table to configure the renderer appropriately before drawing. Return the Component used for drawing.
| table | the JTable that is asking the renderer to draw. This parameter can be null. | |
| value | the value of the cell to be rendered. It is up to the specific renderer to interpret and draw the value. eg. if value is the String "true", it could be rendered as a string or it could be rendered as a check box that is checked. null is a valid value. | |
| isSelected | true is the cell is to be renderer with selection highlighting | |
| row | the row index of the cell being drawn. When drawing the header the rowIndex is -1. | |
| column | the column index of the cell being drawn |
References bColor, fColor, and showDescription.
| void alma::acs::logging::table::renderer::EntryTypeRenderer::paint | ( | Graphics | g | ) | [inline] |
References bColor.
| void alma::acs::logging::table::renderer::EntryTypeRenderer::viewDescription | ( | boolean | b | ) | [inline] |
Set the way the renderer shows a log type i.e. icon only or icon and the description.
| b | If true the renderer shows the icon and the description If false the renderer shows only the icon |
References showDescription.
Referenced by alma::acs::logging::table::LogEntryTable::setLogTypeDescriptionView().
Color alma::acs::logging::table::renderer::EntryTypeRenderer::bColor [private] |
Background color
Referenced by getTableCellRendererComponent(), and paint().
Color alma::acs::logging::table::renderer::EntryTypeRenderer::fColor [private] |
Foreground color
Referenced by getTableCellRendererComponent().
boolean alma::acs::logging::table::renderer::EntryTypeRenderer::showDescription [private] |
If true the renderer shows only the icon i.e. no text
Referenced by getTableCellRendererComponent(), and viewDescription().
1.6.2