a:38:{s:9:"#provides";s:20:"dojox.grid.Selection";s:9:"#resource";s:17:"grid/Selection.js";s:20:"dojox.grid.Selection";a:5:{s:4:"type";s:8:"Function";s:7:"summary";s:120:"Manages row selection for grid. Owned by grid and used internally for selection. Override to implement custom selection.";s:10:"parameters";a:1:{s:6:"inGrid";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:83:" this.grid = inGrid; this.selected = []; this.setMode(inGrid.selectionMode);";s:9:"classlike";b:1;}s:25:"dojox.grid.Selection.mode";a:3:{s:9:"prototype";s:20:"dojox.grid.Selection";s:8:"instance";s:20:"dojox.grid.Selection";s:7:"summary";s:0:"";}s:29:"dojox.grid.Selection.selected";a:3:{s:9:"prototype";s:20:"dojox.grid.Selection";s:8:"instance";s:20:"dojox.grid.Selection";s:7:"summary";s:0:"";}s:29:"dojox.grid.Selection.updating";a:3:{s:9:"prototype";s:20:"dojox.grid.Selection";s:8:"instance";s:20:"dojox.grid.Selection";s:7:"summary";s:0:"";}s:34:"dojox.grid.Selection.selectedIndex";a:3:{s:9:"prototype";s:20:"dojox.grid.Selection";s:8:"instance";s:20:"dojox.grid.Selection";s:7:"summary";s:0:"";}s:28:"dojox.grid.Selection.setMode";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"mode";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:201:" if(this.selected.length){ this.deselectAll(); } if(mode != 'extended' && mode != 'multiple' && mode != 'single' && mode != 'none'){ this.mode = 'extended'; }else{ this.mode = mode; }";s:7:"summary";s:0:"";}s:32:"dojox.grid.Selection.onCanSelect";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"inIndex";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:40:" return this.grid.onCanSelect(inIndex);";s:7:"summary";s:0:"";}s:34:"dojox.grid.Selection.onCanDeselect";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"inIndex";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:42:" return this.grid.onCanDeselect(inIndex);";s:7:"summary";s:0:"";}s:31:"dojox.grid.Selection.onSelected";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"inIndex";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:0:"";s:7:"summary";s:0:"";}s:33:"dojox.grid.Selection.onDeselected";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"inIndex";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:0:"";s:7:"summary";s:0:"";}s:31:"dojox.grid.Selection.onChanging";a:4:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:6:"source";s:0:"";s:7:"summary";s:0:"";}s:30:"dojox.grid.Selection.onChanged";a:4:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:6:"source";s:0:"";s:7:"summary";s:0:"";}s:31:"dojox.grid.Selection.isSelected";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"inIndex";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:80:" if(this.mode == 'none'){ return false; } return this.selected[inIndex];";s:7:"summary";s:0:"";}s:37:"dojox.grid.Selection.getFirstSelected";a:4:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:6:"source";s:173:" if(!this.selected.length||this.mode == 'none'){ return -1; } for(var i=0, l=this.selected.length; i= 0 ? inFrom : inTo), e = inTo; if(s > e){ e = s; s = inTo; } for(var i=s; i<=e; i++){ func(i); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:32:"dojox.grid.Selection.selectRange";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"inFrom";a:1:{s:4:"type";s:0:"";}s:4:"inTo";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:64:" this._range(inFrom, inTo, dojo.hitch(this, "addToSelection"));";s:7:"summary";s:0:"";}s:34:"dojox.grid.Selection.deselectRange";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"inFrom";a:1:{s:4:"type";s:0:"";}s:4:"inTo";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:58:" this._range(inFrom, inTo, dojo.hitch(this, "deselect"));";s:7:"summary";s:0:"";}s:27:"dojox.grid.Selection.insert";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"inIndex";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:108:" this.selected.splice(inIndex, 0, false); if(this.selectedIndex >= inIndex){ this.selectedIndex++; }";s:7:"summary";s:0:"";}s:27:"dojox.grid.Selection.remove";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"inIndex";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:101:" this.selected.splice(inIndex, 1); if(this.selectedIndex >= inIndex){ this.selectedIndex--; }";s:7:"summary";s:0:"";}s:32:"dojox.grid.Selection.deselectAll";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"inExcept";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:110:" for(var i in this.selected){ if((i!=inExcept)&&(this.selected[i]===true)){ this.deselect(i); } }";s:7:"summary";s:0:"";}s:32:"dojox.grid.Selection.clickSelect";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:7:"inIndex";a:1:{s:4:"type";s:0:"";}s:9:"inCtrlKey";a:1:{s:4:"type";s:0:"";}s:10:"inShiftKey";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:414:" if(this.mode == 'none'){ return; } this._beginUpdate(); if(this.mode != 'extended'){ this.select(inIndex); }else{ var lastSelected = this.selectedIndex; if(!inCtrlKey){ this.deselectAll(inIndex); } if(inShiftKey){ this.selectRange(lastSelected, inIndex); }else if(inCtrlKey){ this.toggleSelect(inIndex); }else{ this.addToSelection(inIndex) } } this._endUpdate();";s:7:"summary";s:0:"";}s:37:"dojox.grid.Selection.clickSelectEvent";a:5:{s:9:"prototype";s:20:"dojox.grid.Selection";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:72:" this.clickSelect(e.rowIndex, dojo.dnd.getCopyKeyState(e), e.shiftKey);";s:7:"summary";s:0:"";}s:26:"dojox.grid.Selection.clear";a:4:{s:9:"prototype";s:20:"dojox.grid.Selection";s:4:"type";s:8:"Function";s:6:"source";s:65:" this._beginUpdate(); this.deselectAll(); this._endUpdate();";s:7:"summary";s:0:"";}s:25:"dojox.grid.Selection.grid";a:2:{s:8:"instance";s:20:"dojox.grid.Selection";s:7:"summary";s:0:"";}s:10:"dojox.grid";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:"";}}