interface GrailsTagDateHelper
An interface for defining behavior that Grails tags require surrounding dates
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.util.GregorianCalendar |
buildCalendar(java.lang.Object date) Creates a GregorianCalendar based off of the date object. |
|
abstract java.lang.String |
format(java.lang.Object formatter, java.lang.Object date) Formats a given date |
|
abstract java.lang.Object |
getDateFormat(java.lang.String style, java.lang.Object timeZone, java.util.Locale locale) Retrieve a date format object without time to be passed to the format method |
|
abstract java.lang.Object |
getDateTimeFormat(java.lang.String dateStyle, java.lang.String timeStyle, java.lang.Object timeZone, java.util.Locale locale) Retrieve a date format object with time to be passed to the format method |
|
abstract java.lang.Object |
getFormatFromPattern(java.lang.String format, java.lang.Object timeZone, java.util.Locale locale) Retrieve a date format object to be passed to the format method |
|
abstract java.lang.Object |
getTimeFormat(java.lang.String style, java.lang.Object timeZone, java.util.Locale locale) Retrieve a time format object without time to be passed to the format method |
|
abstract java.lang.Object |
getTimeZone(java.lang.Object timeZone) Retrieve a time zone object from a parameter |
|
abstract java.lang.Boolean |
supportsDatePicker(java.lang.Class clazz)
|
Creates a GregorianCalendar based off of the date object. This should only get called if supportsDatePicker returns true.
date
- The date to convertFormats a given date
formatter
- The formatter retrieved from any one of these methods: getFormatFromPattern, getDateFormat, getTimeFormat, getDateTimeFormatdate
- The date to be formattedRetrieve a date format object without time to be passed to the format method
style
- The string type of format //FULL,LONG,MEDIUM,SHORTtimeZone
- The timeZone retrieved from getTimeZonelocale
- The localeRetrieve a date format object with time to be passed to the format method
dateStyle
- The string type of date format //FULL,LONG,MEDIUM,SHORTtimeStyle
- The string type of time format //FULL,LONG,MEDIUM,SHORTtimeZone
- The timeZone retrieved from getTimeZonelocale
- The localeRetrieve a date format object to be passed to the format method
format
- The string format patterntimeZone
- The timeZone retrieved from getTimeZonelocale
- The localeRetrieve a time format object without time to be passed to the format method
style
- The string type of format //FULL,LONG,MEDIUM,SHORTtimeZone
- The timeZone retrieved from getTimeZonelocale
- The localeRetrieve a time zone object from a parameter
clazz
- The type of date to be used in a date picker