return "http://www.w3.org/2002/xforms";
var ev = document.createEvent("UIEvents");
ev.initUIEvent(aType, true, true, window, 1);
this.dispatchEvent(ev);
return true;
var ev = document.createEvent("Events");
ev.initEvent(aEventName, true, false);
aTarget.dispatchEvent(ev);
return true;
if (!this._control)
this._control = this.getControlElement();
return this._control;
return null;
this._control = null;
null
var value = this.accessors.getValue();
return value != null ? value : "";
this.delegate.widgetAttached();
this._delegate = null;
this._accessors = null;
if (!this._delegate) {
this._delegate =
this.QueryInterface(Components.interfaces.nsIXFormsDelegate);
}
return this._delegate;
null
null
return true;
return true;
return false;
this.control.value = this.stringValue;
return true;
// the label control hides/unhides anonymous content based on the
// the value we set it to. The control assumes that if the value
// comes from a binding or linking attribute that the value we are
// setting it to will be null
var externalValue = this.hasAttribute("ref") ||
this.hasAttribute("bind") ||
this.hasAttribute("src");
if (externalValue) {
this.control.value = this.accessors.getValue();
} else {
this.control.value = null;
}
return true;
var parent = this.parentNode;
if (parent.namespaceURI != this.XFORMS_NS)
return;
switch (parent.localName) {
case "input":
// XXX: probably we should check base type (see a bug 316691)
switch (parent.getAttribute("type")) {
case "http://www.w3.org/2001/XMLSchema#boolean":
var value = parent.accessors.getValue();
if (value == "true" || value == "1") {
parent.accessors.setValue("false");
} else {
parent.accessors.setValue("true");
}
}
case "secret":
case "textarea":
case "output":
case "upload":
case "range":
case "trigger":
case "submit":
case "select":
case "select1":
parent.focus();
break;
}
this.advanceFocusToParent();
this.control.disabled = aDisable;
this.control.focus();
return true;
this.QueryInterface(Components.interfaces.nsIXFormsCaseElement).
widgetAttached();
if (!this._control)
this._control = this.getControlElement();
return this._control;
this.control.selected = aEnable;
return true;
null
if (!this._inlineData) {
this._inlineData = document.
getAnonymousElementByAttribute(this, "anonid", "inlineData");
}
return this._inlineData;
null
if (!this._bindingData) {
this._bindingData = document.
getAnonymousElementByAttribute(this, "anonid", "bindingData");
}
return this._bindingData;
if (this.accessors.hasBoundNode() ||
this.hasAttribute('src')) {
this.bindingData.textContent = this.stringValue;
this.inlineData.style.display = "none";
this.bindingData.style.display = "inherit";
} else {
this.bindingData.style.display = "none";
this.inlineData.style.display = "inherit";
}
null
if (!this._container) {
this._container = document.
getAnonymousElementByAttribute(this, "anonid", "container");
}
return this._container;
this.container.style.visibility = "visible";
this.container.style.display = "inherit";
this.container.style.left = x + "px";
this.container.style.top = y + "px";
return true;
this.container.style.left = "0px";
this.container.style.top = "0px";
this.container.style.visibility = "hidden";
this.container.style.display = "none";
this.control.readonly = this.accessors.isReadonly();
this.control.focus();
return true;
if (!this._uploadElement) {
this._uploadElement =
this.QueryInterface(Components.interfaces.nsIXFormsUploadElement);
}
return this._uploadElement;
null
this.control.value = aString;
if (!this._anonymousRepeatContent) {
this._anonymousRepeatContent =
document.getAnonymousElementByAttribute(this, "anonid", "insertion");
}
return this._anonymousRepeatContent;
null