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

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

?? action.js

?? 一個struts和extjs得源碼
?? JS
字號:
/*
 * Ext JS Library 2.2.1
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

/**
 * @class Ext.Action
 * <p>An Action is a piece of reusable functionality that can be abstracted out of any particular component so that it
 * can be usefully shared among multiple components.  Actions let you share handlers, configuration options and UI
 * updates across any components that support the Action interface (primarily {@link Ext.Toolbar}, {@link Ext.Button}
 * and {@link Ext.menu.Menu} components).</p>
 * <p>Aside from supporting the config object interface, any component that needs to use Actions must also support
 * the following method list, as these will be called as needed by the Action class: setText(string), setIconCls(string),
 * setDisabled(boolean), setVisible(boolean) and setHandler(function).</p>
 * Example usage:<br>
 * <pre><code>
// Define the shared action.  Each component below will have the same
// display text and icon, and will display the same message on click.
var action = new Ext.Action({
    text: 'Do something',
    handler: function(){
        Ext.Msg.alert('Click', 'You did something.');
    },
    iconCls: 'do-something'
});

var panel = new Ext.Panel({
    title: 'Actions',
    width:500,
    height:300,
    tbar: [
        // Add the action directly to a toolbar as a menu button
        action, {
            text: 'Action Menu',
            // Add the action to a menu as a text item
            menu: [action]
        }
    ],
    items: [
        // Add the action to the panel body as a standard button
        new Ext.Button(action)
    ],
    renderTo: Ext.getBody()
});

// Change the text for all components using the action
action.setText('Something else');
</code></pre>
 * @constructor
 * @param {Object} config The configuration options
 */
Ext.Action = function(config){
    this.initialConfig = config;
    this.items = [];
}

Ext.Action.prototype = {
    /**
     * @cfg {String} text The text to set for all components using this action (defaults to '').
     */
    /**
     * @cfg {String} iconCls The icon CSS class for all components using this action (defaults to '').
     * The class should supply a background image that will be used as the icon image.
     */
    /**
     * @cfg {Boolean} disabled True to disable all components using this action, false to enable them (defaults to false).
     */
    /**
     * @cfg {Boolean} hidden True to hide all components using this action, false to show them (defaults to false).
     */
    /**
     * @cfg {Function} handler The function that will be invoked by each component tied to this action
     * when the component's primary event is triggered (defaults to undefined).
     */
    /**
     * @cfg {Object} scope The scope in which the {@link #handler} function will execute.
     */

    // private
    isAction : true,

    /**
     * Sets the text to be displayed by all components using this action.
     * @param {String} text The text to display
     */
    setText : function(text){
        this.initialConfig.text = text;
        this.callEach('setText', [text]);
    },

    /**
     * Gets the text currently displayed by all components using this action.
     */
    getText : function(){
        return this.initialConfig.text;
    },

    /**
     * Sets the icon CSS class for all components using this action.  The class should supply
     * a background image that will be used as the icon image.
     * @param {String} cls The CSS class supplying the icon image
     */
    setIconClass : function(cls){
        this.initialConfig.iconCls = cls;
        this.callEach('setIconClass', [cls]);
    },

    /**
     * Gets the icon CSS class currently used by all components using this action.
     */
    getIconClass : function(){
        return this.initialConfig.iconCls;
    },

    /**
     * Sets the disabled state of all components using this action.  Shortcut method
     * for {@link #enable} and {@link #disable}.
     * @param {Boolean} disabled True to disable the component, false to enable it
     */
    setDisabled : function(v){
        this.initialConfig.disabled = v;
        this.callEach('setDisabled', [v]);
    },

    /**
     * Enables all components using this action.
     */
    enable : function(){
        this.setDisabled(false);
    },

    /**
     * Disables all components using this action.
     */
    disable : function(){
        this.setDisabled(true);
    },

    /**
     * Returns true if the components using this action are currently disabled, else returns false.  Read-only.
     * @property
     */
    isDisabled : function(){
        return this.initialConfig.disabled;
    },

    /**
     * Sets the hidden state of all components using this action.  Shortcut method
     * for {@link #hide} and {@link #show}.
     * @param {Boolean} hidden True to hide the component, false to show it
     */
    setHidden : function(v){
        this.initialConfig.hidden = v;
        this.callEach('setVisible', [!v]);
    },

    /**
     * Shows all components using this action.
     */
    show : function(){
        this.setHidden(false);
    },

    /**
     * Hides all components using this action.
     */
    hide : function(){
        this.setHidden(true);
    },

    /**
     * Returns true if the components using this action are currently hidden, else returns false.  Read-only.
     * @property
     */
    isHidden : function(){
        return this.initialConfig.hidden;
    },

    /**
     * Sets the function that will be called by each component using this action when its primary event is triggered.
     * @param {Function} fn The function that will be invoked by the action's components.  The function
     * will be called with no arguments.
     * @param {Object} scope The scope in which the function will execute
     */
    setHandler : function(fn, scope){
        this.initialConfig.handler = fn;
        this.initialConfig.scope = scope;
        this.callEach('setHandler', [fn, scope]);
    },

    /**
     * Executes the specified function once for each component currently tied to this action.  The function passed
     * in should accept a single argument that will be an object that supports the basic Action config/method interface.
     * @param {Function} fn The function to execute for each component
     * @param {Object} scope The scope in which the function will execute
     */
    each : function(fn, scope){
        Ext.each(this.items, fn, scope);
    },

    // private
    callEach : function(fnName, args){
        var cs = this.items;
        for(var i = 0, len = cs.length; i < len; i++){
            cs[i][fnName].apply(cs[i], args);
        }
    },

    // private
    addComponent : function(comp){
        this.items.push(comp);
        comp.on('destroy', this.removeComponent, this);
    },

    // private
    removeComponent : function(comp){
        this.items.remove(comp);
    },

    /**
     * Executes this action manually using the default handler specified in the original config object.  Any arguments
     * passed to this function will be passed on to the handler function.
     * @param {Mixed} arg1 (optional) Variable number of arguments passed to the handler function 
     * @param {Mixed} arg2 (optional)
     * @param {Mixed} etc... (optional)
     */
    execute : function(){
        this.initialConfig.handler.apply(this.initialConfig.scope || window, arguments);
    }
};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产色站一区二区三区| 青青草精品视频| 久久综合丝袜日本网| 欧美日本免费一区二区三区| 经典一区二区三区| 国产大陆精品国产| www..com久久爱| 国产精品18久久久久久久久久久久| 久久精品理论片| 国产米奇在线777精品观看| 精品一区二区三区免费毛片爱| 蜜臀99久久精品久久久久久软件| 男女视频一区二区| 久久99国产精品久久99果冻传媒| 国产寡妇亲子伦一区二区| www.欧美精品一二区| 制服丝袜一区二区三区| 欧美xxxx在线观看| 亚洲精品videosex极品| 日韩高清一区在线| 国产一区二区电影| 欧美亚洲综合另类| 久久亚洲一区二区三区四区| 1024国产精品| 日韩国产高清在线| 日本高清视频一区二区| 国产亚洲精品福利| 日韩av一区二区三区四区| 成人午夜电影小说| 日韩欧美激情一区| 日韩精品一二三区| 欧美在线观看禁18| 亚洲最大成人综合| 91色porny在线视频| 日本一区二区三区电影| 久久国产福利国产秒拍| 欧美精品粉嫩高潮一区二区| 在线观看91视频| 午夜视频一区在线观看| 免费美女久久99| 色婷婷一区二区三区四区| 欧美精品日韩精品| 久久久99久久| 婷婷久久综合九色国产成人| 国产精品免费久久| 日韩国产成人精品| 91老司机福利 在线| av一二三不卡影片| 精品久久人人做人人爱| 一区二区三区四区五区视频在线观看| 亚洲国产va精品久久久不卡综合| 国产美女精品人人做人人爽| 色婷婷久久久久swag精品 | 久久久www成人免费毛片麻豆| 欧美丰满少妇xxxbbb| 国产精品久久久久久久久久免费看| 午夜精品一区二区三区电影天堂 | 99精品视频在线免费观看| 欧美一级搡bbbb搡bbbb| 亚洲色欲色欲www| 麻豆91在线播放| 欧美日韩免费不卡视频一区二区三区| 精品国产乱子伦一区| 爽爽淫人综合网网站| 欧美性三三影院| 亚洲精品v日韩精品| 成人免费视频视频| 国产天堂亚洲国产碰碰| 亚洲高清视频在线| www.99精品| 亚洲免费视频成人| 成人av免费网站| 日韩久久免费av| 黄色小说综合网站| 欧美成va人片在线观看| 国产成人av电影在线| 国产精品理论片在线观看| 97久久超碰精品国产| 亚洲精品久久嫩草网站秘色| 欧美视频在线观看一区二区| 日韩一级免费观看| 高清在线不卡av| 亚洲黄色免费网站| 欧美一级生活片| 99国产精品一区| 麻豆国产精品视频| 一区二区三区欧美亚洲| 国产a视频精品免费观看| 亚洲日本免费电影| 成人app在线观看| 青青青爽久久午夜综合久久午夜| 久久精品人人做人人爽人人| 欧美日韩国产综合一区二区| 精品亚洲aⅴ乱码一区二区三区| 国产精品久久三| 日韩一区二区在线免费观看| 成人视屏免费看| 激情图区综合网| 一区二区三区国产豹纹内裤在线| 欧美刺激午夜性久久久久久久| 99精品黄色片免费大全| 国产盗摄女厕一区二区三区| 另类小说色综合网站| 亚洲午夜电影网| 17c精品麻豆一区二区免费| 欧美久久高跟鞋激| 高清国产一区二区| 久久不见久久见中文字幕免费| 亚洲一区二区三区四区五区黄| 欧美日韩国产首页| 欧美精品欧美精品系列| 色婷婷综合久久久久中文一区二区| 成人午夜视频福利| 麻豆传媒一区二区三区| 精品综合久久久久久8888| 成人教育av在线| 精品一区二区三区在线观看| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲线精品一区二区三区八戒| 一区二区成人在线| 蜜臀a∨国产成人精品| 国产露脸91国语对白| 天涯成人国产亚洲精品一区av| 亚洲国产成人高清精品| 男人操女人的视频在线观看欧美| 日韩vs国产vs欧美| 亚洲国产日产av| 久久电影网站中文字幕| 亚洲精品视频在线看| 日韩精品视频网站| 国产91丝袜在线播放九色| 欧美性一二三区| 久久综合狠狠综合久久综合88| 中文字幕欧美一| 视频一区二区国产| 成人高清在线视频| 日韩一区二区三区免费观看| 日韩一级免费观看| 亚洲国产精品尤物yw在线观看| 色哟哟在线观看一区二区三区| 欧美日韩国产高清一区二区 | 岛国精品一区二区| 日韩欧美国产午夜精品| 一区二区三区欧美日| 老司机免费视频一区二区 | 亚洲婷婷综合色高清在线| 亚洲永久免费av| 972aa.com艺术欧美| 欧美xxxxx牲另类人与| 亚洲va欧美va人人爽| 91视视频在线直接观看在线看网页在线看 | 青青草97国产精品免费观看 | 日本美女视频一区二区| 日本韩国欧美在线| 亚洲福利视频导航| 国产人成亚洲第一网站在线播放| 日本欧美在线观看| 欧美日韩日日骚| 午夜久久久影院| 成人一区二区三区视频在线观看| 日韩午夜小视频| 国产一区二区在线免费观看| 精品久久久久久久久久久久包黑料 | 日韩精品一区在线| 日韩av不卡在线观看| 亚洲乱码中文字幕| 中文字幕乱码日本亚洲一区二区 | 亚洲女女做受ⅹxx高潮| 欧美精品一区二区三区视频| 8x福利精品第一导航| 欧美综合亚洲图片综合区| av在线免费不卡| av中文字幕一区| 97久久久精品综合88久久| 国产精品综合一区二区三区| 久久国产精品99精品国产 | 9191成人精品久久| 555夜色666亚洲国产免| 欧美片网站yy| 8x8x8国产精品| 精品少妇一区二区三区在线播放| 欧美乱妇20p| 日韩欧美美女一区二区三区| 欧美草草影院在线视频| 欧美国产一区二区| 国产精品短视频| 亚洲国产人成综合网站| 免费在线看一区| eeuss鲁片一区二区三区在线看| 色综合天天综合色综合av| 欧洲在线/亚洲| 精品久久久久久无| 亚洲欧洲99久久| 麻豆国产精品777777在线| 成人av网址在线| 日韩一区二区三区视频在线| 国产人成亚洲第一网站在线播放| 亚洲美女精品一区| 日本三级韩国三级欧美三级| 国产成人精品亚洲777人妖|