All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.CalendarPicker

java.lang.Object
   |
   +----com.bulletproof.gui.Component
           |
           +----com.bulletproof.gui.CalendarPicker

public class CalendarPicker
extends Component
implements ActionListener
Class CalendarPicker represents a class that allows a date to be selected.


Constructor Index

 o CalendarPicker()
Creates a Date Picker Panel.

Method Index

 o actionPerformed(ActionEvent)
 o addActionListener(ActionListener)
 o getDate()
Get the currently displayed date.
 o getDateString()
Get the currently displayed date in the correct String fomat
 o getMinimumSize()
Gets the minimum size of this component.
 o paint(Graphics)
Paints the component.
 o processMouseEvent(MouseEvent)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
 o removeActionListener(ActionListener)
 o setDate(Date)
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.

Constructors

 o CalendarPicker
 public CalendarPicker()
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 getDate
 public Date getDate()
Get the currently displayed date.

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

Returns:
the currently displayed date.
 o paint
 public void paint(Graphics g)
Paints the component.

Overrides:
paint in class Component
 o processMouseEvent
 public synchronized void processMouseEvent(MouseEvent me)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.

Overrides:
processMouseEvent in class Component
 o actionPerformed
 public void actionPerformed(ActionEvent e)
 o addActionListener
 public void addActionListener(ActionListener al)
 o removeActionListener
 public void removeActionListener(ActionListener al)
 o getMinimumSize
 public Dimension getMinimumSize()
Gets the minimum size of this component.

Overrides:
getMinimumSize in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index