|
|
| Line 41: |
Line 41: |
| | ;hide | | ;hide |
| | :Fades the picker out, inherited from ModalFog. | | :Fades the picker out, inherited from ModalFog. |
| - | ;today
| |
| - | :Returns the current date, internal use only.
| |
| - | :Return value:
| |
| - | :*''variant'' date, the current date
| |
| - | ;isCurrentDate
| |
| - | :Returns true if parameter date matches the current date, internal use only.
| |
| - | :Parameters:
| |
| - | :*''Date'' date, a java date object.
| |
| - | :Return value:
| |
| - | :*''bool'', true if the parameter date matches the current date
| |
| - | ;daysInMonth
| |
| - | :Returns the number of days of month mm in year yyyy, internal use only.
| |
| - | :Parameter:
| |
| - | :*''int'' mm, the month
| |
| - | :*''int'' yyyy, the month
| |
| - | :Return value:
| |
| - | :*''int'', the number of days in the given month and year
| |
| - | ;isSelectedDate
| |
| - | :Returns true if the currently selected date is dd-mm-yyyy, internal use only.
| |
| - | :Parameters:
| |
| - | :*''int'' dd, the day
| |
| - | :*''int'' mm, the month
| |
| - | :*''int'' yyyy, the year
| |
| - | :Return value:
| |
| - | :*''bool'', true if the currently selected date matches the given date
| |
| - | ;nexthMonth
| |
| - | :Returns the index of the following month, internal use only.
| |
| - | :Parameters:
| |
| - | :*''Date'' refDate, java Date object
| |
| - | :Return value:
| |
| - | :*''int'' the index of the following month
| |
| - | ;prevMonth
| |
| - | :Returns the index of the former month, internal use only.
| |
| - | :Parameters:
| |
| - | :*''Date'' refDate, a java Date
| |
| - | :Return value:
| |
| - | :*''int'', the index of the former month
| |
| - | ;setFuturePast
| |
| - | :Checks if the currently selected date is in the future or the past and sets the properties isFuture and isPast accordingly.
| |
| - | ;updateSelectedDate
| |
| - | :Updates the day model if necessary, updates the spinners and sets the selected date.
| |
| - | :Parameter:
| |
| - | :*''int'' d, the new day
| |
| - | :*''int'' m, the new month
| |
| - | :*''int'' y, the new year
| |
| - | ;setDays
| |
| - | :Updates the selected day.
| |
| - | :Parameters:
| |
| - | :*''int'' d, the new day
| |
| - | :*''int'' m, the new month
| |
| - | :*''int'' y, the new year
| |
| - | ;changeDayModel
| |
| - | :Updates the day model if necessary.
| |
| - | :Parameters:
| |
| - | :*''int'' d, the new day
| |
| - | :*''int'' m, the new month
| |
| - | :*''int'' y, the new year
| |
| - | ;checkSelectedDate
| |
| - | :Checks if the given date is in the range given by the properties minYear, minMonth, minDay, maxYear, maxMonth and maxDay
| |
| - | :Parameters:
| |
| - | :*''int'' d, the given day
| |
| - | :*''int'' m, the given month
| |
| - | :*''int'' y, the given year
| |
| | | | |
| | =Example= | | =Example= |
Displays control elements to choose a date by day, month and year. The values can either be chosen using the three PopupLists at the top or by the calender grid in the center. The min... and max... properties can be used to restrict the chosable date to a specific date. Selecting a date outside that range will disable the ok button. Make sure valid values for min and max are set, otherwise the DatePicker might not work as expected.