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

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

?? basiccombopopup.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 3 頁
字號(hào):
/* * @(#)BasicComboPopup.java	1.85 07/10/25 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.basic;import javax.accessibility.AccessibleContext;import javax.swing.*;import javax.swing.border.Border;import javax.swing.border.LineBorder;import javax.swing.event.*;import java.awt.*;import java.awt.event.*;import java.beans.PropertyChangeListener;import java.beans.PropertyChangeEvent;import java.io.Serializable;/** * This is a basic implementation of the <code>ComboPopup</code> interface. *  * This class represents the ui for the popup portion of the combo box. * <p> * All event handling is handled by listener classes created with the  * <code>createxxxListener()</code> methods and internal classes. * You can change the behavior of this class by overriding the * <code>createxxxListener()</code> methods and supplying your own * event listeners or subclassing from the ones supplied in this class. * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing.  As of 1.4, support for long term storage * of all JavaBeans<sup><font size="-2">TM</font></sup> * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @version 1.85 10/25/07 * @author Tom Santos * @author Mark Davidson */public class BasicComboPopup extends JPopupMenu implements ComboPopup {    // An empty ListMode, this is used when the UI changes to allow    // the JList to be gc'ed.    private static class EmptyListModelClass implements ListModel,                                                        Serializable {	public int getSize() { return 0; }	public Object getElementAt(int index) { return null; }	public void addListDataListener(ListDataListener l) {}	public void removeListDataListener(ListDataListener l) {}    };    static final ListModel EmptyListModel = new EmptyListModelClass();    private static Border LIST_BORDER = new LineBorder(Color.BLACK, 1);    protected JComboBox                comboBox;    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the accessor methods instead.     *     * @see #getList     * @see #createList     */    protected JList                    list;    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the create method instead     *     * @see #createScroller     */    protected JScrollPane              scroller;    /**     * As of Java 2 platform v1.4 this previously undocumented field is no     * longer used.     */    protected boolean                  valueIsAdjusting = false;    // Listeners that are required by the ComboPopup interface    /**     * Implementation of all the listener classes.     */    private Handler handler;    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the accessor or create methods instead.     *     * @see #getMouseMotionListener     * @see #createMouseMotionListener     */    protected MouseMotionListener      mouseMotionListener;    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the accessor or create methods instead.     *     * @see #getMouseListener     * @see #createMouseListener     */    protected MouseListener            mouseListener;    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the accessor or create methods instead.     *     * @see #getKeyListener     * @see #createKeyListener     */    protected KeyListener              keyListener;    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the create method instead.     *     * @see #createListSelectionListener     */    protected ListSelectionListener    listSelectionListener;    // Listeners that are attached to the list    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the create method instead.     *     * @see #createListMouseListener     */    protected MouseListener            listMouseListener;    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the create method instead     *     * @see #createListMouseMotionListener     */    protected MouseMotionListener      listMouseMotionListener;    // Added to the combo box for bound properties    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the create method instead     *     * @see #createPropertyChangeListener     */    protected PropertyChangeListener   propertyChangeListener;    // Added to the combo box model    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the create method instead     *     * @see #createListDataListener     */    protected ListDataListener         listDataListener;    /**     * This protected field is implementation specific. Do not access directly     * or override. Use the create method instead     *     * @see #createItemListener     */    protected ItemListener             itemListener;    /**     * This protected field is implementation specific. Do not access directly     * or override.      */    protected Timer                    autoscrollTimer;    protected boolean                  hasEntered = false;    protected boolean                  isAutoScrolling = false;    protected int                      scrollDirection = SCROLL_UP;    protected static final int         SCROLL_UP = 0;    protected static final int         SCROLL_DOWN = 1;    //========================================    // begin ComboPopup method implementations    //    /**     * Implementation of ComboPopup.show().     */    public void show() {	setListSelection(comboBox.getSelectedIndex());	Point location = getPopupLocation();        show( comboBox, location.x, location.y );    }    /**     * Implementation of ComboPopup.hide().     */    public void hide() {        MenuSelectionManager manager = MenuSelectionManager.defaultManager();        MenuElement [] selection = manager.getSelectedPath();        for ( int i = 0 ; i < selection.length ; i++ ) {            if ( selection[i] == this ) {                manager.clearSelectedPath();                break;            }        }        if (selection.length > 0) {            comboBox.repaint();        }    }    /**     * Implementation of ComboPopup.getList().     */    public JList getList() {        return list;    }    /**     * Implementation of ComboPopup.getMouseListener().     *      * @return a <code>MouseListener</code> or null     * @see ComboPopup#getMouseListener     */    public MouseListener getMouseListener() {	if (mouseListener == null) {	    mouseListener = createMouseListener();	}        return mouseListener;    }    /**     * Implementation of ComboPopup.getMouseMotionListener().     *     * @return a <code>MouseMotionListener</code> or null     * @see ComboPopup#getMouseMotionListener     */    public MouseMotionListener getMouseMotionListener() {	if (mouseMotionListener == null) {	    mouseMotionListener = createMouseMotionListener();	}        return mouseMotionListener;    }    /**     * Implementation of ComboPopup.getKeyListener().     *     * @return a <code>KeyListener</code> or null     * @see ComboPopup#getKeyListener     */    public KeyListener getKeyListener() {	if (keyListener == null) {	    keyListener = createKeyListener();	}	return keyListener;    }    /**     * Called when the UI is uninstalling.  Since this popup isn't in the component     * tree, it won't get it's uninstallUI() called.  It removes the listeners that     * were added in addComboBoxListeners().     */    public void uninstallingUI() {	if (propertyChangeListener != null) {	    comboBox.removePropertyChangeListener( propertyChangeListener );	}	if (itemListener != null) {	    comboBox.removeItemListener( itemListener );	}	uninstallComboBoxModelListeners(comboBox.getModel());        uninstallKeyboardActions();	uninstallListListeners();	// We do this, otherwise the listener the ui installs on	// the model (the combobox model in this case) will keep a	// reference to the list, causing the list (and us) to never get gced.	list.setModel(EmptyListModel);    }    //    // end ComboPopup method implementations    //======================================    /**      * Removes the listeners from the combo box model     *     * @param model The combo box model to install listeners     * @see #installComboBoxModelListeners     */    protected void uninstallComboBoxModelListeners( ComboBoxModel model ) {	if (model != null && listDataListener != null) {	    model.removeListDataListener(listDataListener);	}    }    protected void uninstallKeyboardActions() {        // XXX - shouldn't call this method//        comboBox.unregisterKeyboardAction( KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, 0 ) );    }    //===================================================================    // begin Initialization routines    //    public BasicComboPopup( JComboBox combo ) {        super();        setName("ComboPopup.popup");        comboBox = combo;        setLightWeightPopupEnabled( comboBox.isLightWeightPopupEnabled() );	// UI construction of the popup.         list = createList();        list.setName("ComboBox.list");	configureList();        scroller = createScroller();        scroller.setName("ComboBox.scrollPane");        configureScroller();        configurePopup();	installComboBoxListeners();        installKeyboardActions();    }    // Overriden PopupMenuListener notification methods to inform combo box    // PopupMenuListeners.    protected void firePopupMenuWillBecomeVisible() {	super.firePopupMenuWillBecomeVisible();	comboBox.firePopupMenuWillBecomeVisible();    }        protected void firePopupMenuWillBecomeInvisible() {	super.firePopupMenuWillBecomeInvisible();	comboBox.firePopupMenuWillBecomeInvisible();    }        protected void firePopupMenuCanceled() {	super.firePopupMenuCanceled();	comboBox.firePopupMenuCanceled();    }    /**     * Creates a listener      * that will watch for mouse-press and release events on the combo box.     *      * <strong>Warning:</strong>     * When overriding this method, make sure to maintain the existing     * behavior.     *     * @return a <code>MouseListener</code> which will be added to      * the combo box or null     */    protected MouseListener createMouseListener() {        return getHandler();    }    /**     * Creates the mouse motion listener which will be added to the combo     * box.     *     * <strong>Warning:</strong>     * When overriding this method, make sure to maintain the existing     * behavior.     *     * @return a <code>MouseMotionListener</code> which will be added to     *         the combo box or null     */    protected MouseMotionListener createMouseMotionListener() {        return getHandler();    }    /**     * Creates the key listener that will be added to the combo box. If      * this method returns null then it will not be added to the combo box.     *     * @return a <code>KeyListener</code> or null     */    protected KeyListener createKeyListener() {	return null;    }    /**     * Creates a list selection listener that watches for selection changes in     * the popup's list.  If this method returns null then it will not     * be added to the popup list.     *     * @return an instance of a <code>ListSelectionListener</code> or null     */    protected ListSelectionListener createListSelectionListener() {        return null;    }    /**     * Creates a list data listener which will be added to the     * <code>ComboBoxModel</code>. If this method returns null then     * it will not be added to the combo box model.     *     * @return an instance of a <code>ListDataListener</code> or null     */    protected ListDataListener createListDataListener() {        return null;    }    /**     * Creates a mouse listener that watches for mouse events in     * the popup's list. If this method returns null then it will     * not be added to the combo box.     *     * @return an instance of a <code>MouseListener</code> or null     */    protected MouseListener createListMouseListener() {        return getHandler();    }    /**     * Creates a mouse motion listener that watches for mouse motion      * events in the popup's list. If this method returns null then it will     * not be added to the combo box.     *     * @return an instance of a <code>MouseMotionListener</code> or null     */    protected MouseMotionListener createListMouseMotionListener() {        return getHandler();    }    /**

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美老年两性高潮| 久久久777精品电影网影网| 亚洲欧洲美洲综合色网| 99精品1区2区| 亚洲一区二区三区四区在线| caoporen国产精品视频| 亚洲天堂免费看| 欧美亚洲动漫精品| 日韩av网站免费在线| 制服丝袜亚洲色图| 美女一区二区三区| 国产欧美精品一区| www.日韩av| 水野朝阳av一区二区三区| 欧美一区二区三区视频| 国产呦萝稀缺另类资源| 最新热久久免费视频| 欧美精品粉嫩高潮一区二区| 极品少妇xxxx精品少妇偷拍| 中文在线一区二区| 欧美日韩国产高清一区二区三区 | 在线国产亚洲欧美| 理论电影国产精品| 亚洲一区二区三区小说| 久久免费看少妇高潮| 色菇凉天天综合网| 精品一区二区三区欧美| 亚洲国产wwwccc36天堂| 久久久久久久久99精品| 日本道在线观看一区二区| 精品综合免费视频观看| 亚洲成av人片在线观看无码| 国产女主播一区| 日韩情涩欧美日韩视频| 91福利视频久久久久| 国产宾馆实践打屁股91| 久久精品久久综合| 天天综合色天天综合色h| 亚洲三级在线看| 国产精品久久久久四虎| 日韩亚洲欧美在线观看| 欧美日韩三级一区| 日本乱码高清不卡字幕| 99视频有精品| 一本一道综合狠狠老| 91蜜桃免费观看视频| 成人免费av在线| av亚洲精华国产精华精华| 国产.欧美.日韩| 成人黄色一级视频| av成人免费在线| 日本精品免费观看高清观看| 91麻豆国产精品久久| 欧洲激情一区二区| 欧美一区午夜视频在线观看| 欧美一区二区日韩| 精品久久久久香蕉网| 久久久精品tv| 亚洲人吸女人奶水| 日韩精品一二三区| 久久国产精品99精品国产| 国产精品99久久久久| 99久久精品久久久久久清纯| 在线精品视频一区二区| 91精品欧美久久久久久动漫 | 国产一区二区三区黄视频 | 国产精品一区二区在线观看不卡| 一区二区三区四区在线| 久久久久久久久免费| 国产精品一区二区男女羞羞无遮挡 | 中文字幕亚洲在| 国产一区二区主播在线| 欧美日韩情趣电影| 精品久久久影院| 亚洲精品国产品国语在线app| 婷婷六月综合网| 国产精品77777| 欧美女孩性生活视频| 久久综合久久鬼色中文字| 亚洲一区二区精品3399| 国产中文字幕一区| 欧美剧在线免费观看网站| 精品成人佐山爱一区二区| 中文字幕一区二区三区不卡| 美女任你摸久久| 在线看不卡av| 亚洲色图色小说| 成人小视频免费在线观看| 欧美丰满嫩嫩电影| 夜夜嗨av一区二区三区| 777xxx欧美| 午夜精品久久久久久久99水蜜桃| 精品视频999| 五月天丁香久久| 精品少妇一区二区三区免费观看 | 国产在线视频一区二区| 久久免费看少妇高潮| 岛国av在线一区| 最新中文字幕一区二区三区| 色噜噜狠狠成人中文综合| 亚洲免费观看高清完整版在线| 欧美日韩亚洲综合在线 | 亚洲裸体xxx| 欧美日韩视频在线第一区| 亚洲第一主播视频| 精品国产乱码91久久久久久网站| 国产精品88av| 亚洲乱码国产乱码精品精小说 | 国产精品免费av| 欧美日韩久久久| 色婷婷久久99综合精品jk白丝| 蜜桃精品视频在线| 日本一不卡视频| 亚洲va欧美va天堂v国产综合| 久久婷婷国产综合国色天香| 在线观看91视频| 成人午夜激情在线| 久久精品av麻豆的观看方式| 一区二区三区小说| 欧美极品另类videosde| 日韩一区二区三区免费观看| 色吧成人激情小说| 国产成人亚洲综合a∨猫咪 | 亚洲 欧美综合在线网络| 久久亚洲私人国产精品va媚药| 欧美日韩一区三区四区| 99精品视频在线播放观看| 国产黄色成人av| 国产成人精品免费视频网站| 久久疯狂做爰流白浆xx| 天天做天天摸天天爽国产一区| 亚洲欧美电影院| 亚洲欧美国产三级| 亚洲精品福利视频网站| 亚洲精品欧美激情| 亚洲电影在线免费观看| 亚洲精品成人精品456| 国产精品区一区二区三区| 国产精品三级久久久久三级| 国产欧美一区二区精品婷婷 | 欧美二区三区的天堂| 欧美三级中文字| 欧美一区二区三区色| 欧美电影免费观看高清完整版在线观看| 欧美妇女性影城| 日韩精品一区二区在线| 久久久久国产一区二区三区四区 | 日本在线播放一区二区三区| 美女视频黄a大片欧美| 美女脱光内衣内裤视频久久网站 | 精品国产乱码久久久久久1区2区 | 欧美主播一区二区三区美女| 欧美日韩国产影片| 久久综合九色综合97婷婷| 日韩美女视频一区二区| 日韩精品乱码免费| 色综合天天综合网天天狠天天| 这里只有精品视频在线观看| 中文字幕在线不卡国产视频| 日本亚洲天堂网| 在线精品视频小说1| 亚洲视频一区二区免费在线观看| 久久精品久久99精品久久| 欧美午夜电影网| 国产精品久久毛片a| 国内精品免费**视频| 粉嫩13p一区二区三区| 91日韩精品一区| 久久亚洲精华国产精华液| 亚洲久草在线视频| 精品一区二区免费看| 日本电影亚洲天堂一区| 久久久www免费人成精品| 亚洲国产成人精品视频| 成人免费观看av| 日韩欧美中文字幕一区| 亚洲免费电影在线| 成人精品国产福利| 欧美大片免费久久精品三p| 亚洲欧洲制服丝袜| 国产精品一品二品| 日韩视频一区二区在线观看| 亚洲色图.com| 日本高清免费不卡视频| 国产精品久久久久aaaa| 国产精品综合视频| 精品国产免费久久| 久久超级碰视频| 91精品国产综合久久香蕉的特点| 亚洲午夜视频在线| 在线精品视频免费播放| 亚洲一区二区三区中文字幕在线 | 亚洲国产精品人人做人人爽| 色诱视频网站一区| 一区二区三区自拍| 欧美性色黄大片| 视频一区二区三区在线| 欧美一级一级性生活免费录像| 日本网站在线观看一区二区三区| 欧美卡1卡2卡|