%xformsDTD; ]> return Components.interfaces.nsIAccessibleProvider.XFormsCalendarWidget; return this.hasAttribute("readonly"); if (val) this.setAttribute("readonly", "readonly"); else this.removeAttribute("readonly"); if (this.focusedDay == -1) return null; return new Date(this.year, this.month - 1, this.currentDay); return this._selectedDate; // if passed date is empty or invalid then we use today date. if (!val || String(val) == this.invalidDate) val = new Date(); this._selectedDate = val; if (!this.isSelectedDate()) this.setDate(this.selectedYear, this.selectedMonth, this.selectedDay); else this.refresh(this.selectedDay, true); return new Date(this.year, this.month - 1, 1).getDay(); var event = this.ownerDocument.createEvent("Events"); event.initEvent("change", true, false); this.dispatchEvent(event); null String(new Date(undefined)) if (this.currentDayIndex != -1) this._dayElements[this.currentDayIndex].focus(); this.refreshInternal(aCurrentDay, aDaysRefreshOnly); this.daysCount) return -1; return day; ]]> if (this._currentDayIndex == aIndex) return; var dayElm = null; if (this._currentDayIndex != -1) { dayElm = this._dayElements[this._currentDayIndex]; dayElm.setAttribute("tabindex", "-1"); } dayElm = this._dayElements[aIndex]; dayElm.setAttribute("tabindex", "1"); this._currentDayIndex = aIndex; new Array() -1 -1 false = 0) { this.currentDayIndex--; this.focus(); } ]]> = 0) { this.currentDayIndex -= 7; this.focus(); } ]]> this.month++; this.month--; &xforms.range.start.separator.field; &xforms.range.end.separator.field; return this.getAttribute('value'); this.start = aStart; this.end = aEnd; this.step = aStep; this.value = aValue; this.updateLabels(); return true; return true; return true; return true; return true; this.updateSpinbuttons(); this.updateSpinbuttons(); this.setSpinbuttonMinMax(); this.updateValue(); this.fireValueChange(); var event = this.ownerDocument.createEvent("Events"); event.initEvent("ValueChange", true, false); this.dispatchEvent(event); // Spinup events are generated by the numberbox widget // defined in "widgets-xul.xml". var upHandler = { range: this, handleEvent: function(aEvent) { this.range.increment(); } }; // Spindown events are generated by the numberbox widgets // defined in "widgets-xul.xml". var downHandler = { range: this, handleEvent: function(aEvent) { this.range.decrement(); } }; // Change events are generated by the numberbox widget // defined in "widgets-xul.xml". var changeHandler = { range: this, handleEvent: function(aEvent) { this.range.updateValue(); } }; this.addEventListener("spinup", upHandler, false); this.addEventListener("spindown", downHandler, false); this.addEventListener("change", changeHandler, false); return parseFloat(aDate.substr(0,4)); return parseFloat(aDate.substr(5,2)); return parseFloat(aDate.substr(8,2)); return parseFloat(aDateTime.substr(11,2)); return parseFloat(aDateTime.substr(14,2)); return parseFloat(aDateTime.substr(17,2)); var date = new Date(); date.setFullYear(this.getYear(aDateTime)); date.setMonth(this.getMonth(aDateTime)); date.setDate(this.getDay(aDateTime)); date.setHours(this.getHours(aDateTime)); date.setMinutes(this.getMinutes(aDateTime)); date.setSeconds(this.getSeconds(aDateTime)); return date; var date = new Date(); date.setFullYear(this.getYear(aDate)); date.setMonth(this.getMonth(aDate)); date.setDate(this.getDay(aDate)); return date; return parseFloat(aTime.substr(0,2)); return parseFloat(aTime.substr(3,2)); return parseFloat(aTime.substr(6,2)); var date = new Date(); date.setHours(this.getHours(aTime)); date.setMinutes(this.getMinutes(aTime)); date.setSeconds(this.getSeconds(aTime)); return date; return parseFloat(aMonthDay.substr(0,2)); return parseFloat(aMonthDay.substr(3,2)); return parseFloat(aYearMonth.substr(0,4)); return parseFloat(aYearMonth.substr(5,2)); this.start = this.formatDuration(aStart); this.end = this.formatDuration(aEnd); this.step = aStep; if (!aValue) this.value = this.start; else this.value = this.formatDuration(aValue); this.updateLabels(); return true; return this.getDurationValue(aDuration, "Y"); return this.getDurationValue(aDuration, "M"); return this.getDurationValue(aDuration, "D"); return this.getDurationValue(aDuration, "H"); return this.getDurationValue(aDuration, "S");