亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? columnmodel.js

?? ext js demo ext學(xué)習(xí)資料
?? JS
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Ext JS Library 1.1 RC 1
 * Copyright(c) 2006-2007, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://www.extjs.com/license
 */

/**
 * @class Ext.grid.ColumnModel
 * @extends Ext.util.Observable
 * This is the default implementation of a ColumnModel used by the Grid. It defines
 * the columns in the grid.
 * <br>Usage:<br>
 <pre><code>
 var colModel = new Ext.grid.ColumnModel([
	{header: "Ticker", width: 60, sortable: true, locked: true},
	{header: "Company Name", width: 150, sortable: true},
	{header: "Market Cap.", width: 100, sortable: true},
	{header: "$ Sales", width: 100, sortable: true, renderer: money},
	{header: "Employees", width: 100, sortable: true, resizable: false}
 ]);
 </code></pre>
 * <p>
 * The config options listed for this class are options which may appear in each
 * individual column definition.
 * @constructor
 * @param {Object} config An Array of column config objects. See this class's
 * config objects for details.
*/
Ext.grid.ColumnModel = function(config){
	/**
     * The config passed into the constructor
     */
    this.config = config;
    this.lookup = {};

    // if no id, create one
    // if the column does not have a dataIndex mapping,
    // map it to the order it is in the config
    for(var i = 0, len = config.length; i < len; i++){
        var c = config[i];
        if(typeof c.dataIndex == "undefined"){
            c.dataIndex = i;
        }
        if(typeof c.renderer == "string"){
            c.renderer = Ext.util.Format[c.renderer];
        }
        if(typeof c.id == "undefined"){
            c.id = i;
        }
        if(c.editor && c.editor.isFormField){
            c.editor = new Ext.grid.GridEditor(c.editor);
        }
        this.lookup[c.id] = c;
    }

    /**
     * The width of columns which have no width specified (defaults to 100)
     * @type Number
     */
    this.defaultWidth = 100;

    /**
     * Default sortable of columns which have no sortable specified (defaults to false)
     * @type Boolean
     */
    this.defaultSortable = false;

    this.addEvents({
        /**
	     * @event widthchange
	     * Fires when the width of a column changes.
	     * @param {ColumnModel} this
	     * @param {Number} columnIndex The column index
	     * @param {Number} newWidth The new width
	     */
	    "widthchange": true,
        /**
	     * @event headerchange
	     * Fires when the text of a header changes.
	     * @param {ColumnModel} this
	     * @param {Number} columnIndex The column index
	     * @param {Number} newText The new header text
	     */
	    "headerchange": true,
        /**
	     * @event hiddenchange
	     * Fires when a column is hidden or "unhidden".
	     * @param {ColumnModel} this
	     * @param {Number} columnIndex The column index
	     * @param {Boolean} hidden true if hidden, false otherwise
	     */
	    "hiddenchange": true,
	    /**
         * @event columnmoved
         * Fires when a column is moved.
         * @param {ColumnModel} this
         * @param {Number} oldIndex
         * @param {Number} newIndex
         */
        "columnmoved" : true,
        /**
         * @event columlockchange
         * Fires when a column's locked state is changed
         * @param {ColumnModel} this
         * @param {Number} colIndex
         * @param {Boolean} locked true if locked
         */
        "columnlockchange" : true
    });
    Ext.grid.ColumnModel.superclass.constructor.call(this);
};
Ext.extend(Ext.grid.ColumnModel, Ext.util.Observable, {
    /**
     * @cfg {String} header The header text to display in the Grid view.
     */
    /**
     * @cfg {String} dataIndex (Optional) The name of the field in the grid's {@link Ext.data.Store}'s
     * {@link Ext.data.Record} definition from which to draw the column's value. If not
     * specified, the column's index is used as an index into the Record's data Array.
     */
    /**
     * @cfg {Number} width (Optional) The initial width in pixels of the column. Using this
     * instead of {@link Ext.grid.Grid#autoSizeColumns} is more efficient.
     */
    /**
     * @cfg {Boolean} sortable (Optional) True if sorting is to be allowed on this column. Defaults to true.
     * Whether local/remote sorting is used is specified in {@link Ext.data.Store#remoteSort}.
     */
    /**
     * @cfg {Boolean} locked (Optional) True to lock the column in place while scrolling the Grid.
     * Defaults to false.
     */
    /**
     * @cfg {Boolean} resizable (Optional) False to disable column resizing. Defaults to true.
     */
    /**
     * @cfg {Boolean} hidden (Optional) True to hide the column. Defaults to false.
     */
    /**
     * @cfg {Function} renderer (Optional) A function used to generate HTML markup for a cell
     * given the cell's data value. See {@link #setRenderer}. If not specified, the
     * default renderer uses the raw data value.
     */
    /**
     * @cfg {String} align (Optional) Set the CSS text-align property of the column.  Defaults to undefined.
     */

    /**
     * Returns the id of the column at the specified index.
     * @param {Number} index The column index
     * @return {String} the id
     */
    getColumnId : function(index){
        return this.config[index].id;
    },

    /**
     * Returns the column for a specified id.
     * @param {String} id The column id
     * @return {Object} the column
     */
    getColumnById : function(id){
        return this.lookup[id];
    },

    /**
     * Returns the index for a specified column id.
     * @param {String} id The column id
     * @return {Number} the index, or -1 if not found
     */
    getIndexById : function(id){
        for(var i = 0, len = this.config.length; i < len; i++){
            if(this.config[i].id == id){
                return i;
            }
        }
        return -1;
    },

    moveColumn : function(oldIndex, newIndex){
        var c = this.config[oldIndex];
        this.config.splice(oldIndex, 1);
        this.config.splice(newIndex, 0, c);
        this.dataMap = null;
        this.fireEvent("columnmoved", this, oldIndex, newIndex);
    },

    isLocked : function(colIndex){
        return this.config[colIndex].locked === true;
    },

    setLocked : function(colIndex, value, suppressEvent){
        if(this.isLocked(colIndex) == value){
            return;
        }
        this.config[colIndex].locked = value;
        if(!suppressEvent){
            this.fireEvent("columnlockchange", this, colIndex, value);
        }
    },

    getTotalLockedWidth : function(){
        var totalWidth = 0;
        for(var i = 0; i < this.config.length; i++){
            if(this.isLocked(i) && !this.isHidden(i)){
                this.totalWidth += this.getColumnWidth(i);
            }
        }
        return totalWidth;
    },

    getLockedCount : function(){
        for(var i = 0, len = this.config.length; i < len; i++){
            if(!this.isLocked(i)){
                return i;
            }
        }
    },

    /**
     * Returns the number of columns.
     * @return {Number}
     */
    getColumnCount : function(visibleOnly){
        if(visibleOnly === true){
            var c = 0;
            for(var i = 0, len = this.config.length; i < len; i++){
                if(!this.isHidden(i)){
                    c++;
                }
            }
            return c;
        }
        return this.config.length;
    },

    /**
     * Returns the column configs that return true by the passed function that is called with (columnConfig, index)
     * @param {Function} fn
     * @param {Object} scope (optional)
     * @return {Array} result

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜电影久久久| 337p亚洲精品色噜噜| 九九国产精品视频| 日韩不卡在线观看日韩不卡视频| 亚洲综合网站在线观看| 亚洲区小说区图片区qvod| 亚洲欧洲美洲综合色网| 最新不卡av在线| 一级精品视频在线观看宜春院| 亚洲视频一二三区| 一区二区在线电影| 午夜视频在线观看一区| 视频一区中文字幕| 经典三级视频一区| 成人国产亚洲欧美成人综合网| 成人av网在线| 欧美做爰猛烈大尺度电影无法无天| 欧美中文一区二区三区| 9191成人精品久久| 久久影院午夜片一区| 国产农村妇女毛片精品久久麻豆| 国产精品国产自产拍高清av| 一区二区三区高清| 免费美女久久99| 顶级嫩模精品视频在线看| 99免费精品在线观看| 精品视频在线免费看| 精品国产露脸精彩对白| 中文字幕中文乱码欧美一区二区| 亚洲动漫第一页| 国产一区二区三区在线观看免费视频| 国产精品自拍一区| 在线一区二区观看| 精品免费国产二区三区| 国产精品理伦片| 日韩av不卡一区二区| 福利一区福利二区| 91精品一区二区三区久久久久久 | 久久久亚洲欧洲日产国码αv| 国产精品午夜在线| 日韩—二三区免费观看av| 国产盗摄女厕一区二区三区| 在线日韩av片| 国产精品久久久久天堂| 日韩高清一级片| 91尤物视频在线观看| www国产亚洲精品久久麻豆| 一区二区三区国产豹纹内裤在线| 韩国三级中文字幕hd久久精品| 日本道精品一区二区三区 | 99久久伊人网影院| 日韩精品一区二区三区四区视频 | 国产精品区一区二区三区| 日韩激情在线观看| 99久久久久免费精品国产| 欧美电影免费观看高清完整版在线观看 | 中文子幕无线码一区tr| 日韩精品成人一区二区三区| 日本韩国一区二区三区| 国产精品理论片在线观看| 黄一区二区三区| 91精品国产黑色紧身裤美女| 亚洲一区二区精品久久av| 成人免费高清视频| 欧美激情一区三区| 国产风韵犹存在线视精品| 91精品国产手机| 日韩精品一二区| 在线成人av网站| 丝袜美腿成人在线| 欧美精品777| 日韩国产欧美在线播放| 欧美老年两性高潮| 亚洲成人资源网| 欧美日韩一区不卡| 午夜精品aaa| 91精品国产欧美日韩| 日韩国产一二三区| 日韩一区二区免费在线观看| 视频一区二区国产| 日韩精品专区在线影院观看| 激情国产一区二区| 日本一区二区久久| av电影在线观看完整版一区二区| 国产精品护士白丝一区av| 色综合色综合色综合色综合色综合| 亚洲欧美日韩中文字幕一区二区三区 | 激情六月婷婷久久| 国产亚洲女人久久久久毛片| 国产成+人+日韩+欧美+亚洲| 成人欧美一区二区三区白人| 欧洲中文字幕精品| 日韩在线卡一卡二| 久久久电影一区二区三区| 成人免费观看视频| 亚洲高清免费一级二级三级| 91麻豆精品国产91| 国产超碰在线一区| 亚洲一区二区三区四区五区中文| 欧美精品一级二级三级| 激情欧美一区二区| 亚洲精品高清在线| 日韩欧美一级片| 成人va在线观看| 夜夜精品浪潮av一区二区三区| 欧美久久婷婷综合色| 久久99精品久久久久久| 国产精品对白交换视频| 欧美日韩一二区| 狠狠色狠狠色合久久伊人| 久久久高清一区二区三区| 成人激情校园春色| 亚洲成人午夜影院| 国产欧美日韩三级| 欧美日韩国产片| 国产成人午夜精品影院观看视频 | 91免费精品国自产拍在线不卡 | 欧美成人a视频| 99国产精品视频免费观看| 亚洲一区二区高清| 欧美国产精品一区| 6080yy午夜一二三区久久| 成人av综合在线| 蓝色福利精品导航| 一区二区日韩av| 久久精品水蜜桃av综合天堂| 欧美猛男超大videosgay| 成人午夜又粗又硬又大| 午夜精品久久久久久久久| 中文字幕日韩一区二区| 日韩天堂在线观看| 在线观看日韩精品| 成人免费观看av| 国产毛片一区二区| 日韩高清电影一区| 亚洲国产视频一区二区| 国产精品久久三区| 久久这里只有精品6| 欧美一区二区三区在| 在线亚洲一区二区| 97久久精品人人做人人爽| 国产精品一区二区久激情瑜伽| 日韩中文字幕亚洲一区二区va在线| 一区二区三区在线播| 国产精品久久久久久久久动漫| 久久久国产精华| 久久新电视剧免费观看| 91精品国产欧美一区二区成人| 欧美日本在线一区| 欧美性色黄大片手机版| 一本大道综合伊人精品热热| www.亚洲精品| 成人精品免费视频| 99久久99久久久精品齐齐| 成人av资源在线| 91香蕉视频黄| 91视频免费观看| 色狠狠av一区二区三区| 欧美天堂一区二区三区| 欧美撒尿777hd撒尿| 欧美日韩一区在线观看| 欧美日韩一区高清| 欧美一激情一区二区三区| 欧美xxx久久| 久久久久国产精品麻豆| 中文字幕 久热精品 视频在线| 国产精品麻豆久久久| 国产精品久久国产精麻豆99网站| 亚洲丝袜制服诱惑| 亚洲成av人影院| 男人的j进女人的j一区| 精品一区二区三区不卡 | 91精品国产高清一区二区三区蜜臀| 欧美日韩精品是欧美日韩精品| 91精品久久久久久久99蜜桃| 日韩亚洲国产中文字幕欧美| 精品国产麻豆免费人成网站| 日本一区二区免费在线| 1024国产精品| 日韩电影免费在线观看网站| 国内精品视频666| www.一区二区| 制服丝袜亚洲网站| 久久精品日韩一区二区三区| 亚洲综合久久久| 国模娜娜一区二区三区| 97精品久久久午夜一区二区三区| 欧美日韩国产经典色站一区二区三区| 91精品在线免费观看| 国产精品嫩草影院av蜜臀| 亚洲网友自拍偷拍| 国产精一品亚洲二区在线视频| 99re亚洲国产精品| 日韩一区二区免费在线观看| 一区在线观看免费| 狠狠色综合播放一区二区| 在线观看www91| 国产色综合久久| 日韩av在线发布| 欧美自拍丝袜亚洲|