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.
-
day
-
-
fm
-
-
months
-
-
JDPCalendarPicker()
- Creates a Date Picker Panel.
-
getBorder()
- Determine where the border has been selected to be displayed.
-
getDate()
- Get the currently displayed date.
-
getDateString()
- Get the currently displayed date.
-
handleEvent(Event)
-
-
layout()
-
-
minimumSize()
-
-
paint(Graphics)
-
-
preferredSize()
-
-
setBorder(boolean)
- Set the border to be displayed.
-
setDate(Date)
- Set the currently displayed date.
-
setDate(String)
- Set the currently displayed date.
-
setDays(String[])
- Set the text names of the days.
-
setMonths(String[])
- Set the text names of the months.
-
update(Graphics)
-
fm
protected FontMetrics fm
months
public static String months[]
day
public static String day[]
JDPCalendarPicker
public JDPCalendarPicker()
- Creates a Date Picker Panel.
setMonths
public static void setMonths(String monthValues[])
- Set the text names of the months.
- Parameters:
- months - the text names of the months.
setDays
public static void setDays(String dayValues[])
- Set the text names of the days.
- Parameters:
- days - the text names of the days.
setDate
public void setDate(Date date)
- Set the currently displayed date.
- Parameters:
- date - the current date to select.
setDate
public void setDate(String date)
- Set the currently displayed date.
- Parameters:
- date - the current date to select.
getDate
public Date getDate()
- Get the currently displayed date.
- Returns:
- the currently displayed date.
getDateString
public String getDateString()
- Get the currently displayed date.
- Returns:
- the currently displayed date.
setBorder
public void setBorder(boolean border)
- Set the border to be displayed.
- Parameters:
- the - border setting.
getBorder
public boolean getBorder()
- Determine where the border has been selected to be displayed.
- Returns:
- the border setting.
layout
public void layout()
- Overrides:
- layout in class Container
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
update
public void update(Graphics g)
- Overrides:
- update in class Component
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Container