a:26:{s:9:"#provides";s:14:"dijit.MenuItem";s:9:"#resource";s:11:"MenuItem.js";s:9:"#requires";a:3:{i:0;a:2:{i:0;s:6:"common";i:1;s:13:"dijit._Widget";}i:1;a:2:{i:0;s:6:"common";i:1;s:16:"dijit._Templated";}i:2;a:2:{i:0;s:6:"common";i:1;s:16:"dijit._Contained";}}s:14:"dijit.MenuItem";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:3:{i:0;s:13:"dijit._Widget";i:1;s:16:"dijit._Templated";i:2;s:16:"dijit._Contained";}}s:6:"mixins";a:1:{s:9:"prototype";a:2:{i:0;s:26:"dijit._Templated.prototype";i:1;s:26:"dijit._Contained.prototype";}}s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:27:"dijit.MenuItem.templatePath";a:2:{s:9:"prototype";s:14:"dijit.MenuItem";s:7:"summary";s:0:"";}s:27:"dijit.MenuItem.attributeMap";a:2:{s:9:"prototype";s:14:"dijit.MenuItem";s:7:"summary";s:0:"";}s:20:"dijit.MenuItem.label";a:3:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:6:"String";s:7:"summary";s:9:"Menu text";}s:24:"dijit.MenuItem.iconClass";a:3:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:6:"String";s:7:"summary";s:53:"Class to apply to DOMNode to make it display an icon.";}s:23:"dijit.MenuItem.accelKey";a:4:{s:9:"prototype";s:14:"dijit.MenuItem";s:8:"instance";s:14:"dijit.MenuItem";s:4:"type";s:6:"String";s:7:"summary";s:182:"Text for the accelerator (shortcut) key combination. Note that although Menu can display accelerator keys there is no infrastructure to actually catch and execute these accelerators.";}s:23:"dijit.MenuItem.disabled";a:4:{s:9:"prototype";s:14:"dijit.MenuItem";s:8:"instance";s:14:"dijit.MenuItem";s:4:"type";s:7:"Boolean";s:7:"summary";s:71:"If true, the menu item is disabled. If false, the menu item is enabled.";}s:27:"dijit.MenuItem._fillContent";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";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:1397:"dojo.provide("dijit.MenuItem"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dijit._Contained"); dojo.declare("dijit.MenuItem", [dijit._Widget, dijit._Templated, dijit._Contained], { // summary: // A line item in a Menu Widget // Make 3 columns // icon, label, and expand arrow (BiDi-dependent) indicating sub-menu templatePath: dojo.moduleUrl("dijit", "templates/MenuItem.html"), attributeMap: dojo.delegate(dijit._Widget.prototype.attributeMap, { label: { node: "containerNode", type: "innerHTML" }, iconClass: { node: "iconNode", type: "class" } }), // label: String // Menu text label: '', // iconClass: String // Class to apply to DOMNode to make it display an icon. iconClass: "", // accelKey: String // Text for the accelerator (shortcut) key combination. // Note that although Menu can display accelerator keys there // is no infrastructure to actually catch and execute these // accelerators. accelKey: "", // disabled: Boolean // If true, the menu item is disabled. // If false, the menu item is enabled. disabled: false, _fillContent: function(/*DomNode*/ source){ // If button label is specified as srcNodeRef.innerHTML rather than // this.params.label, handle it here. if(source && !("label" in this.params)){ this.attr('label', source.innerHTML); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:25:"dijit.MenuItem.postCreate";a:4:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:6:"source";s:167:" dojo.setSelectable(this.domNode, false); dojo.attr(this.containerNode, "id", this.id+"_text"); dijit.setWaiState(this.domNode, "labelledby", this.id+"_text");";s:7:"summary";s:0:"";}s:23:"dijit.MenuItem._onHover";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:6:"source";s:92:" dojo.addClass(this.domNode, 'dijitMenuItemHover'); this.getParent().onItemHover(this);";s:7:"summary";s:42:"Handler when mouse is moved onto menu item";s:4:"tags";s:9:"protected";s:7:"private";b:1;}s:25:"dijit.MenuItem._onUnhover";a:5:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:6:"source";s:2223:"dojo.provide("dijit.MenuItem"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dijit._Contained"); dojo.declare("dijit.MenuItem", [dijit._Widget, dijit._Templated, dijit._Contained], { // summary: // A line item in a Menu Widget // Make 3 columns // icon, label, and expand arrow (BiDi-dependent) indicating sub-menu templatePath: dojo.moduleUrl("dijit", "templates/MenuItem.html"), attributeMap: dojo.delegate(dijit._Widget.prototype.attributeMap, { label: { node: "containerNode", type: "innerHTML" }, iconClass: { node: "iconNode", type: "class" } }), // label: String // Menu text label: '', // iconClass: String // Class to apply to DOMNode to make it display an icon. iconClass: "", // accelKey: String // Text for the accelerator (shortcut) key combination. // Note that although Menu can display accelerator keys there // is no infrastructure to actually catch and execute these // accelerators. accelKey: "", // disabled: Boolean // If true, the menu item is disabled. // If false, the menu item is enabled. disabled: false, _fillContent: function(/*DomNode*/ source){ // If button label is specified as srcNodeRef.innerHTML rather than // this.params.label, handle it here. if(source && !("label" in this.params)){ this.attr('label', source.innerHTML); } }, postCreate: function(){ dojo.setSelectable(this.domNode, false); dojo.attr(this.containerNode, "id", this.id+"_text"); dijit.setWaiState(this.domNode, "labelledby", this.id+"_text"); }, _onHover: function(){ // summary: // Handler when mouse is moved onto menu item // tags: // protected dojo.addClass(this.domNode, 'dijitMenuItemHover'); this.getParent().onItemHover(this); }, _onUnhover: function(){ // summary: // Handler when mouse is moved off of menu item, // possibly to a child menu, or maybe to a sibling // menuitem or somewhere else entirely. // tags: // protected // if we are unhovering the currently selected item // then unselect it dojo.removeClass(this.domNode, 'dijitMenuItemHover'); this.getParent().onItemUnhover(this);";s:7:"summary";s:130:"Handler when mouse is moved off of menu item, possibly to a child menu, or maybe to a sibling menuitem or somewhere else entirely.";s:7:"private";b:1;}s:23:"dijit.MenuItem._onClick";a:7:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"evt";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:67:" this.getParent().onItemClick(this, evt); dojo.stopEvent(evt);";s:7:"summary";s:46:"Internal handler for click events on MenuItem.";s:4:"tags";s:7:"private";s:7:"private";b:1;}s:22:"dijit.MenuItem.onClick";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"evt";a:1:{s:4:"type";s:5:"Event";}}s:6:"source";s:88:" // summary: // User defined function to handle clicks // tags: // callback";s:7:"summary";s:38:"User defined function to handle clicks";s:4:"tags";s:8:"callback";}s:20:"dijit.MenuItem.focus";a:4:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:6:"source";s:113:" try{ dijit.focus(this.focusNode); }catch(e){ // this throws on IE (at least) in some scenarios }";s:7:"summary";s:22:"Focus on this MenuItem";}s:23:"dijit.MenuItem._onFocus";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:6:"source";s:68:" this._setSelected(true); // TODO: this.inherited(arguments);";s:7:"summary";s:85:"This is called by the focus manager when focus goes to this MenuItem or a child menu.";s:4:"tags";s:9:"protected";s:7:"private";b:1;}s:27:"dijit.MenuItem._setSelected";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"selected";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:3718:"dojo.provide("dijit.MenuItem"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dijit._Contained"); dojo.declare("dijit.MenuItem", [dijit._Widget, dijit._Templated, dijit._Contained], { // summary: // A line item in a Menu Widget // Make 3 columns // icon, label, and expand arrow (BiDi-dependent) indicating sub-menu templatePath: dojo.moduleUrl("dijit", "templates/MenuItem.html"), attributeMap: dojo.delegate(dijit._Widget.prototype.attributeMap, { label: { node: "containerNode", type: "innerHTML" }, iconClass: { node: "iconNode", type: "class" } }), // label: String // Menu text label: '', // iconClass: String // Class to apply to DOMNode to make it display an icon. iconClass: "", // accelKey: String // Text for the accelerator (shortcut) key combination. // Note that although Menu can display accelerator keys there // is no infrastructure to actually catch and execute these // accelerators. accelKey: "", // disabled: Boolean // If true, the menu item is disabled. // If false, the menu item is enabled. disabled: false, _fillContent: function(/*DomNode*/ source){ // If button label is specified as srcNodeRef.innerHTML rather than // this.params.label, handle it here. if(source && !("label" in this.params)){ this.attr('label', source.innerHTML); } }, postCreate: function(){ dojo.setSelectable(this.domNode, false); dojo.attr(this.containerNode, "id", this.id+"_text"); dijit.setWaiState(this.domNode, "labelledby", this.id+"_text"); }, _onHover: function(){ // summary: // Handler when mouse is moved onto menu item // tags: // protected dojo.addClass(this.domNode, 'dijitMenuItemHover'); this.getParent().onItemHover(this); }, _onUnhover: function(){ // summary: // Handler when mouse is moved off of menu item, // possibly to a child menu, or maybe to a sibling // menuitem or somewhere else entirely. // tags: // protected // if we are unhovering the currently selected item // then unselect it dojo.removeClass(this.domNode, 'dijitMenuItemHover'); this.getParent().onItemUnhover(this); }, _onClick: function(evt){ // summary: // Internal handler for click events on MenuItem. // tags: // private this.getParent().onItemClick(this, evt); dojo.stopEvent(evt); }, onClick: function(/*Event*/ evt){ // summary: // User defined function to handle clicks // tags: // callback }, focus: function(){ // summary: // Focus on this MenuItem try{ dijit.focus(this.focusNode); }catch(e){ // this throws on IE (at least) in some scenarios } }, _onFocus: function(){ // summary: // This is called by the focus manager when focus // goes to this MenuItem or a child menu. // tags: // protected this._setSelected(true); // TODO: this.inherited(arguments); }, _setSelected: function(selected){ // summary: // Indicate that this node is the currently selected one // tags: // private /*** * TODO: remove this method and calls to it, when _onBlur() is working for MenuItem. * Currently _onBlur() gets called when focus is moved from the MenuItem to a child menu. * That's not supposed to happen, but the problem is: * In order to allow dijit.popup's getTopPopup() to work,a sub menu's popupParent * points to the parent Menu, bypassing the parent MenuItem... thus the * MenuItem is not in the chain of active widgets and gets a premature call to * _onBlur() */ dojo.toggleClass(this.domNode, "dijitMenuItemSelected", selected);";s:7:"summary";s:53:"Indicate that this node is the currently selected one";s:7:"private";b:1;}s:23:"dijit.MenuItem.setLabel";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"content";a:1:{s:4:"type";s:6:"String";}}s:6:"source";s:139:" dojo.deprecated("dijit.MenuItem.setLabel() is deprecated. Use attr('label', ...) instead.", "", "2.0"); this.attr("label", content);";s:7:"summary";s:45:"Deprecated. Use attr('label', ...) instead.";s:4:"tags";s:10:"deprecated";}s:26:"dijit.MenuItem.setDisabled";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"disabled";a:1:{s:4:"type";s:7:"Boolean";}}s:6:"source";s:146:" dojo.deprecated("dijit.Menu.setDisabled() is deprecated. Use attr('disabled', bool) instead.", "", "2.0"); this.attr('disabled', disabled);";s:7:"summary";s:49:"Deprecated. Use attr('disabled', bool) instead.";s:4:"tags";s:10:"deprecated";}s:31:"dijit.MenuItem._setDisabledAttr";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";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:185:" this.disabled = value; dojo[value ? "addClass" : "removeClass"](this.domNode, 'dijitMenuItemDisabled'); dijit.setWaiState(this.focusNode, 'disabled', value ? 'true' : 'false');";s:7:"summary";s:73:"Hook for attr('disabled', ...) to work. Enable or disable this menu item.";s:7:"private";b:1;}s:31:"dijit.MenuItem._setAccelKeyAttr";a:6:{s:9:"prototype";s:14:"dijit.MenuItem";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"value";a:1:{s:4:"type";s:6:"String";}}s:6:"source";s:220:" this.accelKey=value; this.accelKeyNode.style.display=value?"":"none"; this.accelKeyNode.innerHTML=value; //have to use colSpan to make it work in IE dojo.attr(this.containerNode,'colSpan',value?"1":"2");";s:7:"summary";s:71:"Hook for attr('accelKey', ...) to work. Set accelKey on this menu item.";s:7:"private";b:1;}s:41:"dijit.MenuItem.accelKeyNode.style.display";a:2:{s:8:"instance";s:14:"dijit.MenuItem";s:7:"summary";s:0:"";}s:37:"dijit.MenuItem.accelKeyNode.innerHTML";a:2:{s:8:"instance";s:14:"dijit.MenuItem";s:7:"summary";s:0:"";}s:5:"dijit";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}