All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class net.e2technologies.util.ECalendarPopup

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----javax.swing.JWindow
                                   |
                                   +----net.e2technologies.util.ECalendarPopup

public class ECalendarPopup
extends JWindow
implements ActionListener
This class is used as a wrapper for ECalendar to support the popup feature when selecting a date. This will implement the same basic interface as ECalendar. Upon creation, it will popup a ECalendar and then upon selection of a date, it will destroy the ECalendar window and return the selected date using the ECalendarListner method setCalendar(Calendar p_calendar). Note: Due to this compoent's ability to be used within an applet or an application it will expand the popup window's height by 20 pixels to compensate for the Applet Security Warning label that will be attached to the bottom of the window if this is run within an Applet using the Java Plug-in. It does the check by trying to perform an action that an un-trusted Applet will not be allowed to do, thus throwing an SecurityException, at which time the extra space will be added. If this component is used within a trusted signed Applet, this exception will not be thrown, thus the extra space will not be added and will cause the top of the week days to be cut off.

See Also:
ECalendarListener

Constructor Index

 o ECalendarPopup(Date, ECalendarListener)
Constructor for ECalendarPopup.
 o ECalendarPopup(Date, ECalendarListener, boolean)
Constructor for ECalendarPopup.
 o ECalendarPopup(Date, ECalendarListener, boolean, boolean, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Font)
Contructor for ECalendarPopup.
 o ECalendarPopup(Date, ECalendarListener, boolean, Color, Color)
Constructor for ECalendarPopup.
 o ECalendarPopup(ECalendarListener)
Default constructor for ECalendarPopup.
 o ECalendarPopup(ECalendarListener, boolean)
Constructor for ECalendarPopup.

Method Index

 o actionPerformed(ActionEvent)
Called when the day within the ECalendar has been selected and the ECalendar is to be disposed of

Constructors

 o ECalendarPopup
 public ECalendarPopup(ECalendarListener p_listener)
Default constructor for ECalendarPopup.

Parameters:
ECalendarListener - p_listener - the Listener object to callback when date selected
 o ECalendarPopup
 public ECalendarPopup(ECalendarListener p_listener,
                       boolean p_showGrid)
Constructor for ECalendarPopup.

Parameters:
ECalendarListener - p_listener - the Listener object to callback when a date is selected.
boolean - p_showGrid - true will show the calendar grid, false will not
 o ECalendarPopup
 public ECalendarPopup(Date p_date,
                       ECalendarListener p_listener)
Constructor for ECalendarPopup.

Parameters:
Date - p_date - the initial date to display when showing the ECalendar
ECalendarListener - - the Listener object to callback when a date is selected.
 o ECalendarPopup
 public ECalendarPopup(Date p_date,
                       ECalendarListener p_listener,
                       boolean p_showGrid)
Constructor for ECalendarPopup.

Parameters:
Date - p_date - the initial date to display when showing the ECalendar
ECalendarListener - p_listener - the Listener object to callback when a date is selected.
boolean - p_showGrid - true will show the calendar grid, false will not.
 o ECalendarPopup
 public ECalendarPopup(Date p_date,
                       ECalendarListener p_listener,
                       boolean p_showGrid,
                       Color p_weekDayColor,
                       Color p_dayColor)
Constructor for ECalendarPopup.

Parameters:
Date - p_date - the initial date to display when showing the ECalendar
ECalendarListener - - the Listener object to callback when a date is selected.
boolean - p_showGrid - true will show the calendar grid, false will not.
Color - p_weekDayColor - the forground color to set the Week Day Cells to.
Color - p_dayColor - the foreground color to set the Day Cells to.
 o ECalendarPopup
 public ECalendarPopup(Date p_date,
                       ECalendarListener p_listener,
                       boolean p_showGrid,
                       boolean p_isOpague,
                       Color p_weekDayForeground,
                       Color p_weekDayBackground,
                       Color p_dayForeground,
                       Color p_dayBackground,
                       Color p_activeForeground,
                       Color p_activeBackground,
                       Color p_blankForeground,
                       Color p_blankBackground,
                       Color p_weekDayGridColor,
                       Color p_dayGridColor,
                       Color p_blankGridColor,
                       Font p_font)
Contructor for ECalendarPopup.

Parameters:
Date - p_date - the initial date to display when showing the ECalendar
ECalendarListener - p_listner - the Listener object to callback when a date is selected
boolean - p_showGrid - true will show the calendar grid, false will not
boolean - p_isOpaque - true will not show the background colors of the cell (only the background color of the parent component). False will show the background colors for each cell.
Color - p_weekDayForeground - the foreground color to set the Week Day Cells to.
Color - p_weekDayBackground - the background color to set the Week Day Cells to.
Color - p_dayForeground - the foreground color to set the Day Cells to.
Color - p_dayBackground - the background color to set the Day Cells to.
Color - p_activeForeground - the foreground color to set the Active Cell to.
Color - p_activeBackground - the background color to set the Active Cell to.
Color - p_blankForeground - the foreground color to set the Blank Cells to.
Color - p_blankBackground - the background color to set the Blank Cells to.
Color - p_weekDayGridColor - the grid color to set the Week Day Cells to.
Color - p_dayGridColor - the grid color to set the Day Cells to.
Color - p_blankGridColor - the grid color to set the Blank Cells to.
Font - p_font - the font to set the contents of the cells to.

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Called when the day within the ECalendar has been selected and the ECalendar is to be disposed of

Parameters:
ActionEvent - e

All Packages  Class Hierarchy  This Package  Previous  Next  Index