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

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

?? openjmsdestination.java

?? 一個java方面的消息訂閱發送的源碼
?? JAVA
字號:
/**
 * Redistribution and use of this software and associated documentation
 * ("Software"), with or without modification, are permitted provided
 * that the following conditions are met:
 *
 * 1. Redistributions of source code must retain copyright
 *    statements and notices.  Redistributions must also contain a
 *    copy of this document.
 *
 * 2. Redistributions in binary form must reproduce the
 *    above copyright notice, this list of conditions and the
 *    following disclaimer in the documentation and/or other
 *    materials provided with the distribution.
 *
 * 3. The name "Exolab" must not be used to endorse or promote
 *    products derived from this Software without prior written
 *    permission of Exoffice Technologies.  For written permission,
 *    please contact info@exolab.org.
 *
 * 4. Products derived from this Software may not be called "Exolab"
 *    nor may "Exolab" appear in their names without prior written
 *    permission of Exoffice Technologies. Exolab is a registered
 *    trademark of Exoffice Technologies.
 *
 * 5. Due credit should be given to the Exolab Project
 *    (http://www.exolab.org/).
 *
 * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
 * EXOFFICE TECHNOLOGIES OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * Copyright 2000 (C) Exoffice Technologies Inc. All Rights Reserved.
 *
 * $Id: OpenJMSDestination.java,v 1.1 2004/11/26 01:51:15 tanderson Exp $ *
 * Date         Author  Changes
 * $Date	    jimm    Created
 */


package org.exolab.jms.tools.admin;

import java.awt.Rectangle;
import java.text.SimpleDateFormat;

import javax.swing.JPopupMenu;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;


/**
 * This is the base class for all destination nodes. A destination is either
 * a queue or a topic.
 *
 * @version     $Revision: 1.1 $ $Date: 2004/11/26 01:51:15 $
 * @author      <a href="mailto:mourikis@exolab.org">Jim Mourikis</a>
 */
