function focusItem(aItem) { var disabled = this.isItemMarkedDisabled(aItem); if (!disabled) this.focusItem(aItem); return disabled; } this.traverseItems(this, focusItem); return this.getAttribute("incremental") != "false"; if (!val) this.setAttribute("incremental", "false"); else this.removeAttribute("incremental"); return this.getAttribute("selection"); this.setAttribute("selection", val); this.freeEntryAllowed = this.allowFreeEntry(val == "open"); throw Components.results.NS_ERROR_NOT_IMPLEMENTED; var nsIDOMNode = Components.interfaces.nsIDOMNode; if (aNode.nodeType != nsIDOMNode.ELEMENT_NODE) return; var array = []; for (var child = aNode.firstChild; child; child = child.nextSibling) { if (child.nodeType == nsIDOMNode.ELEMENT_NODE) array.push({node: child, isUsed: false}); } return array; throw Components.results.NS_ERROR_NOT_IMPLEMENTED; if (aCurrNode == aItemNode) return false; if (!aCurrNode) { if (aItemNode.namespaceURI != this.XFORMS_NS || aItemNode.localName != "item") return false; aCurrNode = aItemNode; } var next = aUpDirection ? aCurrNode.previousSibling : aCurrNode.nextSibling; if (next) { var res = this.traverseItems(next, aFunc, aFuncArg1, aFuncArg2, aUpDirection); if (!res) return false; return this.cycleTraverseItems(aItemNode, aUpDirection, aFunc, aFuncArg1, aFuncArg2, next); } var parent = aCurrNode; while (parent = parent.parentNode) { if (parent.namespaceURI == this.XFORMS_NS) { switch (parent.localName) { case "choices": case "itemset": next = parent; break; case "select": case "select1": next = aUpDirection ? parent.lastChild : parent.firstChild; break; } if (next) return this.cycleTraverseItems(aItemNode, aUpDirection, aFunc, aFuncArg1, aFuncArg2, next); } } return true; return ""; return false; if (aItem) aItem.selected = aIsSelected; return aItem ? aItem.selected : false; if (aItem) aItem.disabled = aIsDisabled; return aItem ? aItem.disabled : false; if (aItem) aItem.focus(); this.freeEntryAllowed = this.allowFreeEntry(this.selection == "open"); null false null null function _isSelected(aItem, aItemList) { if (this.isItemMarkedSelected(aItem)) aItemList.push(aItem); return true; } var list = []; this.traverseItems(this, _isSelected, list); return list; this.markItemSelected(aItem, true); this.markItemSelected(aItem, false); function _clearSelection(aItem) { this.markItemSelected(aItem, false); return true; } this.traverseItems(this, _clearSelection); function _selectAll(aItem) { this.markItemSelected(aItem, true); return true; } this.traverseItems(this, _selectAll); return this.isItemMarkedSelected(aItem); // A limitation of the XML Schema list datatypes is that white space // characters in the storage values (the value element) are always // interpreted as separators between individual data values. // Therefore, authors should avoid using white space characters within // storage values with list simpleContent. // Replace new line (\n), tabs (\t) and carriage returns (\r) with // space (" "). var value = aString.replace(aWhiteSpaceExpr, " "); return value.split(/\s/); function getSelectedItem(aItem, aSelectedItem) { if (this.isItemMarkedSelected(aItem)) aSelectedItem.value = aItem; return !this.isItemMarkedSelected(aItem); } var selectedItem = {value: null}; this.traverseItems(this, getSelectedItem, selectedItem); return selectedItem.value; function setSelectedItem(aItem, aSelectedItem) { this.markItemSelected(aItem, aItem == aSelectedItem); return true; } this.traverseItems(this, setSelectedItem, val); return [aString]; if (this.values.length != 1) return; if (!this.values[0].isUsed) { this.appendFreeEntryItem(this.values[0].value); this.values[0].isUsed = true; } 1 || aHitArray.length == 1 && !aHitArray[0].isUsed); ]]> null if (!this._anonymousItemSetContent) { this._anonymousItemSetContent = document.getAnonymousElementByAttribute(this, "anonid", "insertion"); } return this._anonymousItemSetContent; this.control.focus(); if (this.selectControl) this.selectControl.updateInstanceNodeByItem(aIncremental, this); null return Components.interfaces.nsIAccessibleProvider.XFormsChoices;