|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zul.db.Renderer
public class Renderer
The renderer used to render a calendar. It is designed to be overridden
Method Summary | |
---|---|
static void |
beforeRedraw(Calendar cal)
Called before Widget.redraw(_global_.Array) is invoked. |
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 |
yearView(Calendar wgt,
Array out,
Map localizedSymbols)
Renderer the yearView for this calendar |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 month
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
- today
public 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 localization
public static String titleOfWeekOfYear(Calendar wgt)
Default: 'Wk'
wgt
- the calendar widget
public 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 localization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |