X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/src/selection/CellModel.js diff --git a/src/selection/CellModel.js b/src/selection/CellModel.js index 55e0b5b6..ea5e62ea 100644 --- a/src/selection/CellModel.js +++ b/src/selection/CellModel.js @@ -15,23 +15,22 @@ If you are unsure which license is appropriate for your use, please contact the /** * @class Ext.selection.CellModel * @extends Ext.selection.Model - * @private */ Ext.define('Ext.selection.CellModel', { extend: 'Ext.selection.Model', alias: 'selection.cellmodel', requires: ['Ext.util.KeyNav'], - + /** * @cfg {Boolean} enableKeyNav - * Turns on/off keyboard navigation within the grid. Defaults to true. + * Turns on/off keyboard navigation within the grid. */ enableKeyNav: true, - + /** * @cfg {Boolean} preventWrap * Set this configuration to true to prevent wrapping around of selection as - * a user navigates to the first or last column. Defaults to false. + * a user navigates to the first or last column. */ preventWrap: false, @@ -46,7 +45,7 @@ Ext.define('Ext.selection.CellModel', { * @param {Number} column The column index deselected */ 'deselect', - + /** * @event select * Fired after a cell is selected @@ -57,7 +56,7 @@ Ext.define('Ext.selection.CellModel', { */ 'select' ); - this.callParent(arguments); + this.callParent(arguments); }, bindComponent: function(view) { @@ -80,7 +79,7 @@ Ext.define('Ext.selection.CellModel', { initKeyNav: function(view) { var me = this; - + if (!view.rendered) { view.on('render', Ext.Function.bind(me.initKeyNav, me, [view], 0), me, {single: true}); return; @@ -101,7 +100,7 @@ Ext.define('Ext.selection.CellModel', { scope: me }); }, - + getHeaderCt: function() { return this.primaryView.headerCt; }, @@ -117,11 +116,11 @@ Ext.define('Ext.selection.CellModel', { onKeyLeft: function(e, t) { this.move('left', e); }, - + onKeyRight: function(e, t) { this.move('right', e); }, - + move: function(dir, e) { var me = this, pos = me.primaryView.walkCells(me.getCurrentPosition(), dir, e, me.preventWrap); @@ -137,14 +136,14 @@ Ext.define('Ext.selection.CellModel', { getCurrentPosition: function() { return this.position; }, - + /** * Sets the current position * @param {Object} position The position to set. */ setCurrentPosition: function(pos) { var me = this; - + if (me.position) { me.onCellDeselect(me.position); }