a:37:{s:9:"#provides";s:29:"dojox.form.CheckedMultiSelect";s:9:"#resource";s:26:"form/CheckedMultiSelect.js";s:9:"#requires";a:2:{i:0;a:3:{i:0;s:6:"common";i:1;s:19:"dijit.form.CheckBox";i:2;s:5:"dijit";}i:1;a:2:{i:0;s:6:"common";i:1;s:28:"dojox.form._FormSelectWidget";}}s:34:"dojox.form._CheckedMultiSelectItem";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:13:"dijit._Widget";}s:4:"call";a:2:{i:0;s:13:"dijit._Widget";i:1;s:16:"dijit._Templated";}}s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:26:"dijit._Templated.prototype";}}s:7:"summary";s:45:"The individual items for a CheckedMultiSelect";s:9:"classlike";b:1;}s:52:"dojox.form._CheckedMultiSelectItem.widgetsInTemplate";a:2:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:7:"summary";s:0:"";}s:47:"dojox.form._CheckedMultiSelectItem.templatePath";a:2:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:7:"summary";s:0:"";}s:44:"dojox.form._CheckedMultiSelectItem.baseClass";a:2:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:7:"summary";s:0:"";}s:41:"dojox.form._CheckedMultiSelectItem.option";a:3:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:25:"dojox.form.__SelectOption";s:7:"summary";s:44:"The option that is associated with this item";}s:41:"dojox.form._CheckedMultiSelectItem.parent";a:2:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:7:"summary";s:0:"";}s:43:"dojox.form._CheckedMultiSelectItem.disabled";a:4:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:8:"instance";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:7:"boolean";s:7:"summary";s:38:"Whether or not this widget is disabled";}s:43:"dojox.form._CheckedMultiSelectItem.readOnly";a:4:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:8:"instance";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:7:"boolean";s:7:"summary";s:38:"Whether or not this widget is readOnly";}s:54:"dojox.form._CheckedMultiSelectItem.postMixInProperties";a:4:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:8:"Function";s:6:"source";s:264:" if(this.parent._multiValue){ this._type = {type: "checkbox", baseClass: "dijitCheckBox"}; }else{ this._type = {type: "radio", baseClass: "dijitRadio"}; } this.disabled = this.option.disabled = this.option.disabled||false; this.inherited(arguments);";s:7:"summary";s:80:"Set the appropriate _subClass value - based on if we are multi- or single-select";}s:45:"dojox.form._CheckedMultiSelectItem.postCreate";a:4:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:8:"Function";s:6:"source";s:76:" this.inherited(arguments); this.labelNode.innerHTML = this.option.label;";s:7:"summary";s:79:"Set innerHTML here - since the template gets messed up sometimes with rich text";}s:45:"dojox.form._CheckedMultiSelectItem._changeBox";a:5:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:8:"Function";s:6:"source";s:334:" if(this.attr("disabled") || this.attr("readOnly")){ return; } if(this.parent._multiValue){ this.option.selected = this.checkBox.attr('value') && true; }else{ this.parent.attr('value', this.option.value); } // fire the parent's change this.parent._updateSelection(); // refocus the parent this.parent.focus();";s:7:"summary";s:136:"Called to force the select to match the state of the check box (only on click of the checkbox) Radio-based calls _setValueAttr instead.";s:7:"private";b:1;}s:43:"dojox.form._CheckedMultiSelectItem._onMouse";a:6:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:118:" if(this.attr("disabled") || this.attr("readOnly")){ dojo.stopEvent(e); }else{ this.checkBox._onMouse(e); }";s:7:"summary";s:79:"Sets the hover state depending on mouse state (passes through to the check box)";s:7:"private";b:1;}s:43:"dojox.form._CheckedMultiSelectItem._onClick";a:6:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:118:" if(this.attr("disabled") || this.attr("readOnly")){ dojo.stopEvent(e); }else{ this.checkBox._onClick(e); }";s:7:"summary";s:54:"Sets the click state (passes through to the check box)";s:7:"private";b:1;}s:45:"dojox.form._CheckedMultiSelectItem._updateBox";a:5:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:8:"Function";s:6:"source";s:52:" this.checkBox.attr('value', this.option.selected);";s:7:"summary";s:56:"Called to force the box to match the state of the select";s:7:"private";b:1;}s:51:"dojox.form._CheckedMultiSelectItem._setDisabledAttr";a:6:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:172:" this.disabled = value||this.option.disabled; this.checkBox.attr("disabled", this.disabled); dojo.toggleClass(this.domNode, "dojoxMultiSelectDisabled", this.disabled);";s:7:"summary";s:46:"Disables (or enables) all the children as well";s:7:"private";b:1;}s:51:"dojox.form._CheckedMultiSelectItem._setReadOnlyAttr";a:6:{s:9:"prototype";s:34:"dojox.form._CheckedMultiSelectItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:99:" this.checkBox.attr("readOnly", value); this.checkBox._setStateClass(); this.readOnly = value;";s:7:"summary";s:51:"Sets read only (or unsets) all the children as well";s:7:"private";b:1;}s:40:"dojox.form._CheckedMultiSelectItem._type";a:3:{s:8:"instance";s:34:"dojox.form._CheckedMultiSelectItem";s:7:"private";b:1;s:7:"summary";s:0:"";}s:54:"dojox.form._CheckedMultiSelectItem.labelNode.innerHTML";a:2:{s:8:"instance";s:34:"dojox.form._CheckedMultiSelectItem";s:7:"summary";s:0:"";}s:50:"dojox.form._CheckedMultiSelectItem.option.selected";a:2:{s:8:"instance";s:34:"dojox.form._CheckedMultiSelectItem";s:7:"summary";s:0:"";}s:29:"dojox.form.CheckedMultiSelect";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:28:"dojox.form._FormSelectWidget";}s:4:"call";a:1:{i:0;s:28:"dojox.form._FormSelectWidget";}}s:7:"summary";s:77:"Extends the core dijit MultiSelect to provide a "checkbox" selector";s:9:"classlike";b:1;}s:44:"dojox.form.CheckedMultiSelect.templateString";a:2:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:7:"summary";s:0:"";}s:42:"dojox.form.CheckedMultiSelect.templatePath";a:2:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:7:"summary";s:0:"";}s:39:"dojox.form.CheckedMultiSelect.baseClass";a:2:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:7:"summary";s:0:"";}s:40:"dojox.form.CheckedMultiSelect._mouseDown";a:6:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:20:" dojo.stopEvent(e);";s:7:"summary";s:65:"Cancels the mousedown event to prevent others from stealing focus";s:7:"private";b:1;}s:44:"dojox.form.CheckedMultiSelect._addOptionItem";a:6:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"option";a:1:{s:4:"type";s:25:"dojox.form.__SelectOption";}}s:6:"source";s:120:" this.wrapperDiv.appendChild(new dojox.form._CheckedMultiSelectItem({ option: option, parent: this }).domNode);";s:7:"private";b:1;s:7:"summary";s:0:"";}s:46:"dojox.form.CheckedMultiSelect._updateSelection";a:5:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:4:"type";s:8:"Function";s:6:"source";s:97:" this.inherited(arguments); dojo.forEach(this._getChildren(), function(c){ c._updateBox(); });";s:7:"private";b:1;s:7:"summary";s:0:"";}s:42:"dojox.form.CheckedMultiSelect._getChildren";a:5:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:4:"type";s:8:"Function";s:6:"source";s:91:" return dojo.map(this.wrapperDiv.childNodes, function(n){ return dijit.byNode(n); });";s:7:"private";b:1;s:7:"summary";s:0:"";}s:45:"dojox.form.CheckedMultiSelect.invertSelection";a:5:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"onChange";a:2:{s:4:"type";s:7:"Boolean";s:7:"summary";s:31:"If null, onChange is not fired.";}}s:6:"source";s:103:" dojo.forEach(this.options, function(i){ i.selected = !i.selected; }); this._updateSelection();";s:7:"summary";s:20:"Invert the selection";}s:46:"dojox.form.CheckedMultiSelect._setDisabledAttr";a:6:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:151:" this.inherited(arguments); dojo.forEach(this._getChildren(), function(node){ if(node && node.attr){ node.attr("disabled", value); } });";s:7:"summary";s:44:"Disable (or enable) all the children as well";s:7:"private";b:1;}s:46:"dojox.form.CheckedMultiSelect._setReadOnlyAttr";a:6:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:254:" if("readOnly" in this.attributeMap){ this._attrToDom("readOnly", value); } this.readOnly = value; dojo.forEach(this._getChildren(), function(node){ if(node && node.attr){ node.attr("readOnly", value); } }); this._setStateClass();";s:7:"summary";s:51:"Sets read only (or unsets) all the children as well";s:7:"private";b:1;}s:42:"dojox.form.CheckedMultiSelect.uninitialize";a:4:{s:9:"prototype";s:29:"dojox.form.CheckedMultiSelect";s:4:"type";s:8:"Function";s:6:"source";s:4979:"dojo.provide("dojox.form.CheckedMultiSelect"); dojo.require("dijit.form.CheckBox"); dojo.require("dojox.form._FormSelectWidget"); dojo.declare("dojox.form._CheckedMultiSelectItem", [dijit._Widget, dijit._Templated], { // summary: // The individual items for a CheckedMultiSelect widgetsInTemplate: true, templatePath: dojo.moduleUrl("dojox.form", "resources/_CheckedMultiSelectItem.html"), baseClass: "dojoxMultiSelectItem", // option: dojox.form.__SelectOption // The option that is associated with this item option: null, parent: null, // disabled: boolean // Whether or not this widget is disabled disabled: false, // readOnly: boolean // Whether or not this widget is readOnly readOnly: false, postMixInProperties: function(){ // summary: // Set the appropriate _subClass value - based on if we are multi- // or single-select if(this.parent._multiValue){ this._type = {type: "checkbox", baseClass: "dijitCheckBox"}; }else{ this._type = {type: "radio", baseClass: "dijitRadio"}; } this.disabled = this.option.disabled = this.option.disabled||false; this.inherited(arguments); }, postCreate: function(){ // summary: // Set innerHTML here - since the template gets messed up sometimes // with rich text this.inherited(arguments); this.labelNode.innerHTML = this.option.label; }, _changeBox: function(){ // summary: // Called to force the select to match the state of the check box // (only on click of the checkbox) Radio-based calls _setValueAttr // instead. if(this.attr("disabled") || this.attr("readOnly")){ return; } if(this.parent._multiValue){ this.option.selected = this.checkBox.attr('value') && true; }else{ this.parent.attr('value', this.option.value); } // fire the parent's change this.parent._updateSelection(); // refocus the parent this.parent.focus(); }, _onMouse: function(e){ // summary: // Sets the hover state depending on mouse state (passes through // to the check box) if(this.attr("disabled") || this.attr("readOnly")){ dojo.stopEvent(e); }else{ this.checkBox._onMouse(e); } }, _onClick: function(e){ // summary: // Sets the click state (passes through to the check box) if(this.attr("disabled") || this.attr("readOnly")){ dojo.stopEvent(e); }else{ this.checkBox._onClick(e); } }, _updateBox: function(){ // summary: // Called to force the box to match the state of the select this.checkBox.attr('value', this.option.selected); }, _setDisabledAttr: function(value){ // summary: // Disables (or enables) all the children as well this.disabled = value||this.option.disabled; this.checkBox.attr("disabled", this.disabled); dojo.toggleClass(this.domNode, "dojoxMultiSelectDisabled", this.disabled); }, _setReadOnlyAttr: function(value){ // summary: // Sets read only (or unsets) all the children as well this.checkBox.attr("readOnly", value); this.checkBox._setStateClass(); this.readOnly = value; } }); dojo.declare("dojox.form.CheckedMultiSelect", dojox.form._FormSelectWidget, { // summary: // Extends the core dijit MultiSelect to provide a "checkbox" selector templateString: "", templatePath: dojo.moduleUrl("dojox.form", "resources/CheckedMultiSelect.html"), baseClass: "dojoxMultiSelect", _mouseDown: function(e){ // summary: // Cancels the mousedown event to prevent others from stealing // focus dojo.stopEvent(e); }, _addOptionItem: function(/* dojox.form.__SelectOption */ option){ this.wrapperDiv.appendChild(new dojox.form._CheckedMultiSelectItem({ option: option, parent: this }).domNode); }, _updateSelection: function(){ this.inherited(arguments); dojo.forEach(this._getChildren(), function(c){ c._updateBox(); }); }, _getChildren: function(){ return dojo.map(this.wrapperDiv.childNodes, function(n){ return dijit.byNode(n); }); }, invertSelection: function(onChange){ // summary: Invert the selection // onChange: Boolean // If null, onChange is not fired. dojo.forEach(this.options, function(i){ i.selected = !i.selected; }); this._updateSelection(); }, _setDisabledAttr: function(value){ // summary: // Disable (or enable) all the children as well this.inherited(arguments); dojo.forEach(this._getChildren(), function(node){ if(node && node.attr){ node.attr("disabled", value); } }); }, _setReadOnlyAttr: function(value){ // summary: // Sets read only (or unsets) all the children as well if("readOnly" in this.attributeMap){ this._attrToDom("readOnly", value); } this.readOnly = value; dojo.forEach(this._getChildren(), function(node){ if(node && node.attr){ node.attr("readOnly", value); } }); this._setStateClass(); }, uninitialize: function(){ // Make sure these children are destroyed dojo.forEach(this._getChildren(), function(child){ child.destroyRecursive(); });";s:7:"summary";s:0:"";}s:38:"dojox.form.CheckedMultiSelect.readOnly";a:2:{s:8:"instance";s:29:"dojox.form.CheckedMultiSelect";s:7:"summary";s:0:"";}s:10:"dojox.form";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}