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

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

?? basictabbedpaneui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號(hào):
/* * @(#)BasicTabbedPaneUI.java	1.153 05/03/03 * * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.basic;import com.sun.java.swing.SwingUtilities2;import javax.swing.*;import javax.swing.event.*;import javax.swing.plaf.*;import javax.swing.text.View;import java.awt.*;import java.awt.event.*;import java.beans.PropertyChangeListener;import java.beans.PropertyChangeEvent;import java.util.Vector;import java.util.Hashtable;import sun.swing.DefaultLookup;import sun.swing.UIAction;/** * A Basic L&F implementation of TabbedPaneUI. * * @version 1.87 06/08/99 * @author Amy Fowler * @author Philip Milne * @author Steve Wilson * @author Tom Santos * @author Dave Moore */public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants {// Instance variables initialized at installation    protected JTabbedPane tabPane;    protected Color highlight;    protected Color lightHighlight;    protected Color shadow;    protected Color darkShadow;    protected Color focus;    private   Color selectedColor;    protected int textIconGap;    protected int tabRunOverlay;    protected Insets tabInsets;    protected Insets selectedTabPadInsets;    protected Insets tabAreaInsets;    protected Insets contentBorderInsets;    private boolean tabsOverlapBorder;    private boolean tabsOpaque = true;    private boolean contentOpaque = true;    /**     * As of Java 2 platform v1.3 this previously undocumented field is no     * longer used.     * Key bindings are now defined by the LookAndFeel, please refer to     * the key bindings specification for further details.     *     * @deprecated As of Java 2 platform v1.3.     */    @Deprecated    protected KeyStroke upKey;    /**     * As of Java 2 platform v1.3 this previously undocumented field is no     * longer used.     * Key bindings are now defined by the LookAndFeel, please refer to     * the key bindings specification for further details.     *     * @deprecated As of Java 2 platform v1.3.     */    @Deprecated    protected KeyStroke downKey;    /**     * As of Java 2 platform v1.3 this previously undocumented field is no     * longer used.     * Key bindings are now defined by the LookAndFeel, please refer to     * the key bindings specification for further details.     *     * @deprecated As of Java 2 platform v1.3.     */    @Deprecated    protected KeyStroke leftKey;    /**     * As of Java 2 platform v1.3 this previously undocumented field is no     * longer used.     * Key bindings are now defined by the LookAndFeel, please refer to     * the key bindings specification for further details.     *     * @deprecated As of Java 2 platform v1.3.     */    @Deprecated    protected KeyStroke rightKey;// Transient variables (recalculated each time TabbedPane is layed out)    protected int tabRuns[] = new int[10];    protected int runCount = 0;    protected int selectedRun = -1;    protected Rectangle rects[] = new Rectangle[0];     protected int maxTabHeight;    protected int maxTabWidth;// Listeners    protected ChangeListener tabChangeListener;    protected PropertyChangeListener propertyChangeListener;    protected MouseListener mouseListener;    protected FocusListener focusListener;// Private instance data    private Insets currentPadInsets = new Insets(0,0,0,0);    private Insets currentTabAreaInsets = new Insets(0,0,0,0);    private Component visibleComponent;    // PENDING(api): See comment for ContainerHandler    private Vector htmlViews;    private Hashtable mnemonicToIndexMap;    /**     * InputMap used for mnemonics. Only non-null if the JTabbedPane has     * mnemonics associated with it. Lazily created in initMnemonics.     */    private InputMap mnemonicInputMap;    // For use when tabLayoutPolicy = SCROLL_TAB_LAYOUT    private ScrollableTabSupport tabScroller;    /**     * A rectangle used for general layout calculations in order     * to avoid constructing many new Rectangles on the fly.     */    protected transient Rectangle calcRect = new Rectangle(0,0,0,0);    /**     * Tab that has focus.     */    private int focusIndex;    /**     * Combined listeners.     */    private Handler handler;    /**     * Index of the tab the mouse is over.     */    private int rolloverTabIndex;    /**     * This is set to true when a component is added/removed from the tab     * pane and set to false when layout happens.  If true it indicates that     * tabRuns is not valid and shouldn't be used.     */    private boolean isRunsDirty;// UI creation    public static ComponentUI createUI(JComponent c) {        return new BasicTabbedPaneUI();    }    static void loadActionMap(LazyActionMap map) {        map.put(new Actions(Actions.NEXT));        map.put(new Actions(Actions.PREVIOUS));        map.put(new Actions(Actions.RIGHT));        map.put(new Actions(Actions.LEFT));        map.put(new Actions(Actions.UP));        map.put(new Actions(Actions.DOWN));        map.put(new Actions(Actions.PAGE_UP));        map.put(new Actions(Actions.PAGE_DOWN));        map.put(new Actions(Actions.REQUEST_FOCUS));        map.put(new Actions(Actions.REQUEST_FOCUS_FOR_VISIBLE));        map.put(new Actions(Actions.SET_SELECTED));        map.put(new Actions(Actions.SELECT_FOCUSED));        map.put(new Actions(Actions.SCROLL_FORWARD));        map.put(new Actions(Actions.SCROLL_BACKWARD));    }// UI Installation/De-installation        public void installUI(JComponent c) {        this.tabPane = (JTabbedPane)c;        rolloverTabIndex = -1;        focusIndex = -1;        c.setLayout(createLayoutManager());        installComponents();        installDefaults();         installListeners();        installKeyboardActions();    }    public void uninstallUI(JComponent c) {        uninstallKeyboardActions();        uninstallListeners();        uninstallDefaults();        uninstallComponents();        c.setLayout(null);         this.tabPane = null;    }    /**     * Invoked by <code>installUI</code> to create     * a layout manager object to manage     * the <code>JTabbedPane</code>.     *     * @return a layout manager object     *     * @see TabbedPaneLayout     * @see javax.swing.JTabbedPane#getTabLayoutPolicy     */    protected LayoutManager createLayoutManager() {        if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) {            return new TabbedPaneScrollLayout();        } else { /* WRAP_TAB_LAYOUT */            return new TabbedPaneLayout();        }    }    /* In an attempt to preserve backward compatibility for programs     * which have extended BasicTabbedPaneUI to do their own layout, the     * UI uses the installed layoutManager (and not tabLayoutPolicy) to     * determine if scrollTabLayout is enabled.     */    private boolean scrollableTabLayoutEnabled() {        return (tabPane.getLayout() instanceof TabbedPaneScrollLayout);    }    /**     * Creates and installs any required subcomponents for the JTabbedPane.     * Invoked by installUI.     *     * @since 1.4     */    protected void installComponents() {        if (scrollableTabLayoutEnabled()) {            if (tabScroller == null) {                tabScroller = new ScrollableTabSupport(tabPane.getTabPlacement());                tabPane.add(tabScroller.viewport);            }        }    }    /**     * Creates and returns a JButton that will provide the user     * with a way to scroll the tabs in a particular direction. The     * returned JButton must be instance of UIResource.     *     * @param direction One of the SwingConstants constants:     * SOUTH, NORTH, EAST or WEST     * @return Widget for user to      * @see javax.swing.JTabbedPane#setTabPlacement     * @see javax.swing.SwingConstants     * @throws IllegalArgumentException if direction is not one of     *         NORTH, SOUTH, EAST or WEST     * @since 1.5     */    protected JButton createScrollButton(int direction) {        if (direction != SOUTH && direction != NORTH && direction != EAST &&                                  direction != WEST) {            throw new IllegalArgumentException("Direction must be one of: " +                                               "SOUTH, NORTH, EAST or WEST");        }        return new ScrollableTabButton(direction);    }    /**     * Removes any installed subcomponents from the JTabbedPane.     * Invoked by uninstallUI.     *     * @since 1.4     */    protected void uninstallComponents() {        if (scrollableTabLayoutEnabled()) {            tabPane.remove(tabScroller.viewport);            tabPane.remove(tabScroller.scrollForwardButton);            tabPane.remove(tabScroller.scrollBackwardButton);            tabScroller = null;        }    }    protected void installDefaults() {        LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background",                                    "TabbedPane.foreground", "TabbedPane.font");             highlight = UIManager.getColor("TabbedPane.light");        lightHighlight = UIManager.getColor("TabbedPane.highlight");        shadow = UIManager.getColor("TabbedPane.shadow");        darkShadow = UIManager.getColor("TabbedPane.darkShadow");        focus = UIManager.getColor("TabbedPane.focus");        selectedColor = UIManager.getColor("TabbedPane.selected");        textIconGap = UIManager.getInt("TabbedPane.textIconGap");        tabInsets = UIManager.getInsets("TabbedPane.tabInsets");        selectedTabPadInsets = UIManager.getInsets("TabbedPane.selectedTabPadInsets");        tabAreaInsets = UIManager.getInsets("TabbedPane.tabAreaInsets");	tabsOverlapBorder = UIManager.getBoolean("TabbedPane.tabsOverlapBorder");        contentBorderInsets = UIManager.getInsets("TabbedPane.contentBorderInsets");        tabRunOverlay = UIManager.getInt("TabbedPane.tabRunOverlay");        tabsOpaque = UIManager.getBoolean("TabbedPane.tabsOpaque");        contentOpaque = UIManager.getBoolean("TabbedPane.contentOpaque");        Object opaque = UIManager.get("TabbedPane.opaque");        if (opaque == null) {            opaque = Boolean.FALSE;        }        LookAndFeel.installProperty(tabPane, "opaque", opaque);    }    protected void uninstallDefaults() {        highlight = null;        lightHighlight = null;        shadow = null;        darkShadow = null;        focus = null;        tabInsets = null;        selectedTabPadInsets = null;        tabAreaInsets = null;        contentBorderInsets = null;    }    protected void installListeners() {        if ((propertyChangeListener = createPropertyChangeListener()) != null) {            tabPane.addPropertyChangeListener(propertyChangeListener);        }        if ((tabChangeListener = createChangeListener()) != null) {                        tabPane.addChangeListener(tabChangeListener);        }        if ((mouseListener = createMouseListener()) != null) {            tabPane.addMouseListener(mouseListener);        }        tabPane.addMouseMotionListener(getHandler());        if ((focusListener = createFocusListener()) != null) {            tabPane.addFocusListener(focusListener);        }        tabPane.addContainerListener(getHandler());        if (tabPane.getTabCount()>0) {            htmlViews = createHTMLVector();        }    }    protected void uninstallListeners() {        if (mouseListener != null) {            tabPane.removeMouseListener(mouseListener);            mouseListener = null;        }        tabPane.removeMouseMotionListener(getHandler());        if (focusListener != null) {            tabPane.removeFocusListener(focusListener);            focusListener = null;        }                    tabPane.removeContainerListener(getHandler());        if (htmlViews!=null) {            htmlViews.removeAllElements();            htmlViews = null;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品乱子久久久久| 亚洲婷婷综合久久一本伊一区| 99视频精品免费视频| 亚洲成人黄色小说| 国产精品久久久久久久久久免费看 | 国产成人在线免费| 亚洲综合一二三区| 欧美国产禁国产网站cc| 91精品国产综合久久精品app| 久久综合五月天婷婷伊人| 91电影在线观看| 不卡视频在线看| 国产一区二区视频在线| 日韩精品免费视频人成| 一区二区三区在线免费| 国产精品拍天天在线| 精品理论电影在线观看| 欧美军同video69gay| 不卡视频免费播放| 国产在线乱码一区二区三区| 日韩精品久久理论片| 一区二区三区色| 亚洲三级小视频| 中文字幕一区在线观看视频| 国产欧美精品一区二区色综合| 精品一区在线看| 香蕉影视欧美成人| 亚洲欧美日韩国产另类专区| 国产精品美日韩| 国产精品乱人伦| 国产精品国产三级国产普通话三级 | 在线观看三级视频欧美| jiyouzz国产精品久久| 国产不卡视频一区| 国产精品羞羞答答xxdd| 国产精品系列在线播放| 国产成人午夜99999| 国产精品一区二区视频| 另类的小说在线视频另类成人小视频在线 | 日韩一区中文字幕| 亚洲另类色综合网站| 国产精品国模大尺度视频| 国产精品短视频| 亚洲男人的天堂网| 亚洲在线观看免费| 三级不卡在线观看| 91国产免费观看| 欧美性大战久久| 欧美久久一二区| 日韩免费福利电影在线观看| 久久久午夜精品理论片中文字幕| 色又黄又爽网站www久久| 色综合久久久久网| 欧美又粗又大又爽| 欧美一区二区三区四区在线观看 | 亚洲欧美另类久久久精品2019| 91成人免费网站| 精品视频免费看| 欧美一区二区三区视频在线观看 | 日韩经典一区二区| 日韩av电影免费观看高清完整版 | www.成人在线| 色综合久久久久综合99| 欧美日韩一区二区三区四区| 欧美一区午夜视频在线观看| 久久免费精品国产久精品久久久久| 欧美性色综合网| 日韩美女天天操| 国产精品色眯眯| 亚洲国产一区二区三区| 麻豆一区二区在线| 99久久er热在这里只有精品15 | 天堂蜜桃一区二区三区| 激情综合五月天| 粉嫩蜜臀av国产精品网站| bt7086福利一区国产| 欧美日韩大陆一区二区| 精品国产乱码久久久久久久久| 在线观看91视频| 666欧美在线视频| 欧美激情一区在线| 水野朝阳av一区二区三区| 国产成人精品www牛牛影视| 91久久精品网| 久久精品水蜜桃av综合天堂| 一区二区三区成人| 国产精品一区二区你懂的| 色综合久久天天综合网| 日韩精品一区二区在线| 亚洲狠狠丁香婷婷综合久久久| 国产精品美女久久久久aⅴ| 香蕉av福利精品导航| 丁香啪啪综合成人亚洲小说| 在线电影国产精品| 日韩码欧中文字| 久久99久久99小草精品免视看| 中文字幕一区二区在线播放| 亚洲一级电影视频| www.亚洲精品| 久久奇米777| 日本午夜精品一区二区三区电影 | 久久99国产精品久久99果冻传媒| 亚洲va欧美va人人爽午夜| 国产一区二区三区免费播放| 国产精品乱码一区二区三区软件| 国产精品福利在线播放| 国产最新精品精品你懂的| 色www精品视频在线观看| 久久久精品一品道一区| 看电影不卡的网站| 欧美日韩午夜在线视频| 亚洲乱码国产乱码精品精98午夜 | 婷婷开心激情综合| 成人综合婷婷国产精品久久蜜臀| 国产精品99久久久久久久vr| 欧美高清www午色夜在线视频| 91精品国产麻豆国产自产在线 | 久久亚洲春色中文字幕久久久| 欧美videossexotv100| 亚洲一二三四在线观看| eeuss影院一区二区三区| 久久综合九色综合欧美98| 蜜臀av亚洲一区中文字幕| 精品视频1区2区3区| 一区二区欧美视频| 色94色欧美sute亚洲线路二| 综合网在线视频| www.欧美.com| 综合中文字幕亚洲| 色系网站成人免费| 亚洲精品日韩专区silk| 91亚洲精品久久久蜜桃| 亚洲女与黑人做爰| 一本一道久久a久久精品| 亚洲男同性视频| 在线观看区一区二| 亚洲成a人片综合在线| 欧美日韩成人综合在线一区二区| 久久久激情视频| 国产精品亚洲第一区在线暖暖韩国| 91麻豆精品在线观看| 亚洲精品免费在线| 精品污污网站免费看| 亚洲图片欧美一区| 欧美日本免费一区二区三区| 天天操天天干天天综合网| 在线电影院国产精品| 久久99精品国产麻豆婷婷洗澡| 91久久精品网| 亚洲一区二区欧美| 日韩一区二区三区高清免费看看| 国产精品美女久久久久av爽李琼| 日韩成人一级片| 欧美va在线播放| 国产iv一区二区三区| 亚洲欧美日本韩国| 欧美巨大另类极品videosbest| 国产精品伦理一区二区| 色狠狠色狠狠综合| 视频在线观看一区| 久久这里都是精品| 91小视频免费看| 丝袜美腿亚洲色图| 国产天堂亚洲国产碰碰| 一本大道久久a久久精二百| 亚洲成国产人片在线观看| 欧美一区二区三区免费大片| 国产成人午夜精品影院观看视频 | 日本高清免费不卡视频| 午夜视频在线观看一区| 久久综合色播五月| 色噜噜狠狠成人网p站| 日韩成人免费看| 日本一区二区三区四区在线视频| 免费久久精品视频| 国产精品久久久久久久久快鸭 | 欧美激情一区二区三区蜜桃视频| 亚洲成人动漫精品| www国产亚洲精品久久麻豆| 97成人超碰视| 久久精品99国产精品| 亚洲天堂成人在线观看| 欧美一区二区三区影视| 97久久精品人人爽人人爽蜜臀| 国产亚洲欧美一区在线观看| 色哟哟精品一区| 精品写真视频在线观看| 国产精品久久精品日日| 日韩欧美国产成人一区二区| 色综合中文字幕| 国产麻豆成人传媒免费观看| 亚洲综合精品久久| 国产亚洲视频系列| 欧美一区二区在线看| 色婷婷精品大视频在线蜜桃视频| 亚洲狠狠丁香婷婷综合久久久| 91在线视频观看| 国产九九视频一区二区三区| 日精品一区二区三区| 亚洲美女在线一区|