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

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

?? basicdialog.js

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

/**
 * @class Ext.BasicDialog
 * @extends Ext.util.Observable
 * Lightweight Dialog Class.  The code below shows the creation of a typical dialog using existing HTML markup:
 * <pre><code>
var dlg = new Ext.BasicDialog("my-dlg", {
    height: 200,
    width: 300,
    minHeight: 100,
    minWidth: 150,
    modal: true,
    proxyDrag: true,
    shadow: true
});
dlg.addKeyListener(27, dlg.hide, dlg); // ESC can also close the dialog
dlg.addButton('OK', dlg.hide, dlg);    // Could call a save function instead of hiding
dlg.addButton('Cancel', dlg.hide, dlg);
dlg.show();
</code></pre>
  <b>A Dialog should always be a direct child of the body element.</b>
 * @cfg {Boolean/DomHelper} autoCreate True to auto create from scratch, or using a DomHelper Object (defaults to false)
 * @cfg {String} title Default text to display in the title bar (defaults to null)
 * @cfg {Number} width Width of the dialog in pixels (can also be set via CSS).  Determined by browser if unspecified.
 * @cfg {Number} height Height of the dialog in pixels (can also be set via CSS).  Determined by browser if unspecified.
 * @cfg {Number} x The default left page coordinate of the dialog (defaults to center screen)
 * @cfg {Number} y The default top page coordinate of the dialog (defaults to center screen)
 * @cfg {String/Element} animateTarget Id or element from which the dialog should animate while opening
 * (defaults to null with no animation)
 * @cfg {Boolean} resizable False to disable manual dialog resizing (defaults to true)
 * @cfg {String} resizeHandles Which resize handles to display - see the {@link Ext.Resizable} handles config
 * property for valid values (defaults to 'all')
 * @cfg {Number} minHeight The minimum allowable height for a resizable dialog (defaults to 80)
 * @cfg {Number} minWidth The minimum allowable width for a resizable dialog (defaults to 200)
 * @cfg {Boolean} modal True to show the dialog modally, preventing user interaction with the rest of the page (defaults to false)
 * @cfg {Boolean} autoScroll True to allow the dialog body contents to overflow and display scrollbars (defaults to false)
 * @cfg {Boolean} closable False to remove the built-in top-right corner close button (defaults to true)
 * @cfg {Boolean} collapsible False to remove the built-in top-right corner collapse button (defaults to true)
 * @cfg {Boolean} constraintoviewport True to keep the dialog constrained within the visible viewport boundaries (defaults to true)
 * @cfg {Boolean} syncHeightBeforeShow True to cause the dimensions to be recalculated before the dialog is shown (defaults to false)
 * @cfg {Boolean} draggable False to disable dragging of the dialog within the viewport (defaults to true)
 * @cfg {Boolean} autoTabs If true, all elements with class 'x-dlg-tab' will get automatically converted to tabs (defaults to false)
 * @cfg {String} tabTag The tag name of tab elements, used when autoTabs = true (defaults to 'div')
 * @cfg {Boolean} proxyDrag True to drag a lightweight proxy element rather than the dialog itself, used when
 * draggable = true (defaults to false)
 * @cfg {Boolean} fixedcenter True to ensure that anytime the dialog is shown or resized it gets centered (defaults to false)
 * @cfg {Boolean/String} shadow True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right
 * shadow (defaults to false)
 * @cfg {Number} shadowOffset The number of pixels to offset the shadow if displayed (defaults to 5)
 * @cfg {String} buttonAlign Valid values are "left," "center" and "right" (defaults to "right")
 * @cfg {Number} minButtonWidth Minimum width of all dialog buttons (defaults to 75)
 * @cfg {Boolean} shim True to create an iframe shim that prevents selects from showing through (defaults to false)
 * @constructor
 * Create a new BasicDialog.
 * @param {String/HTMLElement/Ext.Element} el The container element or DOM node, or its id
 * @param {Object} config Configuration options
 */
