|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.remotefileselector.ifileservice.IFileServiceDateCellRenderer
public class IFileServiceDateCellRenderer
IFileServiceDateCellRenderer formats the values for a date column.
Field Summary | |
---|---|
static IFileServiceDateCellRenderer |
defaultInstance
default instance of the class |
Constructor Summary | |
---|---|
IFileServiceDateCellRenderer()
Default Constructor sets up a date format that uses the SHORT format for the date and time. |
|
IFileServiceDateCellRenderer(java.text.DateFormat df)
Constructor that accepts a date format. |
|
IFileServiceDateCellRenderer(int dateStyle,
int timeStyle,
java.util.Locale locale)
Constructor that accepts a style for the date and the time. |
|
IFileServiceDateCellRenderer(int dateStyle,
java.util.Locale locale)
Constructor that accepts a style for the date. |
|
IFileServiceDateCellRenderer(java.util.Locale locale)
Constructor that accepts a locale to use for the date. |
Method Summary | |
---|---|
java.text.DateFormat |
getDateFormat()
Return the date format |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean cellHasFocus,
int row,
int column)
Renders the date value based on the current formatting options. |
void |
setDateFormat(java.text.DateFormat df)
Set the date format and the sets the time zone to GMT. |
Field Detail |
---|
public static final IFileServiceDateCellRenderer defaultInstance
Constructor Detail |
---|
public IFileServiceDateCellRenderer()
public IFileServiceDateCellRenderer(int dateStyle, int timeStyle, java.util.Locale locale)
dateStyle
- a format style for the date portiontimeStyle
- a format style for the time portionlocale
- a locale for the data valueDateFormat
public IFileServiceDateCellRenderer(int dateStyle, java.util.Locale locale)
dateStyle
- a format style for the date portionlocale
- a locale for the data valueDateFormat
public IFileServiceDateCellRenderer(java.util.Locale locale)
locale
- a locale for the data valueDateFormat
public IFileServiceDateCellRenderer(java.text.DateFormat df)
df
- the DateFormat class to assign to this cell rendererDateFormat
Method Detail |
---|
public void setDateFormat(java.text.DateFormat df)
df
- the DateFormat class to assign to this cell renderergetDateFormat()
,
DateFormat
public java.text.DateFormat getDateFormat()
setDateFormat(DateFormat)
,
DateFormat
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean cellHasFocus, int row, int column)
getTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer
table
- the table where the value is displayedvalue
- the value to be formattedisSelected
- whether the item is selectedcellHasFocus
- whether the item has focusrow
- the cell's rowcolumn
- the cell's column
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |