|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.visuals.remotefileselector.informationservices.InformationServicesDateCellRenderer
public class InformationServicesDateCellRenderer
InformationServicesCellRenderer formats a date column's value.
| Field Summary | |
|---|---|
static InformationServicesDateCellRenderer |
defaultInstance
A default instance of the class |
| Constructor Summary | |
|---|---|
InformationServicesDateCellRenderer()
Default Constructor sets up a date format that uses the SHORT format for the date and time. |
|
InformationServicesDateCellRenderer(java.text.DateFormat df)
Constructor that accepts a date format. |
|
InformationServicesDateCellRenderer(int dateStyle,
int timeStyle,
java.util.Locale locale)
Constructor that accepts a style for the date and the time. |
|
InformationServicesDateCellRenderer(int dateStyle,
java.util.Locale locale)
Constructor that accepts a style for the date. |
|
InformationServicesDateCellRenderer(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 InformationServicesDateCellRenderer defaultInstance
| Constructor Detail |
|---|
public InformationServicesDateCellRenderer()
public InformationServicesDateCellRenderer(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 InformationServicesDateCellRenderer(int dateStyle,
java.util.Locale locale)
dateStyle - a format style for the date portionlocale - a locale for the data valueDateFormatpublic InformationServicesDateCellRenderer(java.util.Locale locale)
locale - a locale for the data valueDateFormatpublic InformationServicesDateCellRenderer(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()public java.text.DateFormat getDateFormat()
setDateFormat(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.TableCellRenderertable - the table where the cell is displayedvalue - the value to formatisSelected - whether the cell is selectedcellHasFocus - whether the cell 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 | |||||||||||||