From 425a0f27a77fa34852fc64bc81ed0fcf782c151e Mon Sep 17 00:00:00 2001 From: "Olli.Pettay%helsinki.fi" Date: Wed, 30 Aug 2006 15:16:06 +0000 Subject: [PATCH] Bug 348612, [newwidget] support input[type=xsd:integer] for xul, p=surkov, r=me+doron git-svn-id: svn://10.0.0.236/trunk@208811 18797224-902f-48f8-a5cc-f745e15eee43 --- .../xforms/resources/content/input-xul.xml | 178 ++++++++++++++++++ .../xforms/resources/content/xforms.css | 53 ++++++ 2 files changed, 231 insertions(+) diff --git a/mozilla/extensions/xforms/resources/content/input-xul.xml b/mozilla/extensions/xforms/resources/content/input-xul.xml index c23c1310664..07e16d2d424 100644 --- a/mozilla/extensions/xforms/resources/content/input-xul.xml +++ b/mozilla/extensions/xforms/resources/content/input-xul.xml @@ -308,6 +308,184 @@ + + + + + + var changeHandler = { + xfcontrol: this, + handleEvent: function(aEvent) { + if (aEvent.currentTarget == aEvent.originalTarget) { + this.xfcontrol.updateInstanceData(true); + } + } + }; + this.control.control.addEventListener("change", changeHandler, false); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mozilla/extensions/xforms/resources/content/xforms.css b/mozilla/extensions/xforms/resources/content/xforms.css index a1bb1a7d222..fe721056be8 100755 --- a/mozilla/extensions/xforms/resources/content/xforms.css +++ b/mozilla/extensions/xforms/resources/content/xforms.css @@ -288,6 +288,59 @@ html|*:root input[mozType|type="http://www.w3.org/2001/XMLSchema#gDay"] { -moz-binding: url('chrome://xforms/content/input-xhtml.xml#xformswidget-input-day'); } + /* input type="xsd:integer" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#integer"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-integer'); +} + /* input type="xsd:nonPositiveInteger" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#nonPositiveInteger"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-nonPositiveInteger'); +} + /* input type="xsd:negativeInteger" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#negativeInteger"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-negativeInteger'); +} + /* input type="xsd:long" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#long"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-long'); +} + /* input type="xsd:int" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#int"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-int'); +} + /* input type="xsd:short" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#short"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-short'); +} + /* input type="xsd:byte" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#byte"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-byte'); +} + /* input type="xsd:nonNegativeInteger" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#nonNegativeInteger"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-nonNegativeInteger'); +} + /* input type="xsd:unsignedLong" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#unsignedLong"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-unsignedLong'); +} + /* input type="xsd:unsignedInt" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#unsignedInt"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-unsignedInt'); +} + /* input type="xsd:unsignedShort" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#unsignedShort"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-unsignedShort'); +} + /* input type="xsd:unsignedByte" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#unsignedByte"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-unsignedByte'); +} + /* input type="xsd:positiveInteger" */ +xul|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#positiveInteger"] { + -moz-binding: url('chrome://xforms/content/input-xul.xml#xformswidget-input-positiveInteger'); +} + html|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#base64Binary"], html|*:root input[mozType|typelist~="http://www.w3.org/2001/XMLSchema#hexBinary"], html|*:root secret[mozType|typelist~="http://www.w3.org/2001/XMLSchema#base64Binary"],