Ext.BasicDialog = function(el, config){
    this.el = Ext.get(el);
    var dh = Ext.DomHelper;
    if(!this.el && config && config.autoCreate){
        if(typeof config.autoCreate == "object"){
            if(!config.autoCreate.id){
                config.autoCreate.id = el;
            }
            this.el = dh.append(document.body,
                        config.autoCreate, true);
        }else{
            this.el = dh.append(document.body,
                        {tag: "div", id: el, style:'visibility:hidden;'}, true);
        }
    }
    el = this.el;
    el.setDisplayed(true);
    el.hide = this.hideAction;
    this.id = el.id;
    el.addClass("x-dlg");

    Ext.apply(this, config);

    this.proxy = el.createProxy("x-dlg-proxy");
    this.proxy.hide = this.hideAction;
    this.proxy.setOpacity(.5);
    this.proxy.hide();

    if(config.width){
        el.setWidth(config.width);
    }
    if(config.height){
        el.setHeight(config.height);
    }
    this.size = el.getSize();
    if(typeof config.x != "undefined" && typeof config.y != "undefined"){
        this.xy = [config.x,config.y];
    }else{
        this.xy = el.getCenterXY(true);
    }
    /** The header element @type Ext.Element */
    this.header = el.child("> .x-dlg-hd");
    /** The body element @type Ext.Element */
    this.body = el.child("> .x-dlg-bd");
    /** The footer element @type Ext.Element */
    this.footer = el.child("> .x-dlg-ft");

    if(!this.header){
        this.header = el.createChild({tag: "div", cls:"x-dlg-hd", html: "&#160;"}, this.body ? this.body.dom : null);
    }
    if(!this.body){
        this.body = el.createChild({tag: "div", cls:"x-dlg-bd"});
    }

    this.header.unselectable();
    if(this.title){
        this.header.update(this.title);
    }
    // this element allows the dialog to be focused for keyboard event
    this.focusEl = el.createChild({tag: "a", href:"#", cls:"x-dlg-focus", tabIndex:"-1"});
    this.focusEl.swallowEvent("click", true);

    this.header.wrap({cls:"x-dlg-hd-right"}).wrap({cls:"x-dlg-hd-left"}, true);

    // wrap the body and footer for special rendering
    this.bwrap = this.body.wrap({tag: "div", cls:"x-dlg-dlg-body"});
    if(this.footer){
        this.bwrap.dom.appendChild(this.footer.dom);
    }

    this.bg = this.el.createChild({
        tag: "div", cls:"x-dlg-bg",
        html: '<div class="x-dlg-bg-left"><div class="x-dlg-bg-right"><div class="x-dlg-bg-center">&#160;</div></div></div>'
    });
    this.centerBg = this.bg.child("div.x-dlg-bg-center");


    if(this.autoScroll !== false && !this.autoTabs){
        this.body.setStyle("overflow", "auto");
    }

    this.toolbox = this.el.createChild({cls: "x-dlg-toolbox"});

    if(this.closable !== false){
        this.el.addClass("x-dlg-closable");
        this.close = this.toolbox.createChild({cls:"x-dlg-close"});
        this.close.on("click", this.closeClick, this);
        this.close.addClassOnOver("x-dlg-close-over");
    }
    if(this.collapsible !== false){
        this.collapseBtn = this.toolbox.createChild({cls:"x-dlg-collapse"});
        this.collapseBtn.on("click", this.collapseClick, this);
        this.collapseBtn.addClassOnOver("x-dlg-collapse-over");
        this.header.on("dblclick", this.collapseClick, this);
    }
    if(this.resizable !== false){
        this.el.addClass("x-dlg-resizable");
        this.resizer = new Ext.Resizable(el, {
            minWidth: this.minWidth || 80,
            minHeight:this.minHeight || 80,
            handles: this.resizeHandles || "all",
            pinned: true
        });
        this.resizer.on("beforeresize", this.beforeResize, this);
        this.resizer.on("resize", this.onResize, this);
    }
    if(this.draggable !== false){
        el.addClass("x-dlg-draggable");
        if (!this.proxyDrag) {
            var dd = new Ext.dd.DD(el.dom.id, "WindowDrag");
        }
        else {
            var dd = new Ext.dd.DDProxy(el.dom.id, "WindowDrag", {dragElId: this.proxy.id});
        }
        dd.setHandleElId(this.header.id);
        dd.endDrag = this.endMove.createDelegate(this);
        dd.startDrag = this.startMove.createDelegate(this);
        dd.onDrag = this.onDrag.createDelegate(this);
        dd.scroll = false;
        this.dd = dd;
    }
    if(this.modal){
        this.mask = dh.append(document.body, {tag: "div", cls:"x-dlg-mask"}, true);
        this.mask.enableDisplayMode("block");
        this.mask.hide();
        this.el.addClass("x-dlg-modal");
    }
    if(this.shadow){
        this.shadow = new Ext.Shadow({
            mode : typeof this.shadow == "string" ? this.shadow : "sides",
            offset : this.shadowOffset
        });
    }else{
        this.shadowOffset = 0;
    }
    if(Ext.useShims && this.shim !== false){
        this.shim = this.el.createShim();
        this.shim.hide = this.hideAction;
        this.shim.hide();
    }else{
        this.shim = false;
    }
    if(this.autoTabs){
        this.initTabs();
    }
    this.addEvents({
        /**
         * @event keydown
         * Fires when a key is pressed
         * @param {Ext.BasicDialog} this
         * @param {Ext.EventObject} e
         */
        "keydown" : true,
        /**
         * @event move
         * Fires when this dialog is moved by the user.
         * @param {Ext.BasicDialog} this
         * @param {Number} x The new page X
         * @param {Number} y The new page Y
         */
        "move" : true,
        /**
         * @event resize
         * Fires when this dialog is resized by the user.
         * @param {Ext.BasicDialog} this
         * @param {Number} width The new width
         * @param {Number} height The new height
         */
        "resize" : true,
        /**
         * @event beforehide
         * Fires before this dialog is hidden.
         * @param {Ext.BasicDialog} this
         */
        "beforehide" : true,
        /**
         * @event hide
         * Fires when this dialog is hidden.
         * @param {Ext.BasicDialog} this
         */
        "hide" : true,
        /**
         * @event beforeshow
         * Fires before this dialog is shown.
         * @param {Ext.BasicDialog} this
         */
        "beforeshow" : true,
        /**
         * @event show
         * Fires when this dialog is shown.
         * @param {Ext.BasicDialog} this
         */
        "show" : true
    });
    el.on("keydown", this.onKeyDown, this);
    el.on("mousedown", this.toFront, this);
    Ext.EventManager.onWindowResize(this.adjustViewport, this, true);
    this.el.hide();
    Ext.DialogManager.register(this);
    Ext.BasicDialog.superclass.constructor.call(this);
};

