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

Description (short)
Calendar widget, tix
Written by
Andreas Kupries
Description
Calendar widget to choose a date.
See also
monthListTix, calendar
Keywords
calendar, choosing a date, date choice, tix

Class 'calendarTix'

Depends on
Tix
Superclasses
valueManager
Options
order
Methods
public
MaxDay ()
TrackDay (d)
TrackMonth (m)
TrackOrder (o oldValue)
TrackYear (y)
WrapY (d)
calendarTix ()
createSubwidgets ()
setBindings ()
setBindingsTo (w)
updateDisplay ()
Membervariables
public
year
month
day
monlen

Options

-order
Selection and order of the subwidgets.
default value: ymd

Methods

MaxDay ()

Determines the value triggering an upward wraparound.
Returns: Lowest value above the length of the month considered as invalid for the day widget.

TrackDay (d)

Callback for subordinate day widget. Executed every time its value is set (not necessarily changed). Touching the lower or upper bound triggers a decrement/increment operation for month and year (ripple counter, wrap around).
Notes: Does nothing, if no change took place (avoids infinite recursion).
Argument: d The (possibly) new value of the chosen day.

TrackMonth (m)

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

TrackOrder (o oldValue)

The widget defined allows arbitrary ordering of its components. The corresponding option is -order. This method is called everytime the option was set and executes the necessary relayout.
Argument: o The name of the changed option, always '-order'.
Argument: oldValue The old value of the option.

TrackYear (y)

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

WrapY (d)

Increment/decrement operator for subordinate year widget.
Argument: d direction of wrap, must be one of 'up' or 'down'.

calendarTix ()

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 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
monlen
Length of the currently chosen date

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