public class Renderer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
beforeRedraw(Calendar cal)
Called before
Widget.redraw(_global_.Array) is invoked. |
static String |
cellAriaLabel(Calendar cal,
int y,
int m,
int day,
int monthofs,
int dayofweek)
Returns the label of a date cell.
|
static String |
cellHTML(Calendar cal,
int y,
int m,
int day,
int monthofs)
Returns the HTML fragment representing a day cell.
|
static void |
dayView(Calendar wgt,
Array out,
Map localizedSymbols)
Renderer the dayView for this calendar
|
static void |
decadeView(Calendar wgt,
Array out,
Map localizedSymbols)
Renderer the decadeView for this calendar
|
static boolean |
disabled(Calendar cal,
int y,
int m,
int v,
Date today)
Tests if the specified date is disabled.
|
static String |
labelOfWeekOfYear(Calendar wgt,
int the,
Map localizedSymbols)
Generates the label of the week of year.
|
static void |
monthView(Calendar wgt,
Array out,
Map localizedSymbols)
Renderer the monthView for this calendar
|
static void |
titleHTML(Calendar wgt,
Array out,
Map localizedSymbols)
Generates the title of the content HTML.
|
static String |
titleOfWeekOfYear(Calendar wgt)
Generates the title of the week of year.
|
static void |
todayView(Calendar wgt,
Array out,
Map localizedSymbols)
Renderer the today link for this calendar
|
static void |
yearView(Calendar wgt,
Array out,
Map localizedSymbols)
Renderer the yearView for this calendar
|
public static String cellHTML(Calendar cal, int y, int m, int day, int monthofs)
Default: day
cal
- the calendary
- the yearm
- the month (between 0 to 11)day
- the day (between 1 to 31)monthofs
- the month offset. If the day is in the same monthpublic static String cellAriaLabel(Calendar cal, int y, int m, int day, int monthofs, int dayofweek)
Default: dd MMMM, yyyy
cal
- the calendary
- the yearm
- the month (between 0 to 11)day
- the day (between 1 to 31)monthofs
- the month offset. If the day is in the same monthdayofweek
- the day of the week (between 0 to 6)public static void beforeRedraw(Calendar cal)
Widget.redraw(_global_.Array)
is invoked.
Default: does nothing
cal
- the calendarpublic static boolean disabled(Calendar cal, int y, int m, int v, Date today)
Default: it depends on the constraint, if any
cal
- the calendary
- the yearm
- the month (between 0 to 11)v
- the day (between 1 to 31)today
- todaypublic static String labelOfWeekOfYear(Calendar wgt, int the, Map localizedSymbols)
Default: the string of the value
wgt
- the calendar widgetthe
- number of the week of the valuelocalizedSymbols
- the symbols for localizationpublic static String titleOfWeekOfYear(Calendar wgt)
Default: 'Wk'
wgt
- the calendar widgetpublic static void titleHTML(Calendar wgt, Array out, Map localizedSymbols)
wgt
- the calendar widgetout
- an array to output HTML fragments.localizedSymbols
- the symbols for localizationpublic static void dayView(Calendar wgt, Array out, Map localizedSymbols)
wgt
- the calendar widgetout
- an array to output HTML fragments.localizedSymbols
- the symbols for localizationpublic static void monthView(Calendar wgt, Array out, Map localizedSymbols)
wgt
- the calendar widgetout
- an array to output HTML fragments.localizedSymbols
- the symbols for localizationpublic static void yearView(Calendar wgt, Array out, Map localizedSymbols)
wgt
- the calendar widgetout
- an array to output HTML fragments.localizedSymbols
- the symbols for localizationpublic static void decadeView(Calendar wgt, Array out, Map localizedSymbols)
wgt
- the calendar widgetout
- an array to output HTML fragments.localizedSymbols
- the symbols for localizationCopyright © 2005-2023 Potix Corporation. All Rights Reserved.