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

Description (short)
Calendar widget
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
heading
sunday
weekno
dayrelief
Methods
public
TrackDay (d)
TrackDayrelief (o oldValue)
TrackHeading (o oldValue)
TrackMonth (m)
TrackSunday (o oldValue)
TrackWeekno (o oldValue)
TrackYear (y)
calendar ()
createSubwidgets ()
setBindings ()
setBindingsTo (w)
updateDisplay ()
Membervariables
public
year
month
day

Options

-heading
Color to mark header row.
default value: black
-sunday
Color to mark sundays.
default value: red
-weekno
Color to mark week numbers
default value: black
-dayrelief
Relief of button associated to currently chosen day
default value: sunken

Methods

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: d The (possibly) new value of the chosen day.

TrackDayrelief (o oldValue)

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

TrackHeading (o oldValue)

Executed whenever the color of the heading is changed.
Argument: o The name of the changed option, always '-heading'.
Argument: oldValue The old value of the option.

TrackMonth (m)

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

TrackSunday (o oldValue)

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

TrackWeekno (o oldValue)

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

TrackYear (y)

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

calendar ()

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

createSubwidgets ()

Overrides valueManager:createSubwidgets
Called by the framework to generate the subwidgets and their layout.

setBindings ()

Overrides valueManager:setBindings
Adds various keyboard accelerators to the calendar components.

setBindingsTo (w)

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

updateDisplay ()

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


Membervariables

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

Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries