net.sf.nachocalendar

Class CalendarFactory


public final class CalendarFactory
extends java.lang.Object

Factory with convenient methods to get components ready to use.
Author:
Ignacio Merani

Constructor Summary

CalendarFactory()
Default constructor, declared as private.

Method Summary

static CalendarPanel
createCalendarPanel()
Creates a plain CalendarPanel.
static CalendarPanel
createCalendarPanel(int quantity)
Creates a plain CalendarPanel.
static CalendarPanel
createCalendarPanel(int quantity, int orientation)
Creates a plain CalendarPanel.
static DateField
createDateField()
Returns a plain DateField.
static DatePanel
createDatePanel()
Creates a plain DatePanel.
static DatePanel
createDatePanel(boolean showWeekNumbers)
Creates a plain DatePanel.

Constructor Details

CalendarFactory

public CalendarFactory()
Default constructor, declared as private.

Method Details

createCalendarPanel

public static CalendarPanel createCalendarPanel()
Creates a plain CalendarPanel.
Returns:
a new CalendarPanel

createCalendarPanel

public static CalendarPanel createCalendarPanel(int quantity)
Creates a plain CalendarPanel.
Parameters:
quantity - quantity of months to show at once
Returns:
a new CalendarPanel

createCalendarPanel

public static CalendarPanel createCalendarPanel(int quantity,
                                                int orientation)
Creates a plain CalendarPanel.
Parameters:
quantity - quantity of months to show at once
orientation - the orientation
Returns:
a new CalendarPanel

createDateField

public static DateField createDateField()
Returns a plain DateField.
Returns:
a new DatePanel

createDatePanel

public static DatePanel createDatePanel()
Creates a plain DatePanel.
Returns:
a new DatePanel

createDatePanel

public static DatePanel createDatePanel(boolean showWeekNumbers)
Creates a plain DatePanel.
Parameters:
showWeekNumbers - true to show week numbers
Returns:
a new DatePanel