net.sf.nachocalendar.tasks

Class TaskCalendarFactory


public final class TaskCalendarFactory
extends java.lang.Object

Factory class used to obtain objects customized to show Tasks.
Author:
Ignacio Merani

Method Summary

static CalendarPanel
createCalendarPanel()
Returns a new CalendarPanel customized to show Tasks.
static CalendarPanel
createCalendarPanel(int quantity)
Returns a new CalendarPanel customized to show Tasks.
static CalendarPanel
createCalendarPanel(int quantity, int orientation)
Returns a new CalendarPanel customized to show Tasks.
static DateField
createDateField()
Returns a new DateField customized to show Tasks.
static DateField
createDateField(String formatter, Locale userLocale)
Returns a formatted DateField.
static DatePanel
createDatePanel()
Returns a new DatePanel customized to show Tasks.
static DatePanel
createDatePanel(boolean showWeekNumbers)
Returns a new DatePanel customized to show Tasks.

Method Details

createCalendarPanel

public static CalendarPanel createCalendarPanel()
Returns a new CalendarPanel customized to show Tasks.
Returns:
a new CalendarPanel

createCalendarPanel

public static CalendarPanel createCalendarPanel(int quantity)
Returns a new CalendarPanel customized to show Tasks.
Parameters:
quantity - quantity of months to show
Returns:
a new CalendarPanel

createCalendarPanel

public static CalendarPanel createCalendarPanel(int quantity,
                                                int orientation)
Returns a new CalendarPanel customized to show Tasks.
Parameters:
quantity - quantity of months to show
orientation - the orientation
Returns:
a new CalendarPanel

createDateField

public static DateField createDateField()
Returns a new DateField customized to show Tasks.
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()
Returns a new DatePanel customized to show Tasks.
Returns:
a new DatePanel

createDatePanel

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