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

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

?? metalcomboboxui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
字號:
/* * @(#)MetalComboBoxUI.java	1.49 04/05/18 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.metal;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.plaf.*;import javax.swing.border.*;import javax.swing.plaf.basic.*;import java.io.Serializable;import java.beans.*;/** * Metal UI for JComboBox * <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}. * * @see MetalComboBoxEditor * @see MetalComboBoxButton * @version 1.49 05/18/04 * @author Tom Santos */public class MetalComboBoxUI extends BasicComboBoxUI {    public static ComponentUI createUI(JComponent c) {        return new MetalComboBoxUI();    }    public void paint(Graphics g, JComponent c) {        if (MetalLookAndFeel.usingOcean()) {            super.paint(g, c);        }    }    /**     * If necessary paints the currently selected item.     *     * @param g Graphics to paint to     * @param bounds Region to paint current value to     * @param hasFocus whether or not the JComboBox has focus     * @throws NullPointerException if any of the arguments are null.     * @since 1.5     */    public void paintCurrentValue(Graphics g, Rectangle bounds,                                  boolean hasFocus) {        // This is really only called if we're using ocean.        if (MetalLookAndFeel.usingOcean()) {            bounds.x += 2;            bounds.y += 2;            bounds.width -= 3;            bounds.height -= 4;            super.paintCurrentValue(g, bounds, hasFocus);        }        else if (g == null || bounds == null) {            throw new NullPointerException(                "Must supply a non-null Graphics and Rectangle");        }    }    /**     * If necessary paints the background of the currently selected item.     *     * @param g Graphics to paint to     * @param bounds Region to paint background to     * @param hasFocus whether or not the JComboBox has focus     * @throws NullPointerException if any of the arguments are null.     * @since 1.5     */    public void paintCurrentValueBackground(Graphics g, Rectangle bounds,                                            boolean hasFocus) {        // This is really only called if we're using ocean.        if (MetalLookAndFeel.usingOcean()) {            g.setColor(MetalLookAndFeel.getControlDarkShadow());            g.drawRect(bounds.x, bounds.y, bounds.width, bounds.height - 1);            g.setColor(MetalLookAndFeel.getControlShadow());            g.drawRect(bounds.x + 1, bounds.y + 1, bounds.width - 2,                       bounds.height - 3);        }        else if (g == null || bounds == null) {            throw new NullPointerException(                "Must supply a non-null Graphics and Rectangle");        }    }    protected ComboBoxEditor createEditor() {        return new MetalComboBoxEditor.UIResource();    }    protected ComboPopup createPopup() {        return super.createPopup();    }    protected JButton createArrowButton() {        boolean iconOnly = (comboBox.isEditable() ||                            MetalLookAndFeel.usingOcean());        JButton button = new MetalComboBoxButton( comboBox,                                                  new MetalComboBoxIcon(),                                                  iconOnly,                                                  currentValuePane,                                                  listBox );        button.setMargin( new Insets( 0, 1, 1, 3 ) );        if (MetalLookAndFeel.usingOcean()) {            // Disabled rollover effect.            button.putClientProperty(MetalBorders.NO_BUTTON_ROLLOVER,                                     Boolean.TRUE);        }        updateButtonForOcean(button);        return button;    }    /**     * Resets the necessary state on the ComboBoxButton for ocean.     */    private void updateButtonForOcean(JButton button) {        if (MetalLookAndFeel.usingOcean()) {            // Ocean renders the focus in a different way, this            // would be redundant.            button.setFocusPainted(comboBox.isEditable());        }    }    public PropertyChangeListener createPropertyChangeListener() {        return new MetalPropertyChangeListener();    }    /**     * This inner class is marked &quot;public&quot; due to a compiler bug.     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <FooUI>.     */              public class MetalPropertyChangeListener extends BasicComboBoxUI.PropertyChangeHandler {        public void propertyChange(PropertyChangeEvent e) {            super.propertyChange( e );            String propertyName = e.getPropertyName();            if ( propertyName == "editable" ) {		MetalComboBoxButton button = (MetalComboBoxButton)arrowButton;		button.setIconOnly( comboBox.isEditable() ||                                    MetalLookAndFeel.usingOcean() );		comboBox.repaint();                updateButtonForOcean(button);            } else if ( propertyName == "background" ) {                Color color = (Color)e.getNewValue();                arrowButton.setBackground(color);                listBox.setBackground(color);                            } else if ( propertyName == "foreground" ) {                Color color = (Color)e.getNewValue();                arrowButton.setForeground(color);                listBox.setForeground(color);            }        }    }    /**     * As of Java 2 platform v1.4 this method is no longer used. Do not call or     * override. All the functionality of this method is in the     * MetalPropertyChangeListener.     *     * @deprecated As of Java 2 platform v1.4.     */    @Deprecated    protected void editablePropertyChanged( PropertyChangeEvent e ) { }    protected LayoutManager createLayoutManager() {        return new MetalComboBoxLayoutManager();    }    /**     * This inner class is marked &quot;public&quot; due to a compiler bug.     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <FooUI>.     */              public class MetalComboBoxLayoutManager extends BasicComboBoxUI.ComboBoxLayoutManager {        public void layoutContainer( Container parent ) {            layoutComboBox( parent, this );        }        public void superLayout( Container parent ) {            super.layoutContainer( parent );        }    }    // This is here because of a bug in the compiler.      // When a protected-inner-class-savvy compiler comes out we    // should move this into MetalComboBoxLayoutManager.    public void layoutComboBox( Container parent, MetalComboBoxLayoutManager manager ) {        if (comboBox.isEditable() && !MetalLookAndFeel.usingOcean()) {            manager.superLayout( parent );            return;        }        if (arrowButton != null) {            if (MetalLookAndFeel.usingOcean() &&                                (arrowButton instanceof MetalComboBoxButton)) {                Icon icon = ((MetalComboBoxButton)arrowButton).getComboIcon();                Insets buttonInsets = arrowButton.getInsets();                Insets insets = comboBox.getInsets();                int buttonWidth = icon.getIconWidth() + buttonInsets.left +                                  buttonInsets.right;		arrowButton.setBounds(MetalUtils.isLeftToRight(comboBox)				? (comboBox.getWidth() - insets.right - buttonWidth)				: insets.left,                            insets.top, buttonWidth,                            comboBox.getHeight() - insets.top - insets.bottom);            }            else {                Insets insets = comboBox.getInsets();                int width = comboBox.getWidth();                int height = comboBox.getHeight();                arrowButton.setBounds( insets.left, insets.top,                                       width - (insets.left + insets.right),                                       height - (insets.top + insets.bottom) );            }        }        if (editor != null && MetalLookAndFeel.usingOcean()) {            Rectangle cvb = rectangleForCurrentValue();            editor.setBounds(cvb);        }    }    /**     * As of Java 2 platform v1.4 this method is no     * longer used.     *     * @deprecated As of Java 2 platform v1.4.     */    @Deprecated    protected void removeListeners() {        if ( propertyChangeListener != null ) {            comboBox.removePropertyChangeListener( propertyChangeListener );        }    }    // These two methods were overloaded and made public. This was probably a    // mistake in the implementation. The functionality that they used to     // provide is no longer necessary and should be removed. However,     // removing them will create an uncompatible API change.    public void configureEditor() {	super.configureEditor();    }    public void unconfigureEditor() {	super.unconfigureEditor();    }    public Dimension getMinimumSize( JComponent c ) {        if ( !isMinimumSizeDirty ) {            return new Dimension( cachedMinimumSize );        }        Dimension size = null;        if ( !comboBox.isEditable() &&             arrowButton != null &&             arrowButton instanceof MetalComboBoxButton ) {            MetalComboBoxButton button = (MetalComboBoxButton)arrowButton;            Insets buttonInsets = button.getInsets();            Insets insets = comboBox.getInsets();            size = getDisplaySize();            size.width += insets.left + insets.right;            size.width += buttonInsets.left + buttonInsets.right;            size.width += buttonInsets.right + button.getComboIcon().getIconWidth();            size.height += insets.top + insets.bottom;            size.height += buttonInsets.top + buttonInsets.bottom;        }        else if ( comboBox.isEditable() &&                  arrowButton != null &&                  editor != null ) {            size = super.getMinimumSize( c );            Insets margin = arrowButton.getMargin();            size.height += margin.top + margin.bottom;            size.width += margin.left + margin.right;        }        else {            size = super.getMinimumSize( c );        }        cachedMinimumSize.setSize( size.width, size.height );         isMinimumSizeDirty = false;        return new Dimension( cachedMinimumSize );    }    /**     * This inner class is marked &quot;public&quot; due to a compiler bug.     * This class should be treated as a &quot;protected&quot; inner class.     * Instantiate it only within subclasses of <FooUI>.     *     * This class is now obsolete and doesn't do anything and     * is only included for backwards API compatibility. Do not call or      * override.     *      * @deprecated As of Java 2 platform v1.4.     */              @Deprecated    public class MetalComboPopup extends BasicComboPopup {	public MetalComboPopup( JComboBox cBox) {	    super( cBox );	}	// This method was overloaded and made public. This was probably	// mistake in the implementation. The functionality that they used to 	// provide is no longer necessary and should be removed. However, 	// removing them will create an uncompatible API change.	public void delegateFocus(MouseEvent e) {	    super.delegateFocus(e);	}    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久伊人久久99| 国产亚洲一二三区| 久久婷婷国产综合国色天香| 国产精品久久久久久久浪潮网站| 免费成人在线影院| 91在线云播放| wwww国产精品欧美| 午夜精品福利一区二区三区av| 成人一区在线看| 日韩一区二区免费视频| 亚洲免费高清视频在线| 国产麻豆午夜三级精品| 欧美一区二区久久久| 一区二区三区精品在线| voyeur盗摄精品| 26uuu色噜噜精品一区二区| 亚洲图片欧美综合| 91麻豆.com| 国产精品女主播av| 国产成人一级电影| 精品少妇一区二区三区视频免付费| 亚洲电影你懂得| 色悠久久久久综合欧美99| 国产精品视频第一区| 国产福利一区二区三区视频| 欧美电影免费观看高清完整版在| 亚洲高清不卡在线| 在线观看三级视频欧美| 国产精品白丝在线| 成人爱爱电影网址| 国产精品视频在线看| 东方aⅴ免费观看久久av| 国产日韩精品一区二区三区在线| 成人激情开心网| 欧美电影免费观看高清完整版在 | 国产在线视频一区二区| 日韩一区二区在线免费观看| 秋霞影院一区二区| 精品奇米国产一区二区三区| 久久99国产精品免费网站| 欧美变态tickling挠脚心| 蜜臀av国产精品久久久久 | 欧美性受xxxx| 亚洲网友自拍偷拍| 777亚洲妇女| 蜜桃久久久久久| 精品少妇一区二区| 懂色av一区二区三区免费观看| 亚洲国产精品成人久久综合一区 | 欧美视频中文字幕| 日韩激情一二三区| 精品久久久久久久人人人人传媒| 狠狠色丁香久久婷婷综合丁香| 国产亚洲精品7777| 99久久婷婷国产| 日韩专区一卡二卡| 欧美成人精品1314www| 国产91高潮流白浆在线麻豆| 亚洲欧洲综合另类在线| 91 com成人网| 成人性生交大片| 一区二区三区四区激情| 91精品国产综合久久福利| 黑人巨大精品欧美黑白配亚洲| 成人免费小视频| 日韩欧美激情在线| 成人免费看黄yyy456| 亚洲国产视频网站| www国产亚洲精品久久麻豆| 91麻豆自制传媒国产之光| 亚瑟在线精品视频| 国产欧美日韩中文久久| 欧美色大人视频| 国产成人精品影视| 亚洲成人免费视频| 国产欧美日韩三级| 欧美日本在线看| 丁香一区二区三区| 免费成人在线视频观看| 亚洲欧洲中文日韩久久av乱码| 精品成人佐山爱一区二区| 一本大道久久a久久精二百| 日韩电影免费在线| 亚洲欧洲av色图| 精品国产乱码久久久久久1区2区| 99久久精品国产一区二区三区 | 波多野结衣中文字幕一区二区三区| 亚洲成人在线网站| 亚洲欧洲国产日本综合| www成人在线观看| 91精品国产91热久久久做人人 | 久久女同互慰一区二区三区| 欧美午夜精品久久久久久孕妇| 福利91精品一区二区三区| 天使萌一区二区三区免费观看| 亚洲欧美国产毛片在线| 亚洲国产精品精华液ab| 欧美精品一区二区三区蜜桃视频| 欧美天天综合网| 成人免费看视频| 豆国产96在线|亚洲| 国产一区二区精品在线观看| 美洲天堂一区二卡三卡四卡视频| 亚洲综合免费观看高清完整版在线| 国产亚洲欧美激情| 精品国产乱码久久久久久久久 | 国产精品久久夜| 日本一区二区电影| 国产嫩草影院久久久久| 日韩精品中文字幕在线一区| 在线综合亚洲欧美在线视频| 欧美另类z0zxhd电影| 欧美日韩一区中文字幕| 欧洲一区在线观看| 欧美视频你懂的| 欧美剧在线免费观看网站| 精品视频1区2区| 91精品国产欧美一区二区成人| 777亚洲妇女| 欧美zozozo| 久久久国产一区二区三区四区小说| 欧美成人国产一区二区| 26uuu精品一区二区在线观看| 欧美一区二区不卡视频| 精品成人一区二区| 亚洲国产高清aⅴ视频| 亚洲丝袜精品丝袜在线| 亚洲一线二线三线视频| 亚洲成av人片在www色猫咪| 日本午夜精品视频在线观看| 国产综合色精品一区二区三区| 国产乱码精品一区二区三区五月婷 | 一级中文字幕一区二区| 一区二区在线观看免费视频播放| 亚洲一区二区三区四区五区中文| 天天影视网天天综合色在线播放| 美国十次了思思久久精品导航| 激情亚洲综合在线| 国产成人综合亚洲网站| 色综合天天综合| 91麻豆精品国产| 中文字幕电影一区| 亚洲成av人在线观看| 国产精品一区二区在线播放 | 日韩一级二级三级| 久久久精品免费观看| 一个色在线综合| 久久av资源网| 日本道精品一区二区三区 | 欧美高清视频一二三区| 26uuu另类欧美亚洲曰本| 亚洲欧美另类综合偷拍| 免费观看日韩av| 色综合久久久久| 欧美成人精品高清在线播放 | 亚洲国产电影在线观看| 午夜欧美2019年伦理| 国产大陆精品国产| 欧美视频自拍偷拍| 欧美韩国日本不卡| 日韩高清中文字幕一区| 成人丝袜高跟foot| 欧美精品色综合| 日韩理论电影院| 精品一区二区三区久久| 欧美在线视频你懂得| 久久精品视频免费| 免费在线观看一区| 在线一区二区三区四区| 国产色婷婷亚洲99精品小说| 青青草原综合久久大伊人精品优势| 99久久久无码国产精品| 亚洲精品一区二区三区蜜桃下载 | 亚洲va在线va天堂| 成人av网站在线观看免费| 欧美酷刑日本凌虐凌虐| 亚洲日本在线观看| 高清成人免费视频| 2022国产精品视频| 日韩av午夜在线观看| 在线亚洲一区二区| 国产精品沙发午睡系列990531| 狠狠色丁香婷婷综合| 91精品国产黑色紧身裤美女| 亚洲成av人**亚洲成av**| 色综合天天综合网天天看片| 国产精品国产三级国产三级人妇| 精品亚洲porn| 久久综合色8888| 久久99精品久久久久久动态图 | 日本一区二区免费在线观看视频 | 日本精品视频一区二区| 亚洲免费观看高清完整版在线| 成人精品gif动图一区| 国产亚洲福利社区一区| 韩日av一区二区| 精品国产乱码久久久久久牛牛| 韩国v欧美v亚洲v日本v| 精品成人一区二区三区四区| 国产在线精品一区二区不卡了 |