net.sf.nachocalendar.holidays
Class HoliDayCalendarFactory

java.lang.Object
  extended bynet.sf.nachocalendar.holidays.HoliDayCalendarFactory

public final class HoliDayCalendarFactory
extends java.lang.Object

Factory for holiday showing components.

Author:
Ignacio Merani

Method Summary
static CalendarPanel createCalendarPanel()
          Creates a new CalendarPanel with default values.
static CalendarPanel createCalendarPanel(int quantity, int orientation)
          Creates a new CalendarPanel.
static DateField createDateField()
          Creates a DateField with a parent Dialog.
static DateField createDateField(java.lang.String formatter, java.util.Locale userLocale)
          Returns a formatted DateField.
static DatePanel createDatePanel()
          Factory Method to create a DatePanel customized to show holidays.
static DatePanel createDatePanel(boolean showWeekNumbers)
          Factory Method to create a DatePanel customized to show holidays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDateField

public static DateField createDateField(java.lang.String formatter,
                                        java.util.Locale userLocale)
Returns a formatted DateField.

Returns:
a new formatted DatePanel

createDateField

public static DateField createDateField()
Creates a DateField with a parent Dialog.

Returns:
a new DateField

createCalendarPanel

public static CalendarPanel createCalendarPanel(int quantity,
                                                int orientation)
Creates a new CalendarPanel.

Parameters:
quantity - quantity of months to show
orientation - the orientation
Returns:
a new CalendarPanel

createCalendarPanel

public static CalendarPanel createCalendarPanel()
Creates a new CalendarPanel with default values.

Returns:
a new CalendarPanel

createDatePanel

public static DatePanel createDatePanel()
Factory Method to create a DatePanel customized to show holidays. It takes care of all the initial setup.

Returns:
a new DatePanel

createDatePanel

public static DatePanel createDatePanel(boolean showWeekNumbers)
Factory Method to create a DatePanel customized to show holidays. It takes care of all the initial setup.

Parameters:
showWeekNumbers - true to show the week numbers
Returns:
a new DatePanel