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

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

?? systraymenu.java

?? JBother是純Java開發(fā)的Jabber(即時(shí)消息開源軟件)客戶端。支持群組聊天
?? JAVA
字號:
/*********************************************************************************                                   SysTrayMenu.java                                   ----------------    author               : Tamas Bara    copyright            : (C) 2002-2004 by SnoozeSoft    email                : snoozesoft@compuserve.de *********************************************************************************//********************************************************************************* *                                                                               * *   This library is free software; you can redistribute it and/or               * *   modify it under the terms of the GNU Lesser General Public                  * *   License as published by the Free Software Foundation; either                * *   version 2.1 of the License, or (at your option) any later version.          * *                                                                               * *   This library is distributed in the hope that it will be useful,             * *   but WITHOUT ANY WARRANTY; without even the implied warranty of              * *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU           * *   Lesser General Public License for more details.                             * *                                                                               * *   You should have received a copy of the GNU Lesser General Public            * *   License along with this library; if not, write to the Free Software         * *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   * *                                                                               * *********************************************************************************/package snoozesoft.systray4j;import java.util.*;import java.awt.*;/** * <p>This class is the main interface of this package. Access to the system tray begins * here when an instance of this class is created.</p> * <p>Each instance consists of: * <ul> * <li>an icon, displayed in the system tray</li> * <li>a tooltip, shown when the cursor is over the icon</li> * <li>a native popup menu, displayed when the icon is right-clicked</li> * </ul> * </p> * <p>The items of the menu are placed in bottom-up order:<br> *   <table border="0", width="100%" cellpadding="16"> *     <td align="center"><img src="order.png"></td> *   </table> * </p> */public class SysTrayMenu{    public static String VERSION = "2.4.1";    /**     * The separator object.     */    public static Separator SEPARATOR = new Separator();    protected Vector items;    protected SysTrayMenuIcon icon;    protected String toolTip;    protected int id;    private boolean iconVisible;    /**     * <p>Convenience constructor.</p>     * <p>Calls the 'real' constructor with empty tooltip and items arguments.</p>     * @param icon The systray icon of this menu.     */    public SysTrayMenu( SysTrayMenuIcon icon )    {        this( icon, "", new Vector() );    }    /**     * <p>Convenience constructor.</p>     * <p>Calls the 'real' constructor with empty tooltip argument.</p>     * @param icon The systray icon of this menu.     * @param items The menu items.     */    public SysTrayMenu( SysTrayMenuIcon icon, Vector items )    {        this( icon, "", items );    }    /**     * <p>Convenience constructor.</p>     * <p>Calls the 'real' constructor with empty items argument.</p>     * @param icon The systray icon of this menu.     * @param toolTip The tooltip displayed when the cursor is over the icon.     */    public SysTrayMenu( SysTrayMenuIcon icon, String toolTip )    {        this( icon, toolTip, new Vector() );    }    /**     * <p>'Real' construcor.</p>     * <p>Constructs a new menu consisting of the passed icon displayed in the system     * tray, the tooltip, and a popup menu appearing when the user right-clicks the     * systray icon. The menu items are taken from the passed vector, and inserted in     * bottom-up order.</p>     * @param icon The systray icon of this menu.     * @param toolTip The tooltip displayed when the cursor is over the icon.     * @param items The menu items.     */    public SysTrayMenu( SysTrayMenuIcon icon, String toolTip, Vector items )    {        this.icon = icon;        this.toolTip = toolTip;        Object item = null;        for( int i = 0; i < items.size(); i++ )        {            item = items.get( i );            if( item instanceof SysTrayMenuItem )                ( ( SysTrayMenuItem ) item ).addContainer( this );        }        this.items = ( Vector ) items.clone();        iconVisible = true;        SysTrayManager.addMainMenu( this );    }    /**     * Prints out a version string and exits.     * @param args ignored.     */    public static void main( String[] args )    {        System.out.println( "SysTray for Java v" + VERSION );    }    /**     * <p>Enables checking whether SysTray for Java is available on this platform.</p>     * <p>On win32 this method returns false, if the native library could not be     * loaded. On KDE an attempt is made to establish a connection to the SysTray for     * Java Daemon. If connecting fails, this methods returns false.</p>     * @return true if SysTray for Java is available.     */    public static boolean isAvailable()    {        return SysTrayManager.isAvailable();    }    /**     * Sets the icon to be displayed in the system tray for this menu.     * @param icon The systray icon of this menu.     */    public void setIcon( SysTrayMenuIcon icon )    {        this.icon = icon;        SysTrayManager.setIcon( id, icon.iconFile.getAbsolutePath() );    }    /**     * Getter for the visibility of the icon.     * @return true if the icon in the system tray is visible.     */    public boolean isIconVisible()    {        return iconVisible;    }    /**     * Shows the icon, if it is currently hidden.     */    public void showIcon()    {        //if( !iconVisible ) iconVisible may be wrong        //{            SysTrayManager.showIcon( id, true );            iconVisible = true;        //}    }    /**     * Hides the icon, if it is currently visible.     */    public void hideIcon()    {        if( iconVisible )        {            SysTrayManager.showIcon( id, false );            iconVisible = false;        }    }    /**     * Getter for the assigned icon.     * @return The systray icon of this menu.     */    public SysTrayMenuIcon getIcon()    {        return icon;    }    /**     * Getter for the assigned tooltip.     * @return The tooltip displayed when the cursor is over the icon.     */    public String getToolTip()    {        return toolTip;    }    /**     * Sets the tooltip of this menu.     * @param toolTip The tooltip displayed when the cursor is over the icon.     */    public void setToolTip( String toolTip )    {        this.toolTip = toolTip;        SysTrayManager.setToolTip( id, toolTip );    }    /**     * Inserts a separator at the top of this menu.     */    public void addSeparator()    {        addSeparator( items.size() );    }    /**     * Inserts a separator to this menu.     * @param index The position of the new separator item.     */    public void addSeparator( int index )    {        items.add( index, SEPARATOR );        SysTrayManager.addItem( id, index, SEPARATOR );    }    /**     * Getter for the size of this menu.     * @return The number of items in this menu, including separators.     */    public int getItemCount()    {        return items.size();    }    /**     * Inserts an item at the top of this menu.     * @param item The new menu item.     */    public void addItem( SysTrayMenuItem item )    {        addItem( item, items.size() );    }    /**     * Inserts an item to this menu.     * @param item The new menu item.     * @param index The position of the new menu item.     */    public void addItem( SysTrayMenuItem item, int index )    {        items.add( index, item );        SysTrayManager.addItem( id, index, item );        item.addContainer( this );    }    /**     * Rebuilds this menu according to the passed vector.     * @param items The new menu items.     */    public void setItems( Vector items )    {        Object item = null;        for( int i = 0; i < this.items.size(); i++ )        {            item = this.items.elementAt( i );            if( item instanceof SysTrayMenuItem )                ( ( SysTrayMenuItem ) item ).removeContainer( this );        }        this.items.clear();        for( int i = 0; i < items.size(); i++ )        {            item = items.get( i );            if( item instanceof SysTrayMenuItem )                ( ( SysTrayMenuItem ) item ).addContainer( this );        }        this.items = ( Vector ) items.clone();        SysTrayManager.replaceItems( id, items );    }    /**     * Returns the first item labeled as <code>label</code> or <code>null</code> if     * no such item could be found.     * @param label The label of the menu item to look for.     * @return the target item or <code>null</code>.     */    public SysTrayMenuItem getItem( String label )    {        Object object = null;        SysTrayMenuItem item = null;        for( int i = 0; i < items.size(); i++ )        {            object = items.elementAt( i );            if( object instanceof SysTrayMenuItem )            {                item = ( SysTrayMenuItem ) object;                if( !item.label.equals( label ) ) item = null;                else break;            }        }        return item;    }    /**     * Returns the item at position <code>index</code>.     * @param index The position of the menu item to look for.     * @return the target item or <code>null</code> if the item at the given position is     * a separator.     */    public SysTrayMenuItem getItemAt( int index )    {        Object item = items.get( index );        if( item instanceof SysTrayMenuItem ) return ( SysTrayMenuItem ) item;        else return null;    }    /**     * Removes the item at position <code>index</code> from this menu.     * @param index The position of the menu item to remove.     */    public void removeItemAt( int index )    {        SysTrayManager.removeItem( id, index );        Object item = items.get( index );        if( item instanceof SysTrayMenuItem )            ( ( SysTrayMenuItem ) item ).removeContainer( this );        items.remove( index );    }    /**     * Removes the passed item from this menu.     * @param item The menu item to remove.     */    public void removeItem( Object item )    {        SysTrayManager.removeItem( id, items.indexOf( item ) );        if( item instanceof SysTrayMenuItem )            ( ( SysTrayMenuItem ) item ).removeContainer( this );        items.remove( item );    }    /**     * Removes all menu items.     */    public void removeAll()    {        Object item = null;        for( int i = 0; i < items.size(); i++ )        {            item = items.elementAt( i );            if( item instanceof SysTrayMenuItem )                ( ( SysTrayMenuItem ) item ).removeContainer( this );        }        items.clear();        SysTrayManager.replaceItems( id, items );    }    /**     * In some cases <code>System.exit()</code> is not the way you want     * to exit your application. Than you should call this function to     * make sure that the SysTray for Java thread terminates along with     * your threads.     */    public static void dispose()    {        SysTrayManager.dispose();    }    // called from native code or the KDE3SysTray instance    void iconLeftClicked( boolean doubleClicked )    {        Runnable fireThread = new FireThread( icon, doubleClicked );        EventQueue.invokeLater( fireThread );    }    // called from native code or the KDE3SysTray instance    void menuItemSelected( int index )    {        SysTrayMenuItem item = ( SysTrayMenuItem ) items.get( index );        Runnable fireThread = new FireThread( item );        EventQueue.invokeLater( fireThread );    }    private static class Separator {}    protected static class FireThread implements Runnable    {        private SysTrayMenuIcon icon;        private SysTrayMenuItem item;        private boolean doubleClicked;        public FireThread( SysTrayMenuIcon icon, boolean doubleClicked )        {            this.icon = icon;            this.doubleClicked = doubleClicked;            item = null;        }        public FireThread( SysTrayMenuItem item )        {            this.item = item;            icon = null;        }        public void run()        {            if( icon != null )            {                if( doubleClicked ) icon.fireIconLeftDoubleClicked();                else icon.fireIconLeftClicked();            }            else item.fireMenuItemSelected();        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品入口麻豆原神| 午夜精品久久久久久久久久| 亚洲免费观看高清完整版在线| 亚洲一二三区视频在线观看| 精品一区二区三区在线观看国产| 99riav一区二区三区| 日韩一区二区三| 一区2区3区在线看| 国产成人啪午夜精品网站男同| 欧美色图在线观看| 国产精品午夜免费| 久久99最新地址| 欧美午夜电影在线播放| 久久久久成人黄色影片| 五月天精品一区二区三区| 福利一区二区在线| 精品国产乱码久久久久久浪潮| 一区二区三区 在线观看视频| 国产精品自拍三区| 欧美成人精精品一区二区频| 亚洲免费三区一区二区| 成人一区二区三区| 久久综合九色综合97婷婷女人 | 一区二区理论电影在线观看| 国产伦精品一区二区三区视频青涩 | 在线观看av一区| 综合av第一页| 成人aa视频在线观看| 2020国产精品自拍| 九九国产精品视频| 日韩精品自拍偷拍| 免费高清在线一区| 日韩亚洲欧美综合| 美女视频黄免费的久久| 欧美日本免费一区二区三区| 久久久久99精品一区| 日本午夜精品一区二区三区电影| 欧美日韩国产美| 亚洲激情图片小说视频| 成人免费毛片嘿嘿连载视频| 日韩精品一区二区三区视频在线观看| 亚洲激情在线播放| 成人精品视频一区| 久久九九国产精品| 国产成人免费av在线| 久久久久久久久久久久久久久99 | 国产精品区一区二区三区| 韩国一区二区视频| 精品成人一区二区三区四区| 日韩国产欧美视频| 91精品久久久久久久久99蜜臂| 一区二区在线观看免费视频播放| 成人h动漫精品| 亚洲国产激情av| 91黄视频在线观看| 午夜精品视频一区| 欧美日韩一级大片网址| 亚洲第一久久影院| 51精品秘密在线观看| 亚洲色图.com| 99久久99久久免费精品蜜臀| 亚洲午夜精品久久久久久久久| 欧美亚洲一区二区在线| 亚洲大片精品永久免费| 欧美日韩电影在线| 蜜桃在线一区二区三区| 日韩视频免费观看高清完整版| 麻豆国产欧美一区二区三区| 久久青草国产手机看片福利盒子| 国产精品综合av一区二区国产馆| 久久久高清一区二区三区| 91在线精品一区二区三区| 最新久久zyz资源站| 欧美色图免费看| 麻豆精品久久精品色综合| 亚洲成人一区在线| 欧美一区二区三区思思人| 国产福利精品一区| 午夜欧美视频在线观看| 中文字幕精品一区二区三区精品| 欧美中文字幕一区二区三区亚洲 | 国产欧美日韩久久| 色视频一区二区| 日韩va欧美va亚洲va久久| 久久亚洲精品国产精品紫薇| 成人国产精品免费网站| 亚洲.国产.中文慕字在线| 精品区一区二区| 99久久久国产精品| 男女男精品视频网| 国产精品乱码一区二区三区软件| 99精品久久久久久| 丝袜美腿亚洲综合| 亚洲欧洲精品一区二区精品久久久 | av在线免费不卡| 日韩电影免费在线| 国产精品久久久久桃色tv| 666欧美在线视频| 国产在线精品免费av| 亚洲伊人色欲综合网| 欧美精品一区二区三区在线| 色94色欧美sute亚洲线路二| 久久草av在线| 午夜精品久久久久久不卡8050| 久久久久久久综合日本| 久久综合色鬼综合色| 欧美日韩一区不卡| 99精品久久99久久久久| 国产自产视频一区二区三区| 亚洲成人自拍偷拍| 亚洲在线视频一区| 国产精品青草综合久久久久99| 欧美一区二区三区免费大片| 91啦中文在线观看| 91影院在线观看| 成人午夜免费av| 久久国内精品自在自线400部| 尤物av一区二区| 91精品国产入口| 欧美日韩视频在线观看一区二区三区| 成人动漫av在线| 国产露脸91国语对白| 秋霞成人午夜伦在线观看| 亚洲欧美偷拍三级| 国产精品国产三级国产普通话99| 精品日韩在线观看| 日韩精品一区国产麻豆| 欧美性受xxxx黑人xyx性爽| 国产成人综合在线观看| 国产伦精品一区二区三区在线观看| 日韩激情在线观看| 黄色精品一二区| 精品制服美女久久| 黄色日韩三级电影| 九色综合国产一区二区三区| 国产精品亚洲成人| 国产精品一区二区久久不卡| 激情六月婷婷综合| 国产成人亚洲综合a∨婷婷| 国产精品一区久久久久| 国产精品亚洲第一| 成人av综合一区| 97精品国产露脸对白| 91在线国内视频| 91精品婷婷国产综合久久| 国产精品成人在线观看| 亚洲色图在线看| 亚洲欧美偷拍三级| 亚洲一区视频在线| 日韩成人一级大片| 黑人精品欧美一区二区蜜桃| 国产精品白丝av| 99精品偷自拍| 欧美日韩在线三级| 欧美日韩国产首页在线观看| 久久这里只有精品视频网| 欧美国产日本韩| 亚洲美女免费在线| 视频在线观看一区| 国产一区二区三区四区五区美女| 国产精品996| 色婷婷精品久久二区二区蜜臂av| 色婷婷国产精品| 久久日韩精品一区二区五区| 国产女人18毛片水真多成人如厕 | 日本欧美肥老太交大片| 丰满放荡岳乱妇91ww| 91精品91久久久中77777| 在线播放91灌醉迷j高跟美女| 日韩精品一区二区三区中文不卡| 国产日韩欧美在线一区| 亚洲国产综合91精品麻豆| 久久91精品久久久久久秒播| 99久久久国产精品| 日韩一区国产二区欧美三区| 国产午夜精品久久久久久久 | 亚洲色图欧美偷拍| 美女视频一区在线观看| 99在线精品免费| 欧美一区二区三区在线| 亚洲综合在线免费观看| 国产一区福利在线| 在线观看日韩av先锋影音电影院| 制服丝袜av成人在线看| 欧美videos大乳护士334| 亚洲最新在线观看| 成人一区二区在线观看| 欧美精品少妇一区二区三区| 中文字幕电影一区| 国产综合色在线| 欧美xxxx在线观看| 免费看欧美女人艹b| 欧美三级韩国三级日本三斤| 亚洲欧美一区二区三区久本道91 | 精品视频1区2区3区| 国产精品久久久久国产精品日日| 91丨porny丨首页| 久久久精品黄色| 久久精品国产精品亚洲综合| 91精品国产91综合久久蜜臀|