All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ca.bc.europa.awt.DateSelector

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ca.bc.europa.awt.ImagePanel
                                   |
                                   +----ca.bc.europa.awt.DateSelector

public class DateSelector
extends ImagePanel
implements ItemSelectable

The DateSelector allows the selection of a date.

See Also:
ImagePanel, ItemSelectable, MonthCal

Constructor Index

 o DateSelector(Image, Image, int, int, int, int, int, Image, Image, int, int, int, int)
Create a DateSelector.

Method Index

 o addItemListener(ItemListener)
Add a listener for ItemEvent.
 o getPreferredSize()
Get the preferred size of the component.
 o getSelectedDate()
Get the selected date as a java.util.Date.
 o getSelectedObjects()
Return the selected date as an Object array.
 o removeItemListener(ItemListener)
Remove a listener for ItemEvent.
 o setDate(int)
Set the date
 o setSelectedDate(Date)
Set the selected date from a java.util.Date.

Constructors

 o DateSelector
 public DateSelector(Image backdrop,
                     Image calImage,
                     int width,
                     int height,
                     int cellx,
                     int celly,
                     int titleHeight,
                     Image plusImage,
                     Image minusImage,
                     int buttonWidth,
                     int buttonHeight,
                     int year,
                     int month)
Create a DateSelector.

Parameters:
backdrop - The background image.
calImage - The calendar image see MonthCal.
width - The width of the component.
height - The height of the component.
cellx - The calendar cell width.
celly - The calendar cell height.
titleHeight - The calendar title height.
plusImage - The plus button image.
minusImage - The minus button image.
buttonWidth - The width of the buttons.
buttonHeight - The height of the buttons.
year - The initial year.
month - The initial month.

Methods

 o getPreferredSize
 public Dimension getPreferredSize()
Get the preferred size of the component.

Overrides:
getPreferredSize in class ImagePanel
 o setDate
 public void setDate(int yearIncr)
Set the date

 o getSelectedDate
 public Date getSelectedDate()
Get the selected date as a java.util.Date.

 o setSelectedDate
 public void setSelectedDate(Date date)
Set the selected date from a java.util.Date.

 o getSelectedObjects
 public Object[] getSelectedObjects()
Return the selected date as an Object array.

See Also:
ItemSelectable
 o addItemListener
 public void addItemListener(ItemListener l)
Add a listener for ItemEvent.

See Also:
ItemSelectable
 o removeItemListener
 public void removeItemListener(ItemListener l)
Remove a listener for ItemEvent.

See Also:
ItemSelectable

All Packages  Class Hierarchy  This Package  Previous  Next  Index