|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo.table.DateCellRenderer
public class DateCellRenderer
A TableCellRenderer for rendering objects
of type Calendar and Date.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
static String |
DATE_FORMAT
The pattern to use to format dates. |
protected SimpleDateFormat |
sdf
The date formatter to use. |
| Constructor Summary | |
|---|---|
DateCellRenderer()
Default constructor. |
|
DateCellRenderer(String pattern)
Create a new instance of the renderer that uses the specified pattern to format dates. |
|
| Method Summary | |
|---|---|
Component |
getTableCellRendererComponent(Table table,
Object value,
int column,
int row)
Return a Label that displays the formatted
date value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DATE_FORMAT
protected final SimpleDateFormat sdf
| Constructor Detail |
|---|
public DateCellRenderer()
sdf.
public DateCellRenderer(String pattern)
pattern - The pattern to use to format dates.| Method Detail |
|---|
public Component getTableCellRendererComponent(Table table,
Object value,
int column,
int row)
Label that displays the formatted
date value.
getTableCellRendererComponent in interface TableCellRenderertable - The table that is being rendered.value - The value that is to be rendered.column - The column index in the TableModel.row - The row index in the TableModel.
TableCellRenderer.getTableCellRendererComponent(nextapp.echo.app.Table, java.lang.Object, int, int)
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||