alma::acs::logging::table::renderer::DateRenderer Class Reference

Inheritance diagram for alma::acs::logging::table::renderer::DateRenderer:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::table::renderer::DateRenderer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DateRenderer (boolean dateFormat)
java.awt.Component getTableCellRendererComponent (javax.swing.JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
void paint (Graphics g)
void setShortDateFormat (boolean shortFormat)

Static Protected Attributes

static Border noFocusBorder = null

Private Attributes

Color bColor
Color fColor
final SimpleDateFormat longDateFormat = new IsoDateFormat()
final SimpleDateFormat shortDateFormat = new SimpleDateFormat("HH:mm:ss.SSS")
boolean shortDate

Detailed Description

DateRenderer defines the label for displaying the time format. Creation date: (1/22/02 4:15:49 PM)

Author:
:

Constructor & Destructor Documentation

alma::acs::logging::table::renderer::DateRenderer::DateRenderer ( boolean  dateFormat  )  [inline]

DateRenderer constructor comment.

Parameters:
dateFormat True if the date must be shown in a short format

References noFocusBorder, and shortDate.


Member Function Documentation

java.awt.Component alma::acs::logging::table::renderer::DateRenderer::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.

Parameters:
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, longDateFormat, shortDate, and shortDateFormat.

void alma::acs::logging::table::renderer::DateRenderer::paint ( Graphics  g  )  [inline]

References bColor.

void alma::acs::logging::table::renderer::DateRenderer::setShortDateFormat ( boolean  shortFormat  )  [inline]

Render the date in a short/complet form

Parameters:
shortFormat The format used to show the date

References shortDate.

Referenced by alma::acs::logging::table::LogEntryTable::setShortDateFormat().


Member Data Documentation

Referenced by DateRenderer().

final SimpleDateFormat alma::acs::logging::table::renderer::DateRenderer::shortDateFormat = new SimpleDateFormat("HH:mm:ss.SSS") [private]

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

Generated by  doxygen 1.6.2