Fields and methods of the jala.Date class.
Constructs a new Renderings object.
methods
- renderEditor(prefix, date, fmt)
- renderEditorAsString(prefix, date, pattern)
Creates a new instance of jala.Data.Calendar
parameters
| HopObject | collection | A grouped HopObject collection to work on |
methods
- setRenderer(r)
- setLocale(loc)
- setTimeZone(loc)
- setHrefFormat(fmt)
- setAccessNameFormat(fmt)
- render(today)
- getCalendar(today)
Returns a new instance of the default calendar renderer.
parameters
| jala.Date.Calendar | calendar | The calendar utilizing this renderer |
methods
- renderDayHeader(text)
- renderRow(row)
- renderDay(date, isExisting, isSelected)
- renderPrevNextLink(date)
- renderCalendar(date, body, prevMonth, nextMonth)
properties
- helma.Html html
- jala.Date.Calendar calendar
An instance of helma.Html used for rendering the calendar
The calendar utilizing this renderer instance
Default date class instance.
Methods
Renders a timestamp as set of DropDown boxes, following the
format passed as argument. Every <select>
item is prefixed with a string so that it can be retrieved
easily from the values of a submitted POST request.
parameters
| String | prefix | The prefix to use for all dropdown boxes, eg. "postdate" |
| Date | date | A Date object to use as preselection (optional) |
| Object | fmt |
Array containing one parameter object for every single
select box that should be rendered, with the following properties set:
|
Returns a timestamp as set of dropdown-boxes
parameters
| prefix | ||
| date | ||
| pattern |
see
Returns the collection this calendar object works on
returns
| The HopObject collection of this calendar |
Sets the renderer to use.
parameters
| Object | r | The renderer to use |
see
Returns the renderer used by this calendar.
returns
| The calendar renderer |
see
Sets the locale to use within this calendar object
parameters
| java.util.Locale | loc | The locale to use |
see
Returns the locale used within this calendar instance. By default
the locale used by this calendar is the default locale of the
Java Virtual Machine running Helma.
returns
| The locale of this calendar |
see
Sets the locale to use within this calendar object
parameters
| java.util.Locale | loc | The locale to use |
see
Returns the locale used within this calendar instance. By default
the timezone used by this calendar is the default timezone
of the Java Virtual Machine running Helma.
returns
| The locale of this calendar |
see
Sets the format of the hrefs to render by this calendar
to the format pattern passed as argument.
parameters
| String | fmt | The date format pattern to use for rendering the href |
see
Returns the date formatting pattern used to render hrefs. The default
format is "yyyyMMdd".
returns
| The date formatting pattern |
see
Sets the format of the group name to use when trying to access
child objects of the collection this calendar is operating on.
parameters
| String | fmt | The date format pattern to use for accessing child objects |
see
Returns the format of the access name used by this calendar to access
child group objects of the collection this calendar is operating on.
The default format is "yyyyMMdd".
returns
| The date formatting pattern used to access child objects |
see
Renders the calendar using either a custom renderer defined
using {@link #setRenderer} or the default one.
parameters
| today |
see
Returns a rendered calendar
parameters
| today |
see
Renders a single cell in the calendar day header row directly to response.
parameters
| String | text | The text to display in the header field. |
Renders a single calendar row directly to response.
parameters
| String | row | The body of the calendar row. |
Renders a single day within the calendar directly to response.
parameters
| Date | date | A date instance representing the day within the calendar. |
| Boolean | isExisting | True if there is a child object in the calendar's collection to which the date cell should link to |
| Boolean | isSelected | True if this calendar day should be rendered as selected day. |
Renders a link to the previous or next month's calendar directly to response.
parameters
| Date | date | A date object set to the previous or next available month. This can be null in case there is no previous or next month. |
Renders the calendar directly to response.
parameters
| Date | date | A date object representing this calendar's month and year. Please mind that the day will be set to the last date in this month. |
| String | body | The rendered calendar weeks including the day header (basically the whole kernel of the table). |
| Date | prevMonth | A date object set to the last available date of the previous month. This can be used to render a navigation link to the previous month. |
| Date | nextMonth | A date object set to the first available date of the next month. This can be used to render a navigation link to the next month. |
