Class JDPCalendarPicker

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPCalendarPicker

public class JDPCalendarPicker
extends Panel
Class JDPCalendarPicker represents a class that allows a date to be selected.


Variable Index

 o day
 o fm
 o months

Constructor Index

 o JDPCalendarPicker()
Creates a Date Picker Panel.

Method Index

 o getBorder()
Determine where the border has been selected to be displayed.
 o getDate()
Get the currently displayed date.
 o getDateString()
Get the currently displayed date.
 o handleEvent(Event)
 o layout()
 o minimumSize()
 o paint(Graphics)
 o preferredSize()
 o setBorder(boolean)
Set the border to be displayed.
 o setDate(Date)
Set the currently displayed date.
 o setDate(String)
Set the currently displayed date.
 o setDays(String[])
Set the text names of the days.
 o setMonths(String[])
Set the text names of the months.
 o update(Graphics)

Variables

 o fm
 protected FontMetrics fm
 o months
 public static String months[]
 o day
 public static String day[]

Constructors

 o JDPCalendarPicker
 public JDPCalendarPicker()
Creates a Date Picker Panel.

Methods

 o setMonths
 public static void setMonths(String monthValues[])
Set the text names of the months.

Parameters:
months - the text names of the months.
 o setDays
 public static void setDays(String dayValues[])
Set the text names of the days.

Parameters:
days - the text names of the days.
 o setDate
 public void setDate(Date date)
Set the currently displayed date.

Parameters:
date - the current date to select.
 o setDate
 public void setDate(String date)
Set the currently displayed date.

Parameters:
date - the current date to select.
 o getDate
 public Date getDate()
Get the currently displayed date.

Returns:
the currently displayed date.
 o getDateString
 public String getDateString()
Get the currently displayed date.

Returns:
the currently displayed date.
 o setBorder
 public void setBorder(boolean border)
Set the border to be displayed.

Parameters:
the - border setting.
 o getBorder
 public boolean getBorder()
Determine where the border has been selected to be displayed.

Returns:
the border setting.
 o layout
 public void layout()
Overrides:
layout in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Container