a:24:{s:9:"#provides";s:19:"dijit.form.CheckBox";s:9:"#resource";s:16:"form/CheckBox.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:17:"dijit.form.Button";}}s:19:"dijit.form.CheckBox";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:23:"dijit.form.ToggleButton";}s:4:"call";a:1:{i:0;s:23:"dijit.form.ToggleButton";}}s:7:"summary";s:49:"Same as an HTML checkbox, but with fancy styling.";s:11:"description";s:463:"User interacts with real html inputs. On onclick (which occurs by mouse click, space-bar, or using the arrow keys to switch the selected radio button), we update the state of the checkbox/radio. There are two modes: 1. High contrast mode 2. Normal mode In case 1, the regular html inputs are shown and used by the user. In case 2, the regular html inputs are invisible but still used by the user. They are turned quasi-invisible and overlay the background-image.";s:9:"classlike";b:1;}s:32:"dijit.form.CheckBox.templatePath";a:2:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:7:"summary";s:0:"";}s:29:"dijit.form.CheckBox.baseClass";a:2:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:7:"summary";s:0:"";}s:24:"dijit.form.CheckBox.type";a:4:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:4:"tags";a:1:{i:0;s:7:"private";}s:4:"type";s:6:"String";s:7:"summary";s:111:"type attribute on <input> node. Overrides `dijit.form.Button.type`. Users should not change this value.";}s:25:"dijit.form.CheckBox.value";a:4:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:8:"instance";s:19:"dijit.form.CheckBox";s:4:"type";s:6:"String";s:7:"summary";s:410:"As an initialization parameter, equivalent to value field on normal checkbox (if checked, the value is passed as the value when form is submitted). However, attr('value') will return either the string or false depending on whether or not the checkbox is checked. attr('value', string) will check the checkbox and change the value to the specified string attr('value', boolean) will change the checked state.";}s:33:"dijit.form.CheckBox._setValueAttr";a:7:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"newValue";a:1:{s:4:"type";s:17:"String or Boolean";}}s:6:"source";s:201:" if(typeof newValue == "string"){ this.value = newValue; dojo.attr(this.focusNode, 'value', newValue); newValue = true; } if(this._created){ this.attr('checked', newValue); }";s:7:"summary";s:82:"Handler for value= attribute to constructor, and also calls to attr('value', val).";s:11:"description";s:355:"During initialization, just saves as attribute to the . After initialization, when passed a boolean, controls whether or not the CheckBox is checked. If passed a string, changes the value attribute of the CheckBox (the one specified as "value" when the CheckBox was constructed (ex: )";s:7:"private";b:1;}s:33:"dijit.form.CheckBox._getValueAttr";a:6:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:4:"type";s:8:"Function";s:6:"source";s:46:" return (this.checked ? this.value : false);";s:7:"summary";s:28:"Hook so attr('value') works.";s:11:"description";s:81:"If the CheckBox is checked, returns the value attribute. Otherwise returns false.";s:7:"private";b:1;}s:39:"dijit.form.CheckBox.postMixInProperties";a:4:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:4:"type";s:8:"Function";s:6:"source";s:347:" if(this.value == ""){ this.value = "on"; } // Need to set initial checked state as part of template, so that form submit works. // dojo.attr(node, "checked", bool) doesn't work on IEuntil node has been attached // to , see #8666 this.checkedAttrSetting = this.checked ? "checked" : ""; this.inherited(arguments);";s:7:"summary";s:0:"";}s:32:"dijit.form.CheckBox._fillContent";a:6:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"source";a:1:{s:4:"type";s:7:"DomNode";}}s:6:"source";s:3157:"dojo.provide("dijit.form.CheckBox"); dojo.require("dijit.form.Button"); dojo.declare( "dijit.form.CheckBox", dijit.form.ToggleButton, { // summary: // Same as an HTML checkbox, but with fancy styling. // // description: // User interacts with real html inputs. // On onclick (which occurs by mouse click, space-bar, or // using the arrow keys to switch the selected radio button), // we update the state of the checkbox/radio. // // There are two modes: // 1. High contrast mode // 2. Normal mode // In case 1, the regular html inputs are shown and used by the user. // In case 2, the regular html inputs are invisible but still used by // the user. They are turned quasi-invisible and overlay the background-image. templatePath: dojo.moduleUrl("dijit.form", "templates/CheckBox.html"), baseClass: "dijitCheckBox", // type: [private] String // type attribute on node. // Overrides `dijit.form.Button.type`. Users should not change this value. type: "checkbox", // value: String // As an initialization parameter, equivalent to value field on normal checkbox // (if checked, the value is passed as the value when form is submitted). // // However, attr('value') will return either the string or false depending on // whether or not the checkbox is checked. // // attr('value', string) will check the checkbox and change the value to the // specified string // // attr('value', boolean) will change the checked state. value: "on", _setValueAttr: function(/*String or Boolean*/ newValue){ // summary: // Handler for value= attribute to constructor, and also calls to // attr('value', val). // description: // During initialization, just saves as attribute to the . // // After initialization, // when passed a boolean, controls whether or not the CheckBox is checked. // If passed a string, changes the value attribute of the CheckBox (the one // specified as "value" when the CheckBox was constructed (ex: ) if(typeof newValue == "string"){ this.value = newValue; dojo.attr(this.focusNode, 'value', newValue); newValue = true; } if(this._created){ this.attr('checked', newValue); } }, _getValueAttr: function(){ // summary: // Hook so attr('value') works. // description: // If the CheckBox is checked, returns the value attribute. // Otherwise returns false. return (this.checked ? this.value : false); }, postMixInProperties: function(){ if(this.value == ""){ this.value = "on"; } // Need to set initial checked state as part of template, so that form submit works. // dojo.attr(node, "checked", bool) doesn't work on IEuntil node has been attached // to , see #8666 this.checkedAttrSetting = this.checked ? "checked" : ""; this.inherited(arguments); }, _fillContent: function(/*DomNode*/ source){ // Override Button::_fillContent() since it doesn't make sense for CheckBox, // since CheckBox doesn't even have a container";s:7:"private";b:1;s:7:"summary";s:0:"";}s:25:"dijit.form.CheckBox.reset";a:4:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:4:"type";s:8:"Function";s:6:"source";s:3496:"dojo.provide("dijit.form.CheckBox"); dojo.require("dijit.form.Button"); dojo.declare( "dijit.form.CheckBox", dijit.form.ToggleButton, { // summary: // Same as an HTML checkbox, but with fancy styling. // // description: // User interacts with real html inputs. // On onclick (which occurs by mouse click, space-bar, or // using the arrow keys to switch the selected radio button), // we update the state of the checkbox/radio. // // There are two modes: // 1. High contrast mode // 2. Normal mode // In case 1, the regular html inputs are shown and used by the user. // In case 2, the regular html inputs are invisible but still used by // the user. They are turned quasi-invisible and overlay the background-image. templatePath: dojo.moduleUrl("dijit.form", "templates/CheckBox.html"), baseClass: "dijitCheckBox", // type: [private] String // type attribute on node. // Overrides `dijit.form.Button.type`. Users should not change this value. type: "checkbox", // value: String // As an initialization parameter, equivalent to value field on normal checkbox // (if checked, the value is passed as the value when form is submitted). // // However, attr('value') will return either the string or false depending on // whether or not the checkbox is checked. // // attr('value', string) will check the checkbox and change the value to the // specified string // // attr('value', boolean) will change the checked state. value: "on", _setValueAttr: function(/*String or Boolean*/ newValue){ // summary: // Handler for value= attribute to constructor, and also calls to // attr('value', val). // description: // During initialization, just saves as attribute to the . // // After initialization, // when passed a boolean, controls whether or not the CheckBox is checked. // If passed a string, changes the value attribute of the CheckBox (the one // specified as "value" when the CheckBox was constructed (ex: ) if(typeof newValue == "string"){ this.value = newValue; dojo.attr(this.focusNode, 'value', newValue); newValue = true; } if(this._created){ this.attr('checked', newValue); } }, _getValueAttr: function(){ // summary: // Hook so attr('value') works. // description: // If the CheckBox is checked, returns the value attribute. // Otherwise returns false. return (this.checked ? this.value : false); }, postMixInProperties: function(){ if(this.value == ""){ this.value = "on"; } // Need to set initial checked state as part of template, so that form submit works. // dojo.attr(node, "checked", bool) doesn't work on IEuntil node has been attached // to , see #8666 this.checkedAttrSetting = this.checked ? "checked" : ""; this.inherited(arguments); }, _fillContent: function(/*DomNode*/ source){ // Override Button::_fillContent() since it doesn't make sense for CheckBox, // since CheckBox doesn't even have a container }, reset: function(){ // Override ToggleButton.reset() this._hasBeenBlurred = false; this.attr('checked', this.params.checked || false); // Handle unlikely event that the value attribute has changed this.value = this.params.value || "on"; dojo.attr(this.focusNode, 'value', this.value);";s:7:"summary";s:0:"";}s:28:"dijit.form.CheckBox._onFocus";a:5:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:4:"type";s:8:"Function";s:6:"source";s:94:" if(this.id){ dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel"); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:27:"dijit.form.CheckBox._onBlur";a:5:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:4:"type";s:8:"Function";s:6:"source";s:97:" if(this.id){ dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel"); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:38:"dijit.form.CheckBox.checkedAttrSetting";a:2:{s:8:"instance";s:19:"dijit.form.CheckBox";s:7:"summary";s:0:"";}s:35:"dijit.form.CheckBox._hasBeenBlurred";a:3:{s:8:"instance";s:19:"dijit.form.CheckBox";s:7:"private";b:1;s:7:"summary";s:0:"";}s:22:"dijit.form.RadioButton";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:19:"dijit.form.CheckBox";}s:4:"call";a:1:{i:0;s:19:"dijit.form.CheckBox";}}s:7:"summary";s:46:"Same as an HTML radio, but with fancy styling.";s:9:"classlike";b:1;}s:27:"dijit.form.RadioButton.type";a:2:{s:9:"prototype";s:22:"dijit.form.RadioButton";s:7:"summary";s:0:"";}s:32:"dijit.form.RadioButton.baseClass";a:2:{s:9:"prototype";s:22:"dijit.form.RadioButton";s:7:"summary";s:0:"";}s:38:"dijit.form.RadioButton._setCheckedAttr";a:6:{s:9:"prototype";s:22:"dijit.form.RadioButton";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:7:"Boolean";}}s:6:"source";s:4703:"dojo.provide("dijit.form.CheckBox"); dojo.require("dijit.form.Button"); dojo.declare( "dijit.form.CheckBox", dijit.form.ToggleButton, { // summary: // Same as an HTML checkbox, but with fancy styling. // // description: // User interacts with real html inputs. // On onclick (which occurs by mouse click, space-bar, or // using the arrow keys to switch the selected radio button), // we update the state of the checkbox/radio. // // There are two modes: // 1. High contrast mode // 2. Normal mode // In case 1, the regular html inputs are shown and used by the user. // In case 2, the regular html inputs are invisible but still used by // the user. They are turned quasi-invisible and overlay the background-image. templatePath: dojo.moduleUrl("dijit.form", "templates/CheckBox.html"), baseClass: "dijitCheckBox", // type: [private] String // type attribute on node. // Overrides `dijit.form.Button.type`. Users should not change this value. type: "checkbox", // value: String // As an initialization parameter, equivalent to value field on normal checkbox // (if checked, the value is passed as the value when form is submitted). // // However, attr('value') will return either the string or false depending on // whether or not the checkbox is checked. // // attr('value', string) will check the checkbox and change the value to the // specified string // // attr('value', boolean) will change the checked state. value: "on", _setValueAttr: function(/*String or Boolean*/ newValue){ // summary: // Handler for value= attribute to constructor, and also calls to // attr('value', val). // description: // During initialization, just saves as attribute to the . // // After initialization, // when passed a boolean, controls whether or not the CheckBox is checked. // If passed a string, changes the value attribute of the CheckBox (the one // specified as "value" when the CheckBox was constructed (ex: ) if(typeof newValue == "string"){ this.value = newValue; dojo.attr(this.focusNode, 'value', newValue); newValue = true; } if(this._created){ this.attr('checked', newValue); } }, _getValueAttr: function(){ // summary: // Hook so attr('value') works. // description: // If the CheckBox is checked, returns the value attribute. // Otherwise returns false. return (this.checked ? this.value : false); }, postMixInProperties: function(){ if(this.value == ""){ this.value = "on"; } // Need to set initial checked state as part of template, so that form submit works. // dojo.attr(node, "checked", bool) doesn't work on IEuntil node has been attached // to , see #8666 this.checkedAttrSetting = this.checked ? "checked" : ""; this.inherited(arguments); }, _fillContent: function(/*DomNode*/ source){ // Override Button::_fillContent() since it doesn't make sense for CheckBox, // since CheckBox doesn't even have a container }, reset: function(){ // Override ToggleButton.reset() this._hasBeenBlurred = false; this.attr('checked', this.params.checked || false); // Handle unlikely event that the value attribute has changed this.value = this.params.value || "on"; dojo.attr(this.focusNode, 'value', this.value); }, _onFocus: function(){ if(this.id){ dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel"); } }, _onBlur: function(){ if(this.id){ dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel"); } } } ); dojo.declare( "dijit.form.RadioButton", dijit.form.CheckBox, { // summary: // Same as an HTML radio, but with fancy styling. type: "radio", baseClass: "dijitRadio", _setCheckedAttr: function(/*Boolean*/ value){ // If I am being checked then have to deselect currently checked radio button this.inherited(arguments); if(!this._created){ return; } if(value){ var _this = this; // search for radio buttons with the same name that need to be unchecked dojo.query("INPUT[type=radio]", this.focusNode.form||dojo.doc).forEach( // can't use name= since dojo.query doesn't support [] in the name function(inputNode){ if(inputNode.name == _this.name && inputNode != _this.focusNode && inputNode.form == _this.focusNode.form){ var widget = dijit.getEnclosingWidget(inputNode); if(widget && widget.checked){ widget.attr('checked', false); } } } ); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:31:"dijit.form.RadioButton._clicked";a:6:{s:9:"prototype";s:22:"dijit.form.RadioButton";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:5:"Event";}}s:6:"source";s:58:" if(!this.checked){ this.attr('checked', true); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:10:"dijit.form";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dijit";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}