zul.db
Class Renderer

java.lang.Object
  extended by zul.db.Renderer

public class Renderer
extends java.lang.Object

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 boolean disabled(Calendar cal, int y, int m, int v, Date today)
          Tests if the specified date is disabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cellHTML

public static String cellHTML(Calendar cal,
                              int y,
                              int m,
                              int day,
                              int monthofs)
Returns the HTML fragment representing a day cell. By overriding this method, you could customize the look of a day cell.

Default: day

Parameters:
cal - the calendar
y - the year
m - 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
Returns:
String the HTML fragment
Since:
5.0.3

beforeRedraw

public static void beforeRedraw(Calendar cal)
Called before Widget.redraw(_global_.Array) is invoked.

Default: does nothing

Parameters:
cal - the calendar
Since:
5.0.3

disabled

public static boolean disabled(Calendar cal,
                               int y,
                               int m,
                               int v,
                               Date today)
Tests if the specified date is disabled.

Default: it depends on the constraint, if any

Parameters:
cal - the calendar
y - the year
m - the month (between 0 to 11)
v - the day (between 1 to 31)
today - today
Returns:
boolean
Since:
5.0.3


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo