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
-
DateSelector(Image, Image, int, int, int, int, int, Image, Image, int, int, int, int)
- Create a DateSelector.
-
addItemListener(ItemListener)
- Add a listener for ItemEvent.
-
getPreferredSize()
- Get the preferred size of the component.
-
getSelectedDate()
- Get the selected date as a java.util.Date.
-
getSelectedObjects()
- Return the selected date as an Object array.
-
removeItemListener(ItemListener)
- Remove a listener for ItemEvent.
-
setDate(int)
- Set the date
-
setSelectedDate(Date)
- Set the selected date from a java.util.Date.
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.
getPreferredSize
public Dimension getPreferredSize()
- Get the preferred size of the component.
- Overrides:
- getPreferredSize in class ImagePanel
setDate
public void setDate(int yearIncr)
- Set the date
getSelectedDate
public Date getSelectedDate()
- Get the selected date as a java.util.Date.
setSelectedDate
public void setSelectedDate(Date date)
- Set the selected date from a java.util.Date.
getSelectedObjects
public Object[] getSelectedObjects()
- Return the selected date as an Object array.
- See Also:
- ItemSelectable
addItemListener
public void addItemListener(ItemListener l)
- Add a listener for ItemEvent.
- See Also:
- ItemSelectable
removeItemListener
public void removeItemListener(ItemListener l)
- Remove a listener for ItemEvent.
- See Also:
- ItemSelectable
All Packages Class Hierarchy This Package Previous Next Index