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

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

?? basiccomboboxui.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* * @(#)BasicComboBoxUI.java	1.192 08/05/29 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.basic;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.accessibility.*;import javax.swing.plaf.*;import javax.swing.border.*;import javax.swing.text.*;import javax.swing.event.*;import java.beans.PropertyChangeListener;import java.beans.PropertyChangeEvent;import sun.awt.AppContext;import sun.swing.DefaultLookup;import sun.swing.UIAction;/** * Basic UI implementation for JComboBox.  * <p> * The combo box is a compound component which means that it is an agregate of * many simpler components. This class creates and manages the listeners * on the combo box and the combo box model. These listeners update the user  * interface in response to changes in the properties and state 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> * For adding specific actions,  * overide <code>installKeyboardActions</code> to add actions in response to * KeyStroke bindings. See the article <a href="http://java.sun.com/products/jfc/tsc/special_report/kestrel/keybindings.html">Keyboard Bindings in Swing</a> * at <a href="http://java.sun.com/products/jfc/tsc"><em>The Swing Connection</em></a>. * * @version 1.192 05/29/08 * @author Arnaud Weber * @author Tom Santos * @author Mark Davidson */public class BasicComboBoxUI extends ComboBoxUI {    protected JComboBox comboBox;    /**     * This protected field is implementation specific. Do not access directly     * or override.      */    protected boolean   hasFocus = false;    // Control the selection behavior of the JComboBox when it is used    // in the JTable DefaultCellEditor.     private boolean isTableCellEditor = false;    private static final String IS_TABLE_CELL_EDITOR = "JComboBox.isTableCellEditor";    // This list is for drawing the current item in the combo box.    protected JList   listBox;    // Used to render the currently selected item in the combo box.    // It doesn't have anything to do with the popup's rendering.    protected CellRendererPane currentValuePane = new CellRendererPane();    // The implementation of ComboPopup that is used to show the popup.    protected ComboPopup popup;    // The Component that the ComboBoxEditor uses for editing    protected Component editor;    // The arrow button that invokes the popup.    protected JButton   arrowButton;    // Listeners that are attached to the JComboBox    /**     * This protected field is implementation specific. Do not access directly     * or override. Override the listener construction method instead.     *     * @see #createKeyListener     */    protected KeyListener keyListener;    /**     * This protected field is implementation specific. Do not access directly     * or override. Override the listener construction method instead.     *     * @see #createFocusListener     */    protected FocusListener focusListener;    /**     * This protected field is implementation specific. Do not access directly     * or override. Override the listener construction method instead.     *     * @see #createPropertyChangeListener     */    protected PropertyChangeListener propertyChangeListener;    /**     * This protected field is implementation specific. Do not access directly     * or override. Override the listener construction method instead.     *     * @see #createItemListener     */    protected ItemListener itemListener;    // Listeners that the ComboPopup produces.    protected MouseListener popupMouseListener;    protected MouseMotionListener popupMouseMotionListener;    protected KeyListener popupKeyListener;    // This is used for knowing when to cache the minimum preferred size.    // If the data in the list changes, the cached value get marked for recalc.    // Added to the current JComboBox model    /**     * This protected field is implementation specific. Do not access directly     * or override. Override the listener construction method instead.     *     * @see #createListDataListener     */    protected ListDataListener listDataListener;    /**     * Implements all the Listeners needed by this class, all existing     * listeners redirect to it.     */    private Handler handler;    /**     * The time factor to treate the series of typed alphanumeric key     * as prefix for first letter navigation.     */    private long timeFactor = 1000L;    /**     * This is tricky, this variables is needed for DefaultKeySelectionManager     * to take into account time factor.     */    private long lastTime = 0L;    private long time = 0L;		    /**     * The default key selection manager     */    JComboBox.KeySelectionManager keySelectionManager;    // Flag for recalculating the minimum preferred size.    protected boolean isMinimumSizeDirty = true;    // Cached minimum preferred size.    protected Dimension cachedMinimumSize = new Dimension( 0, 0 );    // Flag for calculating the display size    private boolean isDisplaySizeDirty = true;        // Cached the size that the display needs to render the largest item    private Dimension cachedDisplaySize = new Dimension( 0, 0 );    // Key used for lookup of the DefaultListCellRenderer in the AppContext.    private static final Object COMBO_UI_LIST_CELL_RENDERER_KEY =                        new StringBuffer("DefaultListCellRendererKey");    static final StringBuffer HIDE_POPUP_KEY                  = new StringBuffer("HidePopupKey");    /**     * Whether or not all cells have the same baseline.     */    private boolean sameBaseline;        /**     * Indicates whether or not the combo box button should be square.     * If square, then the width and height are equal, and are both set to     * the height of the combo (minus appropriate insets).     */    private boolean squareButton = true;        /**     * Optional: if specified, these insets act as padding around the cell     * renderer when laying out and painting the "selected" item in the      * combo box. BasicComboBoxUI uses a single combo box renderer for rendering     * both the main combo box item and also all the items in the dropdown     * for the combo box. padding allows you to specify addition insets in     * addition to those specified by the cell renderer.     */    private Insets padding;    // Used for calculating the default size.    private static ListCellRenderer getDefaultListCellRenderer() {        ListCellRenderer renderer = (ListCellRenderer)AppContext.                         getAppContext().get(COMBO_UI_LIST_CELL_RENDERER_KEY);        if (renderer == null) {            renderer = new DefaultListCellRenderer();            AppContext.getAppContext().put(COMBO_UI_LIST_CELL_RENDERER_KEY,                                           new DefaultListCellRenderer());        }        return renderer;    }    /**     * Populates ComboBox's actions.     */    static void loadActionMap(LazyActionMap map) {	map.put(new Actions(Actions.HIDE));	map.put(new Actions(Actions.PAGE_DOWN));	map.put(new Actions(Actions.PAGE_UP));	map.put(new Actions(Actions.HOME));	map.put(new Actions(Actions.END));	map.put(new Actions(Actions.DOWN));	map.put(new Actions(Actions.DOWN_2));	map.put(new Actions(Actions.TOGGLE));	map.put(new Actions(Actions.TOGGLE_2));	map.put(new Actions(Actions.UP));	map.put(new Actions(Actions.UP_2));	map.put(new Actions(Actions.ENTER));    }    //========================    // begin UI Initialization    //    public static ComponentUI createUI(JComponent c) {        return new BasicComboBoxUI();    }    @Override    public void installUI( JComponent c ) {        isMinimumSizeDirty = true;        comboBox = (JComboBox)c;        installDefaults();        popup = createPopup();        listBox = popup.getList();	// Is this combo box a cell editor?        Boolean inTable = (Boolean)c.getClientProperty(IS_TABLE_CELL_EDITOR );	if (inTable != null) {	    isTableCellEditor = inTable.equals(Boolean.TRUE) ? true : false;	}        if ( comboBox.getRenderer() == null || comboBox.getRenderer() instanceof UIResource ) {            comboBox.setRenderer( createRenderer() );        }        if ( comboBox.getEditor() == null || comboBox.getEditor() instanceof UIResource ) {            comboBox.setEditor( createEditor() );        }        installListeners();        installComponents();        comboBox.setLayout( createLayoutManager() );        comboBox.setRequestFocusEnabled( true );	installKeyboardActions();        comboBox.putClientProperty("doNotCancelPopup", HIDE_POPUP_KEY);        if (keySelectionManager == null || keySelectionManager instanceof UIResource) {            keySelectionManager = new DefaultKeySelectionManager();	}	comboBox.setKeySelectionManager(keySelectionManager);    }    @Override    public void uninstallUI( JComponent c ) {        setPopupVisible( comboBox, false);        popup.uninstallingUI();        uninstallKeyboardActions();        comboBox.setLayout( null );        uninstallComponents();        uninstallListeners();        uninstallDefaults();        if ( comboBox.getRenderer() == null || comboBox.getRenderer() instanceof UIResource ) {            comboBox.setRenderer( null );        }        ComboBoxEditor comboBoxEditor = comboBox.getEditor();         if (comboBoxEditor instanceof UIResource ) {             if (comboBoxEditor.getEditorComponent().hasFocus()) {                 // Leave focus in JComboBox.                comboBox.requestFocusInWindow();            }            comboBox.setEditor( null );        }        if (keySelectionManager instanceof UIResource) {	    comboBox.setKeySelectionManager(null);	}        handler = null;        keyListener = null;        focusListener = null;        listDataListener = null;        propertyChangeListener = null;        popup = null;        listBox = null;        comboBox = null;    }    /**     * Installs the default colors, default font, default renderer, and default     * editor into the JComboBox.     */    protected void installDefaults() {        LookAndFeel.installColorsAndFont( comboBox,                                          "ComboBox.background",                                          "ComboBox.foreground",                                          "ComboBox.font" );        LookAndFeel.installBorder( comboBox, "ComboBox.border" );        LookAndFeel.installProperty( comboBox, "opaque", Boolean.TRUE);        Long l = (Long)UIManager.get("ComboBox.timeFactor");        timeFactor = l == null ? 1000L : l.longValue();                //NOTE: this needs to default to true if not specified        Boolean b = (Boolean)UIManager.get("ComboBox.squareButton");        squareButton = b == null ? true : b;                padding = UIManager.getInsets("ComboBox.padding");    }    /**     * Create and install the listeners for the combo box and its model.     * This method is called when the UI is installed.     */    protected void installListeners() {	if ( (itemListener = createItemListener()) != null) {	    comboBox.addItemListener( itemListener );	}        if ( (propertyChangeListener = createPropertyChangeListener()) != null ) {            comboBox.addPropertyChangeListener( propertyChangeListener );        }        if ( (keyListener = createKeyListener()) != null ) {            comboBox.addKeyListener( keyListener );        }        if ( (focusListener = createFocusListener()) != null ) {            comboBox.addFocusListener( focusListener );        }	if ((popupMouseListener = popup.getMouseListener()) != null) {	    comboBox.addMouseListener( popupMouseListener );	}	if ((popupMouseMotionListener = popup.getMouseMotionListener()) != null) {	    comboBox.addMouseMotionListener( popupMouseMotionListener );	}	if ((popupKeyListener = popup.getKeyListener()) != null) {	    comboBox.addKeyListener(popupKeyListener);	}        if ( comboBox.getModel() != null ) {            if ( (listDataListener = createListDataListener()) != null ) {                comboBox.getModel().addListDataListener( listDataListener );            }        }    }    /**     * Uninstalls the default colors, default font, default renderer, and default     * editor into the JComboBox.     */    protected void uninstallDefaults() {        LookAndFeel.installColorsAndFont( comboBox,                                          "ComboBox.background",                                          "ComboBox.foreground",                                          "ComboBox.font" );        LookAndFeel.uninstallBorder( comboBox );    }    /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久精品中文字幕麻豆发布| 91麻豆精品在线观看| 亚洲视频一区二区在线| 8x福利精品第一导航| www.综合网.com| 看电视剧不卡顿的网站| 依依成人综合视频| 国产女人aaa级久久久级| 91精品欧美一区二区三区综合在| a美女胸又www黄视频久久| 美国毛片一区二区| 亚洲午夜电影在线观看| 中文字幕免费一区| 久久只精品国产| 欧美日韩在线播| 91蜜桃婷婷狠狠久久综合9色| 国产一区二三区好的| 日本午夜一区二区| 性久久久久久久久久久久| 亚洲欧美激情插| 国产精品无码永久免费888| 欧美大白屁股肥臀xxxxxx| 欧美人牲a欧美精品| 91精品办公室少妇高潮对白| 成人一区二区在线观看| 韩国在线一区二区| 久久精品国内一区二区三区| 肉肉av福利一精品导航| 亚洲成av人片在线| 亚洲欧洲成人精品av97| 亚洲国产毛片aaaaa无费看 | 日韩美女啊v在线免费观看| 久久久久免费观看| 久久久亚洲综合| 欧美精品一区二区三| 日韩免费高清电影| 欧美一个色资源| 欧美一二区视频| 日韩手机在线导航| 日韩欧美一区中文| 精品日韩一区二区| 欧美成人伊人久久综合网| 精品日韩欧美在线| 2014亚洲片线观看视频免费| 精品国产不卡一区二区三区| 日韩精品一区二区三区蜜臀| 久久综合色综合88| 2欧美一区二区三区在线观看视频| 日韩午夜中文字幕| 欧美大片在线观看一区二区| 久久久蜜臀国产一区二区| 久久久国产一区二区三区四区小说 | av影院午夜一区| 成人午夜视频网站| 一本大道久久精品懂色aⅴ| 99精品欧美一区| 91啪亚洲精品| 欧美日韩黄色一区二区| 欧美日韩高清一区二区三区| 欧美精品777| 久久亚洲综合av| 中文成人av在线| 一区二区三区小说| 日本 国产 欧美色综合| 国产剧情一区二区| 色综合中文字幕国产| 欧美顶级少妇做爰| 国产午夜亚洲精品不卡| ㊣最新国产の精品bt伙计久久| 亚洲综合一区在线| 奇米888四色在线精品| 国产精品一区二区三区网站| www.日韩大片| 欧美精品视频www在线观看| 欧美tk丨vk视频| 日韩伦理av电影| 麻豆久久久久久| 成人黄色大片在线观看| 大陆成人av片| 一区二区三区四区亚洲| 日本在线不卡一区| 国产成人免费视频精品含羞草妖精 | 色一区在线观看| 欧美日韩国产综合久久| 日韩欧美中文字幕制服| **性色生活片久久毛片| 另类中文字幕网| 成人高清免费观看| 欧美一激情一区二区三区| 中文字幕日韩欧美一区二区三区| 日本午夜一区二区| 91麻豆产精品久久久久久 | 欧美成人国产一区二区| 亚洲欧洲日产国码二区| 另类小说综合欧美亚洲| 91视频观看视频| 久久综合久久鬼色| 天天综合色天天| 99在线视频精品| 欧美精品一区二区精品网| 亚洲精品国产无套在线观| 国产不卡视频一区二区三区| 欧美精品视频www在线观看| 日韩伦理免费电影| 国产精品12区| 日韩精品最新网址| 亚洲图片有声小说| www.久久久久久久久| 精品国产区一区| 性做久久久久久免费观看欧美| 99久久久国产精品免费蜜臀| 久久综合色8888| 美女性感视频久久| 欧美日韩一区二区三区高清| 中文字幕色av一区二区三区| 国产精品1区2区| 精品卡一卡二卡三卡四在线| 日韩精品一级二级 | 亚洲手机成人高清视频| 国产91高潮流白浆在线麻豆| 日韩亚洲欧美综合| 天堂蜜桃一区二区三区| 色欧美乱欧美15图片| 亚洲欧洲性图库| 99精品视频一区| 亚洲国产高清在线| 国产成人自拍网| 久久久精品国产99久久精品芒果 | 蜜臀久久99精品久久久久久9| 欧洲精品一区二区三区在线观看| 日韩电影在线免费观看| 欧美三级视频在线观看| 亚洲综合在线视频| 一本大道久久精品懂色aⅴ| ...中文天堂在线一区| 不卡的电影网站| 国产精品免费视频网站| av爱爱亚洲一区| 综合久久久久综合| 色婷婷狠狠综合| 亚洲黄色av一区| 欧美午夜精品理论片a级按摩| 亚洲自拍偷拍网站| 欧美日韩电影在线| 日韩av一区二区三区四区| 日韩欧美国产电影| 久久精品国产精品亚洲精品| 欧美videossexotv100| 国产精品一区二区三区乱码| 国产精品网站导航| 91小视频免费观看| 亚洲福利视频三区| 日韩欧美色综合| 国产一区二区导航在线播放| 国产午夜精品理论片a级大结局| 国产馆精品极品| 亚洲品质自拍视频| 欧美乱熟臀69xxxxxx| 精品一区二区三区在线播放视频 | 夜夜亚洲天天久久| 91.com在线观看| 国产福利一区在线| 亚洲视频中文字幕| 91精品在线一区二区| 国产综合色在线| 亚洲欧美成人一区二区三区| 欧美精品在线一区二区| 国产精品综合在线视频| 亚洲四区在线观看| 日韩一区二区精品葵司在线| 国产精品91xxx| 亚洲一区二区影院| 精品成人免费观看| 色综合天天综合色综合av| 婷婷开心久久网| 欧美一区二区三区四区久久| 不卡欧美aaaaa| 亚洲美女淫视频| 日韩免费电影一区| 不卡的av电影在线观看| 五月天亚洲精品| 久久婷婷综合激情| 欧美伊人久久大香线蕉综合69| 麻豆专区一区二区三区四区五区| 国产精品美女久久久久aⅴ | 欧美久久久一区| 亚洲激情自拍偷拍| 成人av在线一区二区三区| 亚洲图片欧美色图| 欧美精品一区二区三区高清aⅴ| 99国产精品久| 久久97超碰色| 亚洲成av人影院在线观看网| 中文字幕免费不卡在线| 日韩亚洲欧美成人一区| 91麻豆蜜桃一区二区三区| 国产精品一区二区男女羞羞无遮挡 | 欧美大片顶级少妇| 欧美视频一二三区| 99国产精品久|