File 'clock/calendar.cls' (part of 'Pool_Clock')


Home | Packages | Files | Procedures | Classes | Keywords | External packages


Written by
Andreas Kupries
Description
Calendar widget to choose a date.
See also
yearBrowser, monthList, dayBrowser, calendarTix
Keywords
calendar, choosing a date, date choice

Class 'calendar'

Superclasses
valueManager
Options
dayrelief, heading, sunday, weekno
Membervariables
day, month, year
Methods
TrackDay, TrackDayrelief, TrackHeading, TrackMonth, TrackSunday, TrackWeekno, TrackYear, calendar, createSubwidgets, setBindings, setBindingsTo, updateDisplay

-dayrelief
Relief of button associated to currently chosen day
-heading
Color to mark header row.
-sunday
Color to mark sundays.
-weekno
Color to mark week numbers

day
Currently chosen day in the month
month
Currently chosen month
year
Currently chosen year

TrackDay (d)

Callback for subordinate day widget. Executed every time its value is set (not necessarily changed).
Notes: Does nothing, if no change took place (avoids infinite recursion).
Argument: dThe (possibly) new value of the chosen day.

TrackDayrelief (o oldValue)

Executed whenever the relief of the buttons is set.
Argument: oThe name of the changed option, always '-dayrelief'.
Argument: oldValueThe old value of the option.

TrackHeading (o oldValue)

Executed whenever the color of the heading is changed.
Argument: oThe name of the changed option, always '-heading'.
Argument: oldValueThe old value of the option.

TrackMonth (m)

Callback for subordinate month widget. Executed every time its value is changed.
Argument: mThe new value of the chosen month.

TrackSunday (o oldValue)

Executed whenever the color of the sunday column requires a refresh.
Argument: oThe name of the changed option, always '-sunday'.
Argument: oldValueThe old value of the option.

TrackWeekno (o oldValue)

Executed whenever the color of the weeknumber column requires a refresh.
Argument: oThe name of the changed option, always '-weekno'.
Argument: oldValueThe old value of the option.

TrackYear (y)

Callback for subordinate year widget. Executed every time its value is changed.
Argument: yThe new value of the chosen year.

calendar ()

Initializes the value to the current date if not set already by the user.

createSubwidgets ()

Called by the framework to generate the subwidgets and their layout.

setBindings ()

Adds various keyboard accelerators to the calendar components.

setBindingsTo (w)

Adds various keyboard accelerators to the given widget.
Argument: wThe widget the accelerators are added to.

updateDisplay ()

Method required by the superclass valueManager to propagate changes to the value into the display.


Generated by AutoDoc 2.1 at 02/20/1999, invoked by Andreas Kupries