File 'clock/calendarTix.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
monthListTix, calendar
Depends on
Tix
Keywords
calendar, choosing a date, date choice, tix

Class 'calendarTix'

Superclasses
valueManager
Options
order
Membervariables
day, monlen, month, year
Methods
MaxDay, TrackDay, TrackMonth, TrackOrder, TrackYear, WrapY, calendarTix, createSubwidgets, setBindings, setBindingsTo, updateDisplay

-order
Selection and order of the subwidgets.

day
Currently chosen day in the month
monlen
Length of the currently chosen date
month
Currently chosen month
year
Currently chosen year

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: dThe (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: mThe (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: oThe name of the changed option, always '-order'.
Argument: oldValueThe 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: yThe (possibly) new value of the chosen year.

WrapY (d)

Increment/decrement operator for subordinate year widget.
Argument: ddirection 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 ()

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 superclass valueManager to propagate changes to the value into the display.


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