net.sf.nachocalendar.holidays

Class 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(String formatter, 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.

Method Details

createCalendarPanel

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

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

createDateField

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

createDateField

public static DateField createDateField(String formatter,
                                        Locale userLocale)
Returns a formatted DateField.
Returns:
a new formatted DatePanel

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