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

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

?? basiccomboboxui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
     * be added to the combo box.     *      * @return an instance of a <code>PropertyChangeListener</code> or null     */    protected PropertyChangeListener createPropertyChangeListener() {        return getHandler();    }    /**     * Creates a layout manager for managing the components which make up the      * combo box.     *      * @return an instance of a layout manager     */    protected LayoutManager createLayoutManager() {        return getHandler();    }    /**     * Creates the default renderer that will be used in a non-editiable combo      * box. A default renderer will used only if a renderer has not been      * explicitly set with <code>setRenderer</code>.     *      * @return a <code>ListCellRender</code> used for the combo box     * @see javax.swing.JComboBox#setRenderer     */    protected ListCellRenderer createRenderer() {        return new BasicComboBoxRenderer.UIResource();    }    /**     * Creates the default editor that will be used in editable combo boxes.       * A default editor will be used only if an editor has not been      * explicitly set with <code>setEditor</code>.     *     * @return a <code>ComboBoxEditor</code> used for the combo box     * @see javax.swing.JComboBox#setEditor     */    protected ComboBoxEditor createEditor() {        return new BasicComboBoxEditor.UIResource();    }    /**     * Returns the shared listener.     */    private Handler getHandler() {        if (handler == null) {            handler = new Handler();        }        return handler;    }    //    // end UI Initialization    //======================    //======================    // begin Inner classes    //    /**     * This listener checks to see if the key event isn't a navigation key.  If     * it finds a key event that wasn't a navigation key it dispatches it to     * JComboBox.selectWithKeyChar() so that it can do type-ahead.     *     * This public inner class should be treated as protected.      * Instantiate it only within subclasses of      * <code>BasicComboBoxUI</code>.     */    public class KeyHandler extends KeyAdapter {        public void keyPressed( KeyEvent e ) {            getHandler().keyPressed(e);        }    }    /**     * This listener hides the popup when the focus is lost.  It also repaints     * when focus is gained or lost.     *     * This public inner class should be treated as protected.      * Instantiate it only within subclasses of      * <code>BasicComboBoxUI</code>.     */    public class FocusHandler implements FocusListener {        public void focusGained( FocusEvent e ) {            getHandler().focusGained(e);        }        public void focusLost( FocusEvent e ) {            getHandler().focusLost(e);        }    }    /**     * This listener watches for changes in the      * <code>ComboBoxModel</code>.     * <p>     * This public inner class should be treated as protected.      * Instantiate it only within subclasses of      * <code>BasicComboBoxUI</code>.     *     * @see #createListDataListener     */    public class ListDataHandler implements ListDataListener {        public void contentsChanged( ListDataEvent e ) {            getHandler().contentsChanged(e);	}        public void intervalAdded( ListDataEvent e ) {            getHandler().intervalAdded(e);        }        public void intervalRemoved( ListDataEvent e ) {            getHandler().intervalRemoved(e);        }    }    /**     * This listener watches for changes to the selection in the      * combo box.     * <p>     * This public inner class should be treated as protected.      * Instantiate it only within subclasses of      * <code>BasicComboBoxUI</code>.     *     * @see #createItemListener     */    public class ItemHandler implements ItemListener {	// This class used to implement behavior which is now redundant.        public void itemStateChanged(ItemEvent e) {}    }    /**     * This listener watches for bound properties that have changed in the     * combo box.      * <p>     * Subclasses which wish to listen to combo box property changes should     * call the superclass methods to ensure that the combo box ui correctly      * handles property changes.     * <p>     * This public inner class should be treated as protected.      * Instantiate it only within subclasses of      * <code>BasicComboBoxUI</code>.     *      * @see #createPropertyChangeListener     */    public class PropertyChangeHandler implements PropertyChangeListener {        public void propertyChange(PropertyChangeEvent e) {            getHandler().propertyChange(e);        }    }    // Syncronizes the ToolTip text for the components within the combo box to be the     // same value as the combo box ToolTip text.    private void updateToolTipTextForChildren() {        Component[] children = comboBox.getComponents();        for ( int i = 0; i < children.length; ++i ) {            if ( children[i] instanceof JComponent ) {                ((JComponent)children[i]).setToolTipText( comboBox.getToolTipText() );            }        }    }    /**     * This layout manager handles the 'standard' layout of combo boxes.  It puts     * the arrow button to the right and the editor to the left.  If there is no     * editor it still keeps the arrow button to the right.     *     * This public inner class should be treated as protected.      * Instantiate it only within subclasses of      * <code>BasicComboBoxUI</code>.     */    public class ComboBoxLayoutManager implements LayoutManager {        public void addLayoutComponent(String name, Component comp) {}        public void removeLayoutComponent(Component comp) {}        public Dimension preferredLayoutSize(Container parent) {            return getHandler().preferredLayoutSize(parent);        }        public Dimension minimumLayoutSize(Container parent) {            return getHandler().minimumLayoutSize(parent);        }        public void layoutContainer(Container parent) {            getHandler().layoutContainer(parent);        }    }    //    // end Inner classes    //====================    //===============================    // begin Sub-Component Management    //    /**     * Creates and initializes the components which make up the     * aggregate combo box. This method is called as part of the UI     * installation process.     */    protected void installComponents() {        arrowButton = createArrowButton();        comboBox.add( arrowButton );        if (arrowButton != null)  {            configureArrowButton();        }        if ( comboBox.isEditable() ) {            addEditor();        }        comboBox.add( currentValuePane );    }    /**     * The aggregate components which compise the combo box are      * unregistered and uninitialized. This method is called as part of the     * UI uninstallation process.     */    protected void uninstallComponents() {        if ( arrowButton != null ) {            unconfigureArrowButton();        }        if ( editor != null ) {            unconfigureEditor();        }        comboBox.removeAll(); // Just to be safe.        arrowButton = null;    }    /**     * This public method is implementation specific and should be private.     * do not call or override. To implement a specific editor create a     * custom <code>ComboBoxEditor</code>     *     * @see #createEditor     * @see javax.swing.JComboBox#setEditor     * @see javax.swing.ComboBoxEditor     */    public void addEditor() {        removeEditor();        editor = comboBox.getEditor().getEditorComponent();        if ( editor != null ) {            configureEditor();             comboBox.add(editor);            if(comboBox.isFocusOwner()) {                // Switch focus to the editor component                editor.requestFocusInWindow();            }        }    }    /**     * This public method is implementation specific and should be private.     * do not call or override.      *     * @see #addEditor     */    public void removeEditor() {        if ( editor != null ) {            unconfigureEditor();            comboBox.remove( editor );	    editor = null;        }    }    /**     * This protected method is implementation specific and should be private.     * do not call or override.     *      * @see #addEditor     */    protected void configureEditor() {        // Should be in the same state as the combobox        editor.setEnabled(comboBox.isEnabled());        editor.setFont( comboBox.getFont() );        if (focusListener != null) {            editor.addFocusListener(focusListener);        }	editor.addFocusListener( getHandler() );	comboBox.getEditor().addActionListener(getHandler());        if(editor instanceof JComponent) {            ((JComponent)editor).putClientProperty("doNotCancelPopup",                                                   HIDE_POPUP_KEY);            ((JComponent)editor).setInheritsPopupMenu(true);        }        comboBox.configureEditor(comboBox.getEditor(),comboBox.getSelectedItem());    }    /**     * This protected method is implementation specific and should be private.     * Do not call or override.     *      * @see #addEditor     */    protected void unconfigureEditor() {        if (focusListener != null) {            editor.removeFocusListener(focusListener);        }        editor.removeFocusListener(getHandler());        comboBox.getEditor().removeActionListener(getHandler());    }    /**     * This public method is implementation specific and should be private. Do     * not call or override.     *     * @see #createArrowButton     */    public void configureArrowButton() {        if ( arrowButton != null ) {            arrowButton.setEnabled( comboBox.isEnabled() );            arrowButton.setRequestFocusEnabled(false);	    arrowButton.addMouseListener( popup.getMouseListener() );	    arrowButton.addMouseMotionListener( popup.getMouseMotionListener() );            arrowButton.resetKeyboardActions();            arrowButton.putClientProperty("doNotCancelPopup", HIDE_POPUP_KEY);            arrowButton.setInheritsPopupMenu(true);        }    }    /**     * This public method is implementation specific and should be private. Do     * not call or override.     *     * @see #createArrowButton     */    public void unconfigureArrowButton() {        if ( arrowButton != null ) {	    arrowButton.removeMouseListener( popup.getMouseListener() );	    arrowButton.removeMouseMotionListener( popup.getMouseMotionListener() );        }    }    /**     * Creates an button which will be used as the control to show or hide     * the popup portion of the combo box.     *     * @return a button which represents the popup control     */    protected JButton createArrowButton() {        JButton button = new BasicArrowButton(BasicArrowButton.SOUTH,				    UIManager.getColor("ComboBox.buttonBackground"),				    UIManager.getColor("ComboBox.buttonShadow"),				    UIManager.getColor("ComboBox.buttonDarkShadow"),				    UIManager.getColor("ComboBox.buttonHighlight"));        button.setName("ComboBox.arrowButton");        return button;    }    //    // end Sub-Component Management    //===============================    //================================    // begin ComboBoxUI Implementation    //    /**     * Tells if the popup is visible or not.     */    public boolean isPopupVisible( JComboBox c ) {        return popup.isVisible();    }    /**     * Hides the popup.     */    public void setPopupVisible( JComboBox c, boolean v ) {        if ( v ) {            popup.show();        } else {            popup.hide();        }    }    /**     * Determines if the JComboBox is focus traversable.  If the JComboBox is editable     * this returns false, otherwise it returns true.     */    public boolean isFocusTraversable( JComboBox c ) {        return !comboBox.isEditable();    }    //    // end ComboBoxUI Implementation    //==============================    //=================================    // begin ComponentUI Implementation    public void paint( Graphics g, JComponent c ) {        hasFocus = comboBox.hasFocus();        if ( !comboBox.isEditable() ) {            Rectangle r = rectangleForCurrentValue();            paintCurrentValueBackground(g,r,hasFocus);            paintCurrentValue(g,r,hasFocus);        }    }    public Dimension getPreferredSize( JComponent c ) {	return getMinimumSize(c);    }    /**      * The minumum size is the size of the display area plus insets plus the button.     */    public Dimension getMinimumSize( JComponent c ) {        if ( !isMinimumSizeDirty ) {            return new Dimension(cachedMinimumSize);        }        Dimension size = getDisplaySize();        Insets insets = getInsets();        size.height += insets.top + insets.bottom;        int buttonSize = size.height - (insets.top + insets.bottom);        size.width +=  insets.left + insets.right + buttonSize;        cachedMinimumSize.setSize( size.width, size.height );         isMinimumSizeDirty = false;        return new Dimension(size);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色噜噜偷拍精品综合在线| 欧美色图12p| 亚洲一区二区三区不卡国产欧美| 日韩视频免费观看高清完整版在线观看| 国产99精品在线观看| 亚洲一区二区三区四区五区中文| 久久精品综合网| 欧美日韩成人一区二区| 粉嫩绯色av一区二区在线观看| 五月天婷婷综合| 亚洲欧美在线高清| 欧美国产日韩精品免费观看| 69成人精品免费视频| 91在线丨porny丨国产| 国产一区二区三区在线观看免费视频| 亚洲午夜激情网站| **性色生活片久久毛片| 国产日韩精品一区二区三区| 日韩免费福利电影在线观看| 欧美精品在线一区二区三区| 972aa.com艺术欧美| 大陆成人av片| 国产精品主播直播| 久久aⅴ国产欧美74aaa| 日本aⅴ亚洲精品中文乱码| 一区二区三区蜜桃| 亚洲精品日韩综合观看成人91| 中文一区一区三区高中清不卡| 2021久久国产精品不只是精品| 9191成人精品久久| 欧美日韩国产天堂| 欧美亚洲另类激情小说| 色av一区二区| 色一情一乱一乱一91av| 91色.com| 欧美专区在线观看一区| 欧美在线影院一区二区| 在线欧美日韩精品| 欧美亚洲高清一区| 不卡的电影网站| 成人午夜免费电影| av在线不卡观看免费观看| 成人高清视频免费观看| www.欧美.com| 成人激情小说乱人伦| 成人高清在线视频| 91麻豆6部合集magnet| 色吧成人激情小说| 欧美精品丝袜中出| 欧美一区二区精品| 精品理论电影在线| 国产三级三级三级精品8ⅰ区| 久久综合色一综合色88| 久久久久97国产精华液好用吗| 国产欧美一区二区在线观看| 国产精品久久影院| 亚洲精品美腿丝袜| 天天综合日日夜夜精品| 免费国产亚洲视频| 国产91在线观看| 91小视频免费看| 717成人午夜免费福利电影| 欧美videofree性高清杂交| 久久精品一区二区三区四区| 国产精品毛片无遮挡高清| 亚洲免费观看在线视频| 亚洲sss视频在线视频| 麻豆精品视频在线观看视频| 国产一区二区在线看| 99免费精品在线观看| 色综合久久久网| 欧美一区二区大片| 久久久99免费| 一区二区三区在线视频播放| 日本欧美肥老太交大片| 国产成人精品免费| 欧美视频在线不卡| 精品黑人一区二区三区久久| 中文字幕电影一区| 亚洲最大成人综合| 国产综合久久久久影院| 97精品国产露脸对白| 欧美一区二区三区性视频| 国产欧美一区二区三区网站| 五月婷婷色综合| 成人丝袜18视频在线观看| 欧美日本一道本| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲国产欧美在线人成| 国产成人在线免费| 欧美精品久久99久久在免费线| 国产视频一区不卡| 亚洲图片欧美色图| 高清不卡一区二区在线| 欧美嫩在线观看| 日韩一区在线播放| 久久成人免费电影| 欧美视频一区在线观看| 久久久国产午夜精品| 日韩精品欧美成人高清一区二区| 成人免费高清视频| 日韩精品一区二区三区蜜臀| 亚洲尤物在线视频观看| 成人免费va视频| 精品国产区一区| 亚洲大尺度视频在线观看| 成人黄色在线视频| 精品日韩99亚洲| 五月激情丁香一区二区三区| 91免费视频大全| 国产亚洲va综合人人澡精品 | 成人欧美一区二区三区小说| 麻豆精品一区二区av白丝在线| 欧美在线观看你懂的| 国产精品嫩草影院av蜜臀| 捆绑变态av一区二区三区| 欧美做爰猛烈大尺度电影无法无天| 中文字幕成人av| 国内精品久久久久影院一蜜桃| 欧美精品一二三四| 一区二区三区资源| 99热这里都是精品| 中文字幕一区二区三区四区不卡 | 亚洲精品视频免费看| 成人av在线影院| 久久综合九色综合97_久久久| 日本成人中文字幕| 51精品视频一区二区三区| 午夜亚洲国产au精品一区二区| 91年精品国产| 亚洲日本韩国一区| 国产精品996| 久久久久国产成人精品亚洲午夜| 久久9热精品视频| 精品精品欲导航| 久久激情五月激情| 精品久久久久久久人人人人传媒 | 懂色av一区二区在线播放| 日韩精品一区二区在线| 久久99蜜桃精品| 日韩女优视频免费观看| 九色|91porny| 久久这里只有精品6| 国产剧情一区二区三区| 久久久久久99精品| 成人免费高清在线观看| 亚洲欧美另类小说| 欧美亚日韩国产aⅴ精品中极品| 亚洲精品大片www| 欧美日韩国产成人在线91| 亚洲一区二区三区四区的| 欧美电影一区二区三区| 久久99九九99精品| 国产色爱av资源综合区| 99国产精品久| 亚洲国产视频在线| 日韩一卡二卡三卡四卡| 国产成人在线观看免费网站| 中文字幕亚洲一区二区va在线| 色悠悠亚洲一区二区| 日日夜夜免费精品视频| 日韩免费福利电影在线观看| 国产成人综合亚洲网站| 亚洲精品中文在线观看| 6080国产精品一区二区| 国产在线精品一区二区三区不卡| 国产色一区二区| 在线观看成人免费视频| 日韩av网站在线观看| 久久久久久久精| 色系网站成人免费| 日韩国产在线一| 久久精品人人做人人综合| 97se狠狠狠综合亚洲狠狠| 日韩精品亚洲一区| 中文字幕精品三区| 欧美人狂配大交3d怪物一区| 国产一区久久久| 一区二区三区欧美亚洲| 日韩精品专区在线影院观看| 99国产精品久久久久| 免费观看30秒视频久久| 最新国产成人在线观看| 91精品国产综合久久久蜜臀粉嫩 | 一区二区三区在线不卡| 日韩美女视频在线| 91在线免费视频观看| 日本大胆欧美人术艺术动态| 国产精品成人免费在线| 欧美一区二区网站| 99久久精品国产网站| 免费人成在线不卡| 亚洲欧美日韩一区二区| 26uuu精品一区二区三区四区在线| 色综合天天狠狠| 国产一区二区三区在线看麻豆| 亚洲国产欧美日韩另类综合| 欧美国产一区二区| 日韩精品在线网站| 欧美日韩国产大片|