This is a calendar allowing you to interactively select a date. The
selected date in the calendar is stored in the :value attribute. This
object also supports the :include_time=>true attribute. This class is
based on the Lgroup class and uses the
Lcalendar_month, Lcalendar_year, Lcalendar_day, and Lcalendar_time classes.
The Lcalendar_window defined below
opens a popup window containing the Lcalendar
class. Features:
- Allows you interactively select a date.
- You can easily embed this in your applet.
- In the interactive popup Lcalendar_window the following keys work:
- Right arrow - adds one day
- Left arrow - subtracts one day
- Up arrow - adds one week
- Down arrow - subtracts one week
- Page Up key - adds one month
- Shift Page Up key - adds one year
- Page Down key - subtracts one month
- Shift Page Down key - subtracts one year
- Shift Up arrow - adds one hour
- Shift Down arrow - subtracts one hour
- Ctrl Up arrow - adds one minute
- Ctrl Down arrow - subtracts one minute
- Alt Up arrow - adds one second
- Alt Down arrow - subtracts one second
- Alt-p - selects PM
- Alt-a - selects AM
add_to_day,
add_to_month,
add_to_year,
include_objects,
on_down_key,
on_enter_key,
on_key_press,
on_left_key,
on_pagedown_key,
on_pageup_key,
on_right_key,
on_up_key,
open,
refresh_calendar,
valid_attribute?,
value,
value=,
Support the :include_time attribute.
Add lvalue to day. Refreshes the calendar.
Add lvalue to month. Refreshes the calendar.
Add lvalue to year. Refreshes the calendar.
Add objects needed for the calendar.
Sets the correct date up in the calendar. We have to do this in the open or
the packer will compress the date fields a little because some dates (1-9)
are smaller.
The value attribute needs to update the calendar, also need to make sure
the new_value for the :value attribute is a Time
object.
Returns the date (Time object) based on the current
content of the calendar.
Redraws the calendar. This is called any time the year or month is changed.
Updates the tDays objects based on the newly selected date.
Supports Alt-p to select PM and Alt-a to select AM.
Forwards this to the parent_window
which should yield the selected date and close the parent window.
Subtracts 1 from the day.
Shift up adds 1 to the hour. Ctrl up adds 1 to the minute. Alt up adds 1 to
the second. Otherwise, subtracts one week from the selected date.
Shift up subtracts 1 to the hour. Ctrl up subtracts 1 to the minute. Alt up
subtracts 1 to the second. Otherwise, add one week to the selected date.
Adds 1 to the month. Shift pagedown adds 1 to the year.
Subtracts 1 from the month. Shift pagedown subtracts 1 from the year.
Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.