MonthCalendar.setSelectionRange

Overview | Methods | This Package | All Packages

MonthCalendar.setSelectionRange

Sets the selection for a month calendar control to a specified date range.

Syntax

public void setSelectionRange( Time date1, Time date2 )

public void setSelectionRange( SelectionRange range )

Parameters

date1

A Time object that represents the first date in the selection range.

date2

A Time object that represents the last date in the selection range.

range

A SelectionRange object that represents the new selection range. The selection range will not be set if it exceeds the maximum selection count, or if either element in the range array is less than 0.

Remarks

The selection range will not be set if it exceeds the maximum selection count.

See Also    setSelectionStart, setSelectionEnd , getSelectionRange