net.sf.nachocalendar
Class CalendarFactory

java.lang.Object
  extended bynet.sf.nachocalendar.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarFactory

public CalendarFactory()
Default constructor, declared as private.

Method Detail

createDateField

public static DateField createDateField()
Returns a plain DateField.

Returns:
a new DatePanel

createCalendarPanel

public static CalendarPanel createCalendarPanel()
Creates a plain CalendarPanel.

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

createCalendarPanel

public static CalendarPanel createCalendarPanel(int quantity)
Creates a plain CalendarPanel.

Parameters:
quantity - quantity of months to show at once
Returns:
a new CalendarPanel

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