Ext.extend(Ext.BasicDialog, Ext.util.Observable, {
    shadowOffset: Ext.isIE ? 6 : 5,
    minHeight: 80,
    minWidth: 200,
    minButtonWidth: 75,
    defaultButton: null,
    buttonAlign: "right",
    tabTag: 'div',
    firstShow: true,

    /**
     * Sets the dialog title text
     * @param {String} text The title text to display
     * @return {Ext.BasicDialog} this
     */
    setTitle : function(text){
        this.header.update(text);
        return this;
    },

    // private
    closeClick : function(){
        this.hide();
    },

    // private
    collapseClick : function(){
        this[this.collapsed ? "expand" : "collapse"]();
    },

    /**
     * Collapses the dialog to its minimized state (only the title bar is visible).
     * Equivalent to the user clicking the collapse dialog button.
     */
    collapse : function(){
        if(!this.collapsed){
            this.collapsed = true;
            this.el.addClass("x-dlg-collapsed");
            this.restoreHeight = this.el.getHeight();
            this.resizeTo(this.el.getWidth(), this.header.getHeight());
        }
    },

    /**
     * Expands a collapsed dialog back to its normal state.  Equivalent to the user
     * clicking the expand dialog button.
     */
    expand : function(){
        if(this.collapsed){
            this.collapsed = false;
            this.el.removeClass("x-dlg-collapsed");
            this.resizeTo(this.el.getWidth(), this.restoreHeight);
        }
    },

    /**
     * Reinitializes the tabs component, clearing out old tabs and finding new ones.
     * @return {Ext.TabPanel} The tabs component
     */
    initTabs : function(){
        var tabs = this.getTabs();
        while(tabs.getTab(0)){
            tabs.removeTab(0);
        }
        this.el.select(this.tabTag+'.x-dlg-tab').each(function(el){
            var dom = el.dom;
            tabs.addTab(Ext.id(dom), dom.title);
            dom.title = "";
        });
        tabs.activate(0);
        return tabs;
    },

    // private
    beforeResize : function(){
        this.resizer.minHeight = Math.max(this.minHeight, this.getHeaderFooterHeight(true)+40);
    },

    // private
    onResize : function(){
        this.refreshSize();
        this.syncBodyHeight();
        this.adjustAssets();
        this.focus();
        this.fireEvent("resize", this, this.size.width, this.size.height);
    },

    // private
    onKeyDown : function(e){
        if(this.isVisible()){
            this.fireEvent("keydown", this, e);
        }
    },

    /**
     * Resizes the dialog.
     * @param {Number} width
     * @param {Number} height
     * @return {Ext.BasicDialog} this
     */
    resizeTo : function(width, height){
        this.el.setSize(width, height);
        this.size = {width: width, height: height};
        this.syncBodyHeight();
        if(this.fixedcenter){
            this.center();
        }
        if(this.isVisible()){
            this.constrainXY();
            this.adjustAssets();
        }
        this.fireEvent("resize", this, width, height);
        return this;
    },


    /**
     * Resizes the dialog to fit the specified content size.
     * @param {Number} width
     * @param {Number} height
     * @return {Ext.BasicDialog} this
     */
    setContentSize : function(w, h){
        h += this.getHeaderFooterHeight() + this.body.getMargins("tb");
        w += this.body.getMargins("lr") + this.bwrap.getMargins("lr") + this.centerBg.getPadding("lr");
        //if(!this.el.isBorderBox()){
            h +=  this.body.getPadding("tb") + this.bwrap.getBorderWidth("tb") + this.body.getBorderWidth("tb") + this.el.getBorderWidth("tb");
            w += this.body.getPadding("lr") + this.bwrap.getBorderWidth("lr") + this.body.getBorderWidth("lr") + this.bwrap.getPadding("lr") + this.el.getBorderWidth("lr");
        //}
        if(this.tabs){
            h += this.tabs.stripWrap.getHeight() + this.tabs.bodyEl.getMargins("tb") + this.tabs.bodyEl.getPadding("tb");
            w += this.tabs.bodyEl.getMargins("lr") + this.tabs.bodyEl.getPadding("lr");
        }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美无砖砖区免费| 婷婷久久综合九色国产成人| 99久久精品情趣| 亚洲午夜电影网| 国产欧美1区2区3区| 欧美久久久久久蜜桃| 丁香六月综合激情| 免费成人在线网站| 亚洲精品午夜久久久| 久久久久久亚洲综合影院红桃 | 久久九九久久九九| 欧美在线|欧美| 成人av网址在线| 久久99精品久久久久久| 亚洲最色的网站| 亚洲欧洲www| 国产午夜久久久久| 日韩欧美国产三级| 欧美日韩激情一区二区| 97久久精品人人澡人人爽| 国产精品一区二区三区四区| 奇米四色…亚洲| 天天综合网 天天综合色| 一区二区三区在线视频免费| 中文字幕高清一区| 久久久久久99久久久精品网站| 欧美人伦禁忌dvd放荡欲情| 色婷婷国产精品综合在线观看| 国产不卡视频在线播放| 国产伦理精品不卡| 激情综合五月婷婷| 久久国产精品第一页| 青椒成人免费视频| 老司机免费视频一区二区三区| 日韩电影在线观看一区| 亚洲大尺度视频在线观看| 一区二区高清在线| 亚洲综合男人的天堂| 亚洲黄色av一区| 樱桃国产成人精品视频| 亚洲美女视频在线观看| 亚洲色图视频网| 亚洲免费电影在线| 艳妇臀荡乳欲伦亚洲一区| 亚洲香肠在线观看| 亚洲成av人片在线| 石原莉奈在线亚洲二区| 青青草精品视频| 极品瑜伽女神91| 岛国av在线一区| 一本色道**综合亚洲精品蜜桃冫| 日本韩国一区二区三区视频| 在线视频欧美精品| 555www色欧美视频| 日韩精品在线网站| 日韩一本二本av| 久久久九九九九| 亚洲婷婷综合色高清在线| 亚洲少妇30p| 丝瓜av网站精品一区二区| 免费一区二区视频| 国产风韵犹存在线视精品| 成人激情视频网站| 欧美午夜精品久久久| 欧美电影在线免费观看| 久久综合色一综合色88| 国产精品视频第一区| 亚洲夂夂婷婷色拍ww47| 青青草国产精品97视觉盛宴| 国产精品自拍毛片| 色妹子一区二区| 欧美一区二区三区在线看| 欧美mv日韩mv国产| 国产精品高潮久久久久无| 亚洲综合在线免费观看| 麻豆视频观看网址久久| 国产成人免费高清| 欧美色老头old∨ideo| 久久青草欧美一区二区三区| 亚洲三级视频在线观看| 视频在线观看一区| 成人免费高清在线| 在线电影一区二区三区| 欧美国产日产图区| 亚洲大型综合色站| 国产不卡视频一区| 欧美日本在线播放| 国产欧美1区2区3区| 亚洲午夜精品在线| 东方欧美亚洲色图在线| 91精品蜜臀在线一区尤物| 国产精品免费aⅴ片在线观看| 亚洲国产综合在线| 成人天堂资源www在线| 3751色影院一区二区三区| 中文字幕精品一区| 美女脱光内衣内裤视频久久影院| 91网上在线视频| 久久久久久97三级| 免费在线观看不卡| 欧美午夜电影在线播放| 中文字幕亚洲在| 国产在线国偷精品产拍免费yy| 欧美区在线观看| 亚洲三级在线观看| 国产成人在线视频播放| 日韩欧美电影在线| 日韩精品亚洲一区| 在线精品视频一区二区三四| 日本一区二区三区在线观看| 日韩精品亚洲一区二区三区免费| 在线看一区二区| 综合中文字幕亚洲| 成人免费视频网站在线观看| 日韩一级片网站| 午夜精品视频一区| 色综合视频一区二区三区高清| 久久精品免费在线观看| 麻豆91在线播放| 51精品视频一区二区三区| 一区二区三区四区不卡在线 | 国产成人精品一区二区三区四区 | 久久综合色之久久综合| 麻豆精品视频在线| 欧美精品精品一区| 午夜精品福利一区二区蜜股av | 欧美成人欧美edvon| 午夜欧美电影在线观看| 色婷婷国产精品| 一区二区在线观看视频| 99久久精品国产网站| 国产精品美女视频| 99久久久国产精品| 中文字幕一区二区三区在线播放 | 欧美日韩精品专区| 亚洲欧美另类在线| 91看片淫黄大片一级在线观看| 国产精品丝袜一区| 波多野结衣视频一区| 国产精品国产精品国产专区不蜜 | av一区二区三区在线| 国产精品天干天干在线综合| 国产精品系列在线观看| 国产视频一区在线播放| 成人免费电影视频| 亚洲蜜桃精久久久久久久| 在线精品视频一区二区| 性做久久久久久免费观看欧美| 欧美麻豆精品久久久久久| 男女男精品视频网| 久久亚洲一级片| 成人精品一区二区三区中文字幕| 国产精品久久久久久久久久久免费看 | 欧美一级欧美三级在线观看| 免费av成人在线| 久久九九久精品国产免费直播| 成人国产亚洲欧美成人综合网| 国产精品日韩精品欧美在线| 成人91在线观看| 亚洲在线视频网站| 日韩色视频在线观看| 国产一区二区三区综合| 欧美国产激情一区二区三区蜜月| 91欧美激情一区二区三区成人| 图片区日韩欧美亚洲| 精品国产免费一区二区三区四区| 国产精华液一区二区三区| 亚洲欧洲另类国产综合| 欧美精品高清视频| 粉嫩高潮美女一区二区三区| 亚洲激情图片小说视频| 精品免费一区二区三区| av在线综合网| 日本强好片久久久久久aaa| 久久久美女毛片| 欧美系列在线观看| 九九精品一区二区| ...xxx性欧美| 日韩一区二区在线播放| 成人美女在线视频| 免费在线视频一区| 国产精品高潮久久久久无| 欧美放荡的少妇| eeuss鲁一区二区三区| 日本美女一区二区| 亚洲少妇30p| 久久亚洲综合色一区二区三区| 日本道色综合久久| 国产九色精品成人porny| 亚洲国产欧美日韩另类综合| 国产婷婷精品av在线| 欧美日韩色一区| av亚洲产国偷v产偷v自拍| 免费在线观看一区二区三区| 国产精品久久久久久久蜜臀| 欧美大片在线观看| 欧美最新大片在线看 | 久久激情五月婷婷| 亚洲综合丝袜美腿| 中文字幕欧美一|