previous chapter contents page top page next chapter

DateButton

inherits from Button;

Class Description

Class DateButton is used by the Datebook to change the date and time of Datebook tasks. Date buttons when they're tapped pop up windows containing date choosers.

Programming information

Instantiate: sometimes
Subclass: rarely
Call its methods: rarely

You might use class DateButton if you want to implement a button that users tap to change the date of some task or other object.

Methods defined by class DateButton

Class DateButton defines the following methods:

Method Description
Action Overridden toshow or hide window, set up target and index of date
chooser in window

Fields defined by class DateButton

Class DateButton defines the following fields

Field Type Description
Inherited from SingleLinkable
next Object Next item in view list
Inherited from Linkable
previous Object Previous item in view list
Inherited from Viewable
superview Viewable Container for this object
subview Viewable Object contained by this object
relativeOrigin Dot Origin relative to superview
contentSize Dot Size of content rectangle
viewFlags Unsigned Property settings
labelStyle TextStyle Text style of object's label
color Unsigned Color of object's content
altColor Unsigned Not used by button
shadow Shadow Shadow drawn with object
sound Sound Sound associated with object
Inherited from Stamp
image Image Image used to draw stamp
Inherited from HasBorder
border Border The button's border
Defined by DateButton
window Window Window containing the date picker
target Object The object to get or set the indexed date from
index Signed The index to pass to datePicker for IndexedDate

Method Descriptions

Action

overrides Action

Call: sometimes
Override: sometimes

The system calls Action when the user taps on a button. Class DateButton overrides Action to do its special work.

Action shows the date picker window if it's hidden, and hides it if it's visible. The window must have a date chooser as one of its subviews. Action sets up the date chooser by setting its target and index to be the target and index of the date button.