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
-
ECalendarPopup(Date, ECalendarListener)
- Constructor for ECalendarPopup.
-
ECalendarPopup(Date, ECalendarListener, boolean)
- Constructor for ECalendarPopup.
-
ECalendarPopup(Date, ECalendarListener, boolean, boolean, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Font)
- Contructor for ECalendarPopup.
-
ECalendarPopup(Date, ECalendarListener, boolean, Color, Color)
- Constructor for ECalendarPopup.
-
ECalendarPopup(ECalendarListener)
- Default constructor for ECalendarPopup.
-
ECalendarPopup(ECalendarListener, boolean)
- Constructor for ECalendarPopup.
-
actionPerformed(ActionEvent)
- Called when the day within the ECalendar has been selected and the ECalendar is to be
disposed of
ECalendarPopup
public ECalendarPopup(ECalendarListener p_listener)
- Default constructor for ECalendarPopup.
- Parameters:
- ECalendarListener - p_listener - the Listener object to callback when date selected
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
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.
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.
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.
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.
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