Date in a JList or JTable. DateCell implements ListDecorator, so it supports ListDecor based renderers, such as {@link DefaultListDecorRenderer} and{@link ListDecorTableRenderer}. It also implements Comparable, to allow for sorting, for instance if displayed in a sortable table. Four modes of display are supported by default:
NORMAL: Displays both date and time. If the date represents today or yesterday, the date part is given by UiResourceBundle.getString("Today") and UiResourceBundle.getString("Yesterday"), respectively. The time part is formatted according to the current Locale, using DateFormat.SHORT.TIME_ONLY: Displays the time part only, formatted according to the current Locale, using DateFormat.SHORT.DATE_ONLY: Displays the date part only, formatted according to the current Locale, using DateFormat.MEDIUM.DETAILED: Displays both date and time, both formatted according to the current Localem using using DateFormat.MEDIUM. This class supports null Dates. A null value will be rendered with a blank string.
@see Date
@see ListDecorator
@author Torgil Zethson
@since 1.3.0
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |