a:29:{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:23:"dijit.form.ToggleButton";}}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:464:"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:34:"dijit.form.CheckBox.templateString";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:28:"dijit.form.CheckBox.readOnly";a:4:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:8:"instance";s:19:"dijit.form.CheckBox";s:4:"type";s:7:"Boolean";s:7:"summary";s:317:"Should this widget respond to user input? In markup, this is specified as "readOnly". Similar to disabled except readOnly form values are submitted. the attributeMap should inherit from dijit.form._FormWidget.prototype.attributeMap instead of ToggleButton as the icon mapping has no meaning for a CheckBox";}s:32:"dijit.form.CheckBox.attributeMap";a:2:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:7:"summary";s:0:"";}s:36:"dijit.form.CheckBox._setReadOnlyAttr";a:6:{s:9:"prototype";s:19:"dijit.form.CheckBox";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:131:" this.readOnly = value; dojo.attr(this.focusNode, 'readOnly', value); dijit.setWaiState(this.focusNode, "readonly", value);";s:7:"private";b:1;s:7:"summary";s:0:"";}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:2:{s:8:"newValue";a:1:{s:4:"type";s:17:"String or Boolean";}s:14:"priorityChange";a:1:{s:4:"type";s:7:"Boolean";}}s:6:"source";s:216:" if(typeof newValue == "string"){ this.value = newValue; dojo.attr(this.focusNode, 'value', newValue); newValue = true; } if(this._created){ this.set('checked', newValue, priorityChange); }";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:33:"dijit.form.CheckBox._setLabelAttr";a:3:{s:9:"prototype";s:19:"dijit.form.CheckBox";s:7:"private";b:1;s:7:"summary";s:0:"";}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:4138:"dojo.provide("dijit.form.CheckBox"); dojo.require("dijit.form.ToggleButton"); 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. templateString: dojo.cache("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", // readOnly: Boolean // Should this widget respond to user input? // In markup, this is specified as "readOnly". // Similar to disabled except readOnly form values are submitted. readOnly: false, // the attributeMap should inherit from dijit.form._FormWidget.prototype.attributeMap // instead of ToggleButton as the icon mapping has no meaning for a CheckBox attributeMap: dojo.delegate(dijit.form._FormWidget.prototype.attributeMap, { readOnly: "focusNode" }), _setReadOnlyAttr: function(/*Boolean*/ value){ this.readOnly = value; dojo.attr(this.focusNode, 'readOnly', value); dijit.setWaiState(this.focusNode, "readonly", value); }, _setValueAttr: function(/*String or Boolean*/ newValue, /*Boolean*/ priorityChange){ // 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.set('checked', newValue, priorityChange); } }, _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); }, // Override dijit.form.Button._setLabelAttr() since we don't even have a containerNode. // Normally users won't try to set label, except when CheckBox or RadioButton is the child of a dojox.layout.TabContainer _setLabelAttr: undefined, 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:4476:"dojo.provide("dijit.form.CheckBox"); dojo.require("dijit.form.ToggleButton"); 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. templateString: dojo.cache("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", // readOnly: Boolean // Should this widget respond to user input? // In markup, this is specified as "readOnly". // Similar to disabled except readOnly form values are submitted. readOnly: false, // the attributeMap should inherit from dijit.form._FormWidget.prototype.attributeMap // instead of ToggleButton as the icon mapping has no meaning for a CheckBox attributeMap: dojo.delegate(dijit.form._FormWidget.prototype.attributeMap, { readOnly: "focusNode" }), _setReadOnlyAttr: function(/*Boolean*/ value){ this.readOnly = value; dojo.attr(this.focusNode, 'readOnly', value); dijit.setWaiState(this.focusNode, "readonly", value); }, _setValueAttr: function(/*String or Boolean*/ newValue, /*Boolean*/ priorityChange){ // 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.set('checked', newValue, priorityChange); } }, _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); }, // Override dijit.form.Button._setLabelAttr() since we don't even have a containerNode. // Normally users won't try to set label, except when CheckBox or RadioButton is the child of a dojox.layout.TabContainer _setLabelAttr: undefined, 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.set('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:124:" if(this.id){ dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel"); } this.inherited(arguments);";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:127:" if(this.id){ dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel"); } this.inherited(arguments);";s:7:"private";b:1;s:7:"summary";s:0:"";}s:28:"dijit.form.CheckBox._onClick";a:6:{s:9:"prototype";s:19:"dijit.form.CheckBox";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:81:" if(this.readOnly){ return false; } return this.inherited(arguments);";s:7:"summary";s:107:"Internal function to handle click actions - need to check readOnly, since button no longer does that check.";s:7:"private";b:1;}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:6003:"dojo.provide("dijit.form.CheckBox"); dojo.require("dijit.form.ToggleButton"); 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. templateString: dojo.cache("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", // readOnly: Boolean // Should this widget respond to user input? // In markup, this is specified as "readOnly". // Similar to disabled except readOnly form values are submitted. readOnly: false, // the attributeMap should inherit from dijit.form._FormWidget.prototype.attributeMap // instead of ToggleButton as the icon mapping has no meaning for a CheckBox attributeMap: dojo.delegate(dijit.form._FormWidget.prototype.attributeMap, { readOnly: "focusNode" }), _setReadOnlyAttr: function(/*Boolean*/ value){ this.readOnly = value; dojo.attr(this.focusNode, 'readOnly', value); dijit.setWaiState(this.focusNode, "readonly", value); }, _setValueAttr: function(/*String or Boolean*/ newValue, /*Boolean*/ priorityChange){ // 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.set('checked', newValue, priorityChange); } }, _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); }, // Override dijit.form.Button._setLabelAttr() since we don't even have a containerNode. // Normally users won't try to set label, except when CheckBox or RadioButton is the child of a dojox.layout.TabContainer _setLabelAttr: undefined, 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.set('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"); } this.inherited(arguments); }, _onBlur: function(){ if(this.id){ dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel"); } this.inherited(arguments); }, _onClick: function(/*Event*/ e){ // summary: // Internal function to handle click actions - need to check // readOnly, since button no longer does that check. if(this.readOnly){ return false; } return this.inherited(arguments); } } ); 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.set('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:57:" if(!this.checked){ this.set('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:"";}}