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

Description (short)
Year choice
Written by
Andreas Kupries
Description
Widget to choose a year, effectively a spin button.
See also
calendar
Keywords
calendar, choosing a year, year choice

Class 'yearBrowser'

Superclasses
valueManager
Options
charwidth
Methods
public
TrackCharWidth (o oldValue)
createSubwidgets ()
down ()
setBindings ()
setBindingsTo (w)
up ()
updateDisplay ()
yearBrowser ()

Options

-charwidth
Number of characters shown
default value: 5

Methods

TrackCharWidth (o oldValue)

Executed whenever the width of the widget is changed by the outside.
Argument: o The name of the changed option, always '-charwidth'.
Argument: oldValue The old value of the option.

createSubwidgets ()

Overrides valueManager:createSubwidgets
Create the internal widgets and their layout.

down ()

callback used by decrementer button to change the year

setBindings ()

Overrides valueManager:setBindings
Associate bindings for this widget with its internal components.

setBindingsTo (w)

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

up ()

Callback. Used by the incrementer button to add one to the year.

updateDisplay ()

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

yearBrowser ()

Initialize the value to the current year if not set already by the user.


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