abstract public class OpenJMSDestination extends DefaultMutableTreeNode
    implements OpenJMSNode {

    // The QueueTopicName
    protected String destinationName_;

    // Does this queue topic have any registered consumers
    protected boolean isLeaf_;

    // Whether this node has been opened and explored already.
    protected boolean isExplored_ = false;

    // The popup menu for destination
    protected JPopupMenu commands_ = null;

    // A flag indicating if the menu has been created yet.
    protected boolean commandsCreated_ = false;

    // A date time formatter.
    static protected SimpleDateFormat dateFormat_;

    //  A reference to the tree this node belongs to.
    static protected JTree tree_ = null;


    /**
     * The constructor gets its unique name for this queue/topic and a
     * reference to its parent tree.
     *
     * <P>If this is the first queue/topic call, the menu for all queue/topics
     * is created.
     *
     * @param destinationName This queue/topic name.
     * @param tree The parent tree this queue/topic belongs to.
     *
     */
    public OpenJMSDestination(String destinationName, JTree tree) {
        destinationName_ = destinationName;
        isLeaf_ = false;
        if (!commandsCreated_) {
            tree_ = tree;
            createCommands();
            commandsCreated_ = true;
            dateFormat_ = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
            dateFormat_.setLenient(false);
        }
    }


    /**
     * Create the menu for all queue/topics and set up the Action events for
     * each menu item. Since menus are shared, the callbacks called are
     * static. Once a menu is slected, the slected node can be determined
     * from the parent object.
     *
     */
    abstract protected void createCommands();

    /**
     * Children are allowed for all queue/topics
     *
     * @return boolean Always returns true.
     *
     */
    public boolean getAllowsChildren() {
        return true;
    }

    /**
     * Queue/Topics are leaves iff they have no consumers registered against
     * them.
     *
     * @return boolean true if no consumers are registered.
     *
     */
    public boolean isLeaf() {
        return isLeaf_;
    }

    /**
     * This node has been right clicked. The locations of this node is given
     * by the loc object. Use this location to popup the queue/topic message
     * menu.
     *
     * @param The location of this Consumer node.
     *
     */
    public void displayCommands(Rectangle loc) {
        double x;
        double y;

        x = loc.getX();
        y = loc.getY();
        y += loc.getHeight();

        commands_.show(tree_, (int) x, (int) y);
    }

    /**
     * The unique name of this queue/topic.
     *
     * @return String the queue/topic name.
     *
     */
    public String toString() {
        return destinationName_;
    }

    /**
     * This node has changed. Inform the parent tree that it needs to be
     * re-drawn.
     *
     */
    protected void refresh() {
        DefaultTreeModel model = (DefaultTreeModel) tree_.getModel();
        model.nodeStructureChanged((DefaultMutableTreeNode) this);
    }

    /**
     * Get the particular instance of the queue/topic that has been selected.
     *
     * @return OpenJMSDestination the instance selected.
     *
     */
    static protected OpenJMSDestination getInstanceSelected() {
        Object loc = tree_.getLastSelectedPathComponent();
        return (OpenJMSDestination) loc;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色悠悠久久综合| 色悠久久久久综合欧美99| 亚洲色图视频网站| 国产亲近乱来精品视频| 久久久综合视频| 久久色在线观看| 久久这里都是精品| 国产婷婷一区二区| 亚洲国产视频在线| 日韩毛片高清在线播放| 亚洲美女区一区| 午夜电影一区二区三区| 日韩av成人高清| 蜜桃精品在线观看| 国产一区二区三区蝌蚪| 成人免费观看av| 91欧美激情一区二区三区成人| 一本大道久久a久久综合婷婷| 91久久精品午夜一区二区| 欧美日韩激情在线| 日韩一区二区三区电影在线观看 | 2017欧美狠狠色| 久久精品欧美一区二区三区麻豆 | 在线中文字幕一区二区| 欧美视频日韩视频| 日韩精品一区二区三区中文精品 | 91碰在线视频| 欧美日韩精品免费观看视频| 日韩三级视频中文字幕| 国产精品久久久久影院| 亚洲高清一区二区三区| 国产一区福利在线| 在线观看日韩国产| 99在线热播精品免费| jizz一区二区| 欧美日韩大陆在线| 久久人人超碰精品| 亚洲高清在线精品| 大胆亚洲人体视频| 欧美裸体一区二区三区| 欧美激情一区二区三区四区| 亚洲一区成人在线| 成人一区二区三区| 日韩欧美一级片| 亚洲在线观看免费视频| 成人一区二区视频| 精品国产91乱码一区二区三区 | 日韩黄色免费电影| 97久久精品人人做人人爽| 91精品国模一区二区三区| 国产精品视频你懂的| 琪琪久久久久日韩精品| 91久久精品网| 亚洲视频精选在线| 国产精品一区二区视频| 国产不卡免费视频| 欧美午夜精品一区二区蜜桃| 国产精品区一区二区三| 美女视频网站久久| 欧美日韩一区久久| 亚洲日本韩国一区| 成人午夜精品一区二区三区| 日韩午夜电影av| 亚洲444eee在线观看| 一本久久a久久精品亚洲| 亚洲国产岛国毛片在线| 国模大尺度一区二区三区| 7777精品伊人久久久大香线蕉完整版 | 国产a级毛片一区| 欧美在线观看视频一区二区三区| 国产日韩欧美精品在线| 国产中文字幕精品| 久久综合久久综合久久综合| 免费成人av在线| 日韩视频免费观看高清完整版在线观看| 亚洲精品v日韩精品| 99久久精品国产毛片| 国产精品久久久久久户外露出 | 在线观看视频一区| 亚洲国产欧美另类丝袜| 色88888久久久久久影院按摩| 中文字幕佐山爱一区二区免费| www.亚洲在线| 一区二区在线观看免费 | 一区二区三区欧美亚洲| 色综合天天性综合| 夜夜夜精品看看| 制服丝袜国产精品| 久久精品久久99精品久久| 日韩你懂的在线播放| 国产自产高清不卡| 国产精品高潮久久久久无| 91成人在线精品| 日韩中文字幕亚洲一区二区va在线 | 日韩电影一二三区| 欧美成人猛片aaaaaaa| 国产一区二区毛片| 亚洲欧美区自拍先锋| 欧美日本在线播放| 久久黄色级2电影| 国产精品理伦片| 欧美视频在线一区二区三区 | 高清国产一区二区| 亚洲欧美日韩久久| 日韩一级精品视频在线观看| 国产.欧美.日韩| 午夜视频在线观看一区二区| 欧美xxx久久| 99久久免费国产| 亚洲成人av一区| 国产性做久久久久久| 色综合一个色综合| 激情图片小说一区| 亚洲一区日韩精品中文字幕| 4438x成人网最大色成网站| 成人性色生活片免费看爆迷你毛片| 亚洲欧美激情插| 久久综合久久鬼色| 99这里都是精品| 蜜桃久久av一区| 国产午夜精品一区二区三区四区| jvid福利写真一区二区三区| 日本不卡中文字幕| 亚洲品质自拍视频| 337p日本欧洲亚洲大胆精品| 欧美性生活大片视频| 丁香婷婷综合激情五月色| 日本中文字幕一区二区视频| ...av二区三区久久精品| 欧美电影免费观看高清完整版在| 色综合久久88色综合天天6| 国产精品99久久不卡二区| 亚洲综合在线观看视频| 中文字幕精品综合| 欧美不卡在线视频| 欧美三级在线视频| 色哟哟在线观看一区二区三区| 国产乱人伦偷精品视频免下载| 日韩av二区在线播放| 亚洲精品乱码久久久久久久久| 国产亚洲综合在线| 久久亚洲综合色| 日韩欧美一区二区不卡| 国产精品18久久久久| 日本欧美在线看| 亚洲成人自拍一区| 亚洲一区二区三区在线看| 成人欧美一区二区三区小说| 国产欧美精品一区二区三区四区| 日韩精品一区二区三区视频| 91精品麻豆日日躁夜夜躁| 欧美乱妇15p| 91精品国产全国免费观看 | 丁香激情综合五月| 国产成人精品三级| 国产黄人亚洲片| 成人深夜视频在线观看| 成人免费视频caoporn| 国产a视频精品免费观看| 成人美女视频在线观看| 波多野结衣的一区二区三区| av在线播放不卡| 欧洲在线/亚洲| 欧美日韩在线免费视频| 777奇米四色成人影色区| 日韩欧美在线123| 国产亚洲综合在线| 国产精品久久久久aaaa| 亚洲精品菠萝久久久久久久| 天天射综合影视| 九一久久久久久| 成人影视亚洲图片在线| 一本色道亚洲精品aⅴ| 欧美日韩亚洲综合| 欧美电影免费观看高清完整版在| www久久精品| 亚洲色图一区二区三区| 肉色丝袜一区二区| 国产精品综合网| 91久久人澡人人添人人爽欧美 | 欧美成人官网二区| 国产日韩精品一区二区浪潮av| 综合在线观看色| 青娱乐精品视频在线| 成人黄色av网站在线| 欧美无乱码久久久免费午夜一区| 日韩欧美久久久| 国产精品久久久久9999吃药| 性做久久久久久免费观看欧美| 国精产品一区一区三区mba桃花 | 日韩电影一二三区| 国产99久久久国产精品| 欧美日韩五月天| 中文字幕欧美激情| 日韩制服丝袜先锋影音| 成人av动漫在线| 日韩欧美成人一区二区| 亚洲精品v日韩精品| 国产一区二区三区精品欧美日韩一区二区三区 | 国产不卡视频一区|