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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? contentpanels.js

?? ext js demo ext學習資料
?? 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.ContentPanel
 * @extends Ext.util.Observable
 * A basic ContentPanel element.
 * @cfg {Boolean} fitToFrame True for this panel to adjust its size to fit when the region resizes  (defaults to false)
 * @cfg {Boolean} fitContainer When using {@link #fitToFrame} and {@link #resizeEl}, you can also fit the parent container  (defaults to false)
 * @cfg {Boolean/Object} autoCreate True to auto generate the DOM element for this panel, or a {@link Ext.DomHelper} config of the element to create
 * @cfg {Boolean} closable True if the panel can be closed/removed
 * @cfg {Boolean} background True if the panel should not be activated when it is added (defaults to false)
 * @cfg {String/HTMLElement/Element} resizeEl An element to resize if {@link #fitToFrame} is true (instead of this panel's element)
 * @cfg {Toolbar} toolbar A toolbar for this panel
 * @cfg {Boolean} autoScroll True to scroll overflow in this panel (use with {@link #fitToFrame})
 * @cfg {String} title The title for this panel
 * @cfg {Array} adjustments Values to <b>add</b> to the width/height when doing a {@link #fitToFrame} (default is [0, 0])
 * @cfg {String} url Calls {@link #setUrl} with this value
 * @cfg {String/Object} params When used with {@link #url}, calls {@link #setUrl} with this value
 * @cfg {Boolean} loadOnce When used with {@link #url}, calls {@link #setUrl} with this value
 * @constructor
 * Create a new ContentPanel.
 * @param {String/HTMLElement/Ext.Element} el The container element for this panel
 * @param {String/Object} config A string to set only the title or a config object
 * @param {String} content (optional) Set the HTML content for this panel
 */
Ext.ContentPanel = function(el, config, content){
    if(el.autoCreate){
        config = el;
        el = Ext.id();
    }
    this.el = Ext.get(el);
    if(!this.el && config && config.autoCreate){
        if(typeof config.autoCreate == "object"){
            if(!config.autoCreate.id){
                config.autoCreate.id = config.id||el;
            }
            this.el = Ext.DomHelper.append(document.body,
                        config.autoCreate, true);
        }else{
            this.el = Ext.DomHelper.append(document.body,
                        {tag: "div", cls: "x-layout-inactive-content", id: config.id||el}, true);
        }
    }
    this.closable = false;
    this.loaded = false;
    this.active = false;
    if(typeof config == "string"){
        this.title = config;
    }else{
        Ext.apply(this, config);
    }
    if(this.resizeEl){
        this.resizeEl = Ext.get(this.resizeEl, true);
    }else{
        this.resizeEl = this.el;
    }
    this.addEvents({
        /**
         * @event activate
         * Fires when this panel is activated. 
         * @param {Ext.ContentPanel} this
         */
        "activate" : true,
        /**
         * @event deactivate
         * Fires when this panel is activated. 
         * @param {Ext.ContentPanel} this
         */
        "deactivate" : true,

        /**
         * @event resize
         * Fires when this panel is resized if fitToFrame is true.
         * @param {Ext.ContentPanel} this
         * @param {Number} width The width after any component adjustments
         * @param {Number} height The height after any component adjustments
         */
        "resize" : true
    });
    if(this.autoScroll){
        this.resizeEl.setStyle("overflow", "auto");
    }
    content = content || this.content;
    if(content){
        this.setContent(content);
    }
    if(config && config.url){
        this.setUrl(this.url, this.params, this.loadOnce);
    }
    Ext.ContentPanel.superclass.constructor.call(this);
};

Ext.extend(Ext.ContentPanel, Ext.util.Observable, {
    tabTip:'',
    setRegion : function(region){
        this.region = region;
        if(region){
           this.el.replaceClass("x-layout-inactive-content", "x-layout-active-content");
        }else{
           this.el.replaceClass("x-layout-active-content", "x-layout-inactive-content");
        } 
    },
    
    /**
     * Returns the toolbar for this Panel if one was configured. 
     * @return {Ext.Toolbar} 
     */
    getToolbar : function(){
        return this.toolbar;
    },
    
    setActiveState : function(active){
        this.active = active;
        if(!active){
            this.fireEvent("deactivate", this);
        }else{
            this.fireEvent("activate", this);
        }
    },
    /**
     * Updates this panel's element
     * @param {String} content The new content
     * @param {Boolean} loadScripts (optional) true to look for and process scripts
    */
    setContent : function(content, loadScripts){
        this.el.update(content, loadScripts);
    },

    ignoreResize : function(w, h){
        if(this.lastSize && this.lastSize.width == w && this.lastSize.height == h){
            return true;
        }else{
            this.lastSize = {width: w, height: h};
            return false;
        }
    },
    /**
     * Get the {@link Ext.UpdateManager} for this panel. Enables you to perform Ajax updates.
     * @return {Ext.UpdateManager} The UpdateManager
     */
    getUpdateManager : function(){
        return this.el.getUpdateManager();
    },
     /**
     * Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {@link #setUrl}.
     * @param {Object/String/Function} url The url for this request or a function to call to get the url or a config object containing any of the following options:
<pre><code>
panel.load({
    url: "your-url.php",
    params: {param1: "foo", param2: "bar"}, // or a URL encoded string
    callback: yourFunction,
    scope: yourObject, //(optional scope)
    discardUrl: false,
    nocache: false,
    text: "Loading...",
    timeout: 30,
    scripts: false
});
</code></pre>
     * The only required property is <i>url</i>. The optional properties <i>nocache</i>, <i>text</i> and <i>scripts</i>
     * are shorthand for <i>disableCaching</i>, <i>indicatorText</i> and <i>loadScripts</i> and are used to set their associated property on this panel UpdateManager instance.
     * @param {String/Object} params (optional) The parameters to pass as either a URL encoded string "param1=1&amp;param2=2" or an object {param1: 1, param2: 2}
     * @param {Function} callback (optional) Callback when transaction is complete -- called with signature (oElement, bSuccess, oResponse)
     * @param {Boolean} discardUrl (optional) By default when you execute an update the defaultUrl is changed to the last used URL. If true, it will not store the URL.
     * @return {Ext.ContentPanel} this
     */
    load : function(){
        var um = this.el.getUpdateManager();
        um.update.apply(um, arguments);
        return this;
    },


    /**
     * Set a URL to be used to load the content for this panel. When this panel is activated, the content will be loaded from that URL.
     * @param {String/Function} url The URL to load the content from or a function to call to get the URL
     * @param {String/Object} params (optional) The string params for the update call or an object of the params. See {@link Ext.UpdateManager#update} for more details. (Defaults to null)
     * @param {Boolean} loadOnce (optional) Whether to only load the content once. If this is false it makes the Ajax call every time this panel is activated. (Defaults to false)
     * @return {Ext.UpdateManager} The UpdateManager
     */
    setUrl : function(url, params, loadOnce){
        if(this.refreshDelegate){
            this.removeListener("activate", this.refreshDelegate);
        }
        this.refreshDelegate = this._handleRefresh.createDelegate(this, [url, params, loadOnce]);
        this.on("activate", this.refreshDelegate);
        return this.el.getUpdateManager();
    },
    
    _handleRefresh : function(url, params, loadOnce){
        if(!loadOnce || !this.loaded){
            var updater = this.el.getUpdateManager();
            updater.update(url, params, this._setLoaded.createDelegate(this));
        }
    },
    
    _setLoaded : function(){
        this.loaded = true;
    }, 
    
    /**
     * Returns this panel's id
     * @return {String} 
     */
    getId : function(){
        return this.el.id;
    },
    
    /**
     * Returns this panel's element
     * @return {Ext.Element} 
     */
    getEl : function(){
        return this.el;
    },
    
    adjustForComponents : function(width, height){
        if(this.resizeEl != this.el){
            width -= this.el.getFrameWidth('lr');
            height -= this.el.getFrameWidth('tb');
        }
        if(this.toolbar){
            var te = this.toolbar.getEl();
            height -= te.getHeight();
            te.setWidth(width);
        }
        if(this.adjustments){
            width += this.adjustments[0];
            height += this.adjustments[1];
        }
        return {"width": width, "height": height};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
波多野结衣亚洲| 九色|91porny| 国产精品网站一区| 水野朝阳av一区二区三区| 一本色道久久综合亚洲aⅴ蜜桃 | 久久九九久精品国产免费直播| 老司机精品视频在线| 亚洲成人精品一区| 亚洲综合在线电影| 99久久免费精品| 国产精品一区二区三区乱码| 亚洲欧美电影院| 中文字幕一区二区三区蜜月| 欧美吞精做爰啪啪高潮| 成人午夜激情片| 日韩和欧美一区二区三区| 欧美亚日韩国产aⅴ精品中极品| 日韩一级免费观看| 欧美一级艳片视频免费观看| 亚洲免费毛片网站| 日韩网站在线看片你懂的| 久久99深爱久久99精品| 五月天欧美精品| 91在线无精精品入口| 精品一区二区三区视频在线观看| 国产精品久久午夜夜伦鲁鲁| 成人免费毛片嘿嘿连载视频| 亚洲动漫第一页| 一个色在线综合| 国产欧美日韩在线看| 国产成人av影院| 天堂午夜影视日韩欧美一区二区| 国产精品第一页第二页第三页| 欧美电影免费观看高清完整版| 午夜精品视频一区| 亚洲色图第一区| 91亚洲精品久久久蜜桃网站| 偷偷要91色婷婷| 亚洲视频电影在线| 亚洲色图在线视频| 亚洲不卡在线观看| 午夜国产精品一区| 亚洲人吸女人奶水| 久久影院电视剧免费观看| 欧美亚洲尤物久久| 色哟哟一区二区三区| 成人永久看片免费视频天堂| 麻豆久久久久久| 久久综合精品国产一区二区三区 | 奇米影视一区二区三区| 欧美一级在线观看| 国产精品灌醉下药二区| 538在线一区二区精品国产| 一区二区三区在线免费视频| 成人免费精品视频| 国产 日韩 欧美大片| 国产精品色哟哟| 中文字幕免费一区| 国产欧美综合在线观看第十页| 91精品久久久久久蜜臀| 91亚洲国产成人精品一区二三| 激情图片小说一区| 精品对白一区国产伦| 一本大道久久a久久精二百| 国产白丝网站精品污在线入口| 国产麻豆精品在线| 国产精品中文字幕欧美| 粉嫩蜜臀av国产精品网站| 国产在线播放一区三区四| 韩国欧美国产一区| 国产主播一区二区| 成人免费电影视频| 97久久人人超碰| 欧美视频在线观看一区二区| 欧美日韩一级二级三级| 91精品久久久久久蜜臀| 欧美成人性战久久| 久久久蜜桃精品| 欧美国产日本韩| 亚洲免费观看高清完整| 亚洲国产成人va在线观看天堂| 日韩激情av在线| 成人一区二区在线观看| 欧洲一区二区三区在线| 在线看一区二区| 91.xcao| 开心九九激情九九欧美日韩精美视频电影| 男人的j进女人的j一区| 久久精品国产秦先生| 91丨国产丨九色丨pron| 欧美日韩久久久久久| 日本乱人伦一区| 成人国产在线观看| 欧美影视一区在线| 精品久久久影院| 一级特黄大欧美久久久| 日本欧美一区二区在线观看| 成人av第一页| 欧美日韩你懂得| 国产欧美一区视频| 亚洲精品免费电影| 久久99精品视频| 91色乱码一区二区三区| 91精品国产福利在线观看| 97久久久精品综合88久久| 成人一级黄色片| 欧美在线免费观看亚洲| 欧美精品一级二级| 国产女主播在线一区二区| 日韩av网站在线观看| 成人性生交大片免费看中文网站| 91精品午夜视频| 国产精品久久久久久久岛一牛影视| 国产亚洲制服色| 青青草国产成人av片免费| 成人av手机在线观看| 欧美精品一区二区高清在线观看 | 精品国产区一区| 亚洲综合激情小说| 99精品一区二区| 精品久久久久99| 日韩精品电影在线观看| 91片黄在线观看| 国产亚洲精品超碰| 日韩av电影免费观看高清完整版在线观看 | 亚洲色图20p| 国产精品性做久久久久久| 欧美一级二级三级蜜桃| 一区二区三区.www| 99国产精品久久久久| 久久久久高清精品| 麻豆成人久久精品二区三区红| 在线观看日韩电影| 亚洲精品国产成人久久av盗摄| 2019国产精品| 久久精品国产精品亚洲精品| 欧美性猛交xxxxxx富婆| 亚洲一区二区三区四区在线免费观看| 成人小视频免费在线观看| 在线电影一区二区三区| 天天综合色天天综合| 色网站国产精品| 亚洲一区二区三区视频在线| 99热精品一区二区| 亚洲黄色av一区| 一本久道久久综合中文字幕| 一区二区三区 在线观看视频| 91亚洲精品乱码久久久久久蜜桃| 一区二区三区资源| 色综合视频在线观看| 亚洲动漫第一页| 欧美久久久久久蜜桃| 亚洲二区在线视频| 欧美丰满少妇xxxxx高潮对白 | 欧洲人成人精品| 亚洲综合色视频| 欧美三级电影在线看| 免费成人在线观看视频| 欧美精品一级二级| 美女在线视频一区| 国产午夜精品一区二区三区视频| 国产一区二区三区视频在线播放| 国产女人水真多18毛片18精品视频| 久久99热99| 自拍偷拍欧美激情| 日本丰满少妇一区二区三区| 午夜精品福利一区二区蜜股av | 日本不卡一二三区黄网| 欧美一三区三区四区免费在线看| 久草中文综合在线| 国产欧美精品一区二区三区四区| 色av综合在线| 天堂精品中文字幕在线| 久久男人中文字幕资源站| 福利电影一区二区| 午夜精品久久久久久不卡8050| 亚洲一级片在线观看| 日韩亚洲欧美在线观看| 亚洲成人激情社区| 久久亚洲春色中文字幕久久久| 久久99九九99精品| 日本一区二区三区国色天香| 欧美这里有精品| 久久综合综合久久综合| 中文字幕亚洲不卡| 欧美高清视频不卡网| 成人性视频免费网站| 午夜视频在线观看一区二区三区| 欧美本精品男人aⅴ天堂| 不卡视频一二三| 麻豆一区二区三区| 一区在线观看免费| 欧美一卡二卡在线| 成人高清伦理免费影院在线观看| 视频精品一区二区| 国产欧美一区二区精品忘忧草 | 成人v精品蜜桃久久一区| 午夜精品一区二区三区电影天堂 | 亚洲国产成人av网| 亚洲国产精品高清|