for (var i = this.control.childNodes.length; i > 0; i--) {
this.control.removeChild(this.control.childNodes[i-1]);
}
var item = document.createElementNS(this.XHTML_NS, "option");
item.setAttribute("value", aValue);
if (aLabel) {
item.appendChild(aLabel.cloneNode(true));
}
if (aGroup) {
aGroup.appendChild(item);
} else {
this.control.appendChild(item);
}
return item;
var item = document.createElementNS(this.XHTML_NS, "optgroup");
if (aLabel) {
item.appendChild(aLabel.cloneNode(true));
}
if (aGroup) {
aGroup.appendChild(item);
} else {
this.control.appendChild(item);
}
return item;
aItem.selected = true;
aItem.selected = false;
return aItem.selected;
this.dispatchDOMUIEvent("DOMFocusIn");
this.updateInstanceData(false);
this.dispatchDOMUIEvent("DOMFocusOut");
this.updateInstanceData(true);
: 'selectedIndex' property isn't implemented."
]]>
for (var i = this.control.childNodes.length; i > 0; i--) {
this.control.removeChild(this.control.childNodes[i-1]);
}
var div = document.createElementNS(this.XHTML_NS, "div");
var input = document.createElementNS(this.XHTML_NS, "input");
input.setAttribute("type", "checkbox");
input.setAttribute("value", aValue);
input.setAttribute("anonid", "wcontrol");
if (this.readonly)
input.setAttribute("disabled", "true");
div.appendChild(input);
if (aLabel)
div.appendChild(aLabel.cloneNode(true));
if (aGroup) {
aGroup.appendChild(div);
} else {
this.control.appendChild(div);
}
return div;
var mainDiv = document.createElementNS(this.XHTML_NS, "div");
var labelDiv = document.createElementNS(this.XHTML_NS, "div");
if (aLabel) {
labelDiv.className = "select-choice-label";
labelDiv.appendChild(aLabel.cloneNode(true));
}
mainDiv.appendChild(labelDiv);
var contentDiv = document.createElementNS(this.XHTML_NS, "div");
contentDiv.className = "select-choice-content";
mainDiv.appendChild(contentDiv);
if (aGroup) {
aGroup.appendChild(mainDiv);
} else {
this.control.appendChild(mainDiv);
}
return contentDiv;
aItem.firstChild.checked = true;
aItem.firstChild.checked = false;
return aItem.firstChild.checked;
if (event.originalTarget.getAttribute("anonid") == "wcontrol")
this.updateInstanceData(true);
if (event.originalTarget.getAttribute("anonid") == "wcontrol")
this.updateInstanceData(false);
var div = document.createElementNS(this.XHTML_NS, "div");
var input = document.createElementNS(this.XHTML_NS, "input");
input.setAttribute("type", "radio");
input.setAttribute("value", aValue);
input.setAttribute("name", "radioControlForXFormsSelect1");
input.setAttribute("anonid", "wcontrol");
if (this.readonly)
input.setAttribute('disabled', 'true');
div.appendChild(input);
if (aLabel)
div.appendChild(aLabel.cloneNode(true));
if (aGroup) {
aGroup.appendChild(div);
} else {
this.control.appendChild(div);
}
return div;