public class DateModel extends Object implements Serializable
Models Locale specific date chanracteristics.
Includes localized slect lists.
Copyright: Copyright Sakai (c) 2005
| Modifier and Type | Method and Description |
|---|---|
List |
get12HourSelectItems()
Select list for range of hours on 12 hour clock.
|
List |
get24HourSelectItems()
Select list for range of hours on 24 hour clock.
|
String[] |
getAmPm()
(Should be) Localized array of {AM, PM}
|
List |
getAmPmSelectItems()
Localized AM/PM select list
|
String[] |
getDayNames()
Localized array of day strings
|
Integer[] |
getDays()
Array of day of month Integers, starting from 1
|
List |
getDaySelectItems()
Select list for range of days
|
String[] |
getDayShortNames()
Localized array of short day strings
|
Integer[] |
getHours()
Array of hour Integers, starting from 1
|
Integer[] |
getHours(boolean twentyFourHour)
Array of hour Integers, starting from 1
|
Integer[] |
getMinutes()
Array of minute Integers, starting from 0
|
List |
getMinuteSelectItems()
Select list for range of hours on 12 hour clock.
|
String[] |
getMonthNames()
Localized array of month names
|
Integer[] |
getMonths()
Array of month Itegers, starting from 1
|
List |
getMonthSelectItems()
Select list for range of months
|
String[] |
getMonthShortNames()
Localized array of short month strings
|
Integer[] |
getSeconds()
Array of seconds Integers, starting from 0
|
List |
getSecondsSelectItems()
Select list for range of hours on 12 hour clock.
|
Integer[] |
getYears(int rangeBefore,
int rangeAfter)
Array of year Integers starting from now - rangeBefore to now + rangeAfter
|
List |
getYearSelectItems(int rangeBefore,
int rangeAfter)
Select list for range of years
|
static void |
main(String[] args)
unit test
|
public DateModel()
public DateModel(Locale locale)
public Integer[] getYears(int rangeBefore, int rangeAfter)
rangeBefore - intrangeAfter - intpublic String[] getMonthNames()
public String[] getMonthShortNames()
public String[] getDayNames()
public String[] getDayShortNames()
public String[] getAmPm()
public Integer[] getMonths()
public Integer[] getDays()
public Integer[] getHours()
public Integer[] getHours(boolean twentyFourHour)
twentyFourHour, - if true use 24 hour clock,
if false use 12 hour clockpublic Integer[] getMinutes()
public Integer[] getSeconds()
public static void main(String[] args)
args - String[]public List getYearSelectItems(int rangeBefore, int rangeAfter)
rangeBefore - intrangeAfter - intpublic List getMonthSelectItems()
public List getDaySelectItems()
public List get24HourSelectItems()
public List get12HourSelectItems()
public List getAmPmSelectItems()
public List getMinuteSelectItems()
public List getSecondsSelectItems()
Copyright © 2003–2014 University of Michigan. All rights reserved.