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

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

?? uifsplitpane.java

?? Gmail API for Java 一個gmail信箱的客戶端
?? JAVA
字號:
/*
 * Copyright (c) 2003, 2004 JGoodies Karsten Lentzsch. All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *  o Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 *
 *  o Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 *  o Neither the name of JGoodies Karsten Lentzsch nor the names of
 *    its contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package com.jgoodies.uif_lite.component;

import java.awt.Component;

import javax.swing.JButton;
import javax.swing.JSplitPane;
import javax.swing.UIManager;
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;
import javax.swing.plaf.SplitPaneUI;
import javax.swing.plaf.basic.BasicSplitPaneUI;

/**
 * A <code>JSplitPane</code> subclass that can try to remove the divider border.
 * Useful if the splitted components render their own borders.
 * Note that this feature is not supported by all look&amp;feels.
 * Some look&amp;feel implementation will always show a divider border,
 * and conversely, others will never show a divider border.
 *
 * @author Karsten Lentzsch
 * @version $Revision: 1.5 $
 *
 * @see javax.swing.plaf.basic.BasicSplitPaneUI
 */

public final class UIFSplitPane extends JSplitPane {

    /**
     * Holds the name of the bound property that tries to show or hide
     * the split pane's divider border.
     *
     * @see #isDividerBorderVisible()
     * @see #setDividerBorderVisible(boolean)
     */
    public static final String PROPERTYNAME_DIVIDER_BORDER_VISIBLE =
        "dividerBorderVisible";

    /**
     * Holds an empty border that is reused for the split pane itself
     * and the divider.
     */
    private static final Border EMPTY_BORDER = new EmptyBorder(0, 0, 0, 0);

    /**
     * Determines whether the divider border shall be removed when
     * the UI is updated.
     *
     * @see #isDividerBorderVisible()
     * @see #setDividerBorderVisible(boolean)
     */
    private boolean dividerBorderVisible;


    // Instance Creation *****************************************************

    /**
     * Constructs a <code>UIFSplitPane</code> configured to arrange the child
     * components side-by-side horizontally with no continuous
     * layout, using two buttons for the components.
     */
    public UIFSplitPane() {
        this(JSplitPane.HORIZONTAL_SPLIT, false,
                new JButton(UIManager.getString("SplitPane.leftButtonText")),
                new JButton(UIManager.getString("SplitPane.rightButtonText")));
    }


    /**
     * Constructs a <code>UIFSplitPane</code> configured with the
     * specified orientation and no continuous layout.
     *
     * @param newOrientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
     *                        <code>JSplitPane.VERTICAL_SPLIT</code>
     * @throws IllegalArgumentException if <code>orientation</code>
     *		is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT.
     */
    public UIFSplitPane(int newOrientation) {
        this(newOrientation, false);
    }


    /**
     * Constructs a <code>UIFSplitPane</code> with the specified
     * orientation and redrawing style.
     *
     * @param newOrientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
     *                        <code>JSplitPane.VERTICAL_SPLIT</code>
     * @param newContinuousLayout  a boolean, true for the components to
     *        redraw continuously as the divider changes position, false
     *        to wait until the divider position stops changing to redraw
     * @throws IllegalArgumentException if <code>orientation</code>
     *		is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT
     */
    public UIFSplitPane(int newOrientation,
                      boolean newContinuousLayout) {
        this(newOrientation, newContinuousLayout, null, null);
    }


    /**
     * Constructs a <code>UIFSplitPane</code> with the specified orientation
     * and the given componenents.
     *
     * @param orientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
     *                        <code>JSplitPane.VERTICAL_SPLIT</code>
     * @param leftComponent the <code>Component</code> that will
     *    appear on the left of a horizontally-split pane,
     *    or at the top of a vertically-split pane
     * @param rightComponent the <code>Component</code> that will
     *    appear on the right of a horizontally-split pane,
     *    or at the bottom of a	vertically-split pane
     * @throws IllegalArgumentException if <code>orientation</code>
     *    is not one of: HORIZONTAL_SPLIT or VERTICAL_SPLIT
     */
    public UIFSplitPane(int orientation,
                         Component leftComponent,
                         Component rightComponent) {
        this(orientation, false, leftComponent, rightComponent);
    }


    /**
     * Constructs a <code>UIFSplitPane</code> with the specified orientation,
     * redrawing style, and given components.
     *
     * @param orientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
     *                        <code>JSplitPane.VERTICAL_SPLIT</code>
     * @param continuousLayout  a boolean, true for the components to
     *        redraw continuously as the divider changes position, false
     *        to wait until the divider position stops changing to redraw
     * @param leftComponent the <code>Component</code> that will
     *		appear on the left
     *        	of a horizontally-split pane, or at the top of a
     *        	vertically-split pane
     * @param rightComponent the <code>Component</code> that will
     *		appear on the right
     *        	of a horizontally-split pane, or at the bottom of a
     *        	vertically-split pane
     * @throws IllegalArgumentException if <code>orientation</code>
     *		is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT
     */
    public UIFSplitPane(int orientation,
                      boolean continuousLayout,
                      Component leftComponent,
                      Component rightComponent){
        super(orientation, continuousLayout, leftComponent, rightComponent);
        dividerBorderVisible = false;
    }


    /**
     * Constructs a <code>UIFSplitPane</code>,
     * i.e. a <code>JSplitPane</code> that has no borders.
     * Also disabled the one touch exandable property.
     *
     * @param orientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
     *                        <code>JSplitPane.VERTICAL_SPLIT</code>
     * @param leftComponent the <code>Component</code> that will
     *    appear on the left of a horizontally-split pane,
     *    or at the top of a vertically-split pane
     * @param rightComponent the <code>Component</code> that will
     *    appear on the right of a horizontally-split pane,
     *    or at the bottom of a	vertically-split pane
     * @throws IllegalArgumentException if <code>orientation</code>
     *    is not one of: HORIZONTAL_SPLIT or VERTICAL_SPLIT
     */
    public static UIFSplitPane createStrippedSplitPane(
             int orientation,
             Component leftComponent,
             Component rightComponent) {
        UIFSplitPane split = new UIFSplitPane(orientation, leftComponent, rightComponent);
        split.setBorder(EMPTY_BORDER);
        split.setOneTouchExpandable(false);
        return split;
    }


    // Accessing Properties **************************************************

    /**
     * Checks and answers whether the divider border shall be visible
     * or invisible.
     * Note that this feature is not supported by all look&amp;feels.
     * Some look&amp;feel implementation will always show a divider border,
     * and conversely, others will never show a divider border.
     *
     * @return the desired (but potentially inaccurate) divider border visiblity
     */
    public boolean isDividerBorderVisible() {
        return dividerBorderVisible;
    }


    /**
     * Makes the divider border visible or invisible.
     * Note that this feature is not supported by all look&amp;feels.
     * Some look&amp;feel implementation will always show a divider border,
     * and conversely, others will never show a divider border.
     *
     * @param newVisibility   true for visible, false for invisible
     */
    public void setDividerBorderVisible(boolean newVisibility) {
        boolean oldVisibility = isDividerBorderVisible();
        if (oldVisibility == newVisibility)
            return;
        dividerBorderVisible = newVisibility;
        firePropertyChange(PROPERTYNAME_DIVIDER_BORDER_VISIBLE,
                           oldVisibility,
                           newVisibility);
    }


    // Changing the Divider Border Visibility *********************************

    /**
     * Updates the UI and sets an empty divider border. The divider border
     * may be restored by a L&F at UI installation time. And so, we
     * try to reset it each time the UI is changed.
     */
    public void updateUI() {
        super.updateUI();
        if (!isDividerBorderVisible())
            setEmptyDividerBorder();
    }


    /**
     * Sets an empty divider border if and only if the UI is
     * an instance of <code>BasicSplitPaneUI</code>.
     */
    private void setEmptyDividerBorder() {
        SplitPaneUI splitPaneUI = getUI();
        if (splitPaneUI instanceof BasicSplitPaneUI) {
            BasicSplitPaneUI basicUI = (BasicSplitPaneUI) splitPaneUI;
            basicUI.getDivider().setBorder(EMPTY_BORDER);
        }
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产成人精品视频| 日韩电影一二三区| 欧美一级xxx| av电影天堂一区二区在线| 亚洲成人精品影院| 国产精品免费视频一区| 日韩一区二区麻豆国产| 色婷婷综合视频在线观看| 久久99热国产| 天天综合网天天综合色| 成人欧美一区二区三区| 久久蜜臀精品av| 欧美一区二区播放| 91浏览器打开| 国产+成+人+亚洲欧洲自线| 蜜臀久久久久久久| 一区二区三区高清不卡| 国产精品欧美一级免费| 精品国产不卡一区二区三区| 欧美日韩电影在线| 在线观看亚洲一区| 91首页免费视频| 国产大陆亚洲精品国产| 六月丁香婷婷色狠狠久久| 亚洲二区视频在线| 亚洲曰韩产成在线| 最近中文字幕一区二区三区| 国产欧美日韩在线观看| 精品国产伦一区二区三区观看体验| 欧美精品三级日韩久久| 欧美艳星brazzers| 欧美在线不卡视频| 一本一道综合狠狠老| av激情亚洲男人天堂| 高清beeg欧美| 风流少妇一区二区| 成人v精品蜜桃久久一区| 国产精品亚洲专一区二区三区| 激情另类小说区图片区视频区| 奇米影视一区二区三区| 免费人成精品欧美精品| 美国十次了思思久久精品导航| 丝袜亚洲另类丝袜在线| 日韩二区在线观看| 久久国产生活片100| 六月丁香综合在线视频| 韩国av一区二区三区四区| 暴力调教一区二区三区| 成人h精品动漫一区二区三区| 视频在线观看91| 午夜精品久久久久久久久| 亚洲高清视频在线| 蜜臀av亚洲一区中文字幕| 久久国产三级精品| 国产成人av一区二区| 国产成人av在线影院| eeuss鲁一区二区三区| av高清久久久| 欧美日韩亚洲综合在线| 欧美丰满美乳xxx高潮www| 3d动漫精品啪啪| 久久久久久电影| 亚洲天堂a在线| 亚洲成人综合视频| 久久99热国产| 不卡电影一区二区三区| 欧美中文字幕一区| 精品久久国产老人久久综合| 久久网这里都是精品| 中文字幕av一区 二区| 夜夜亚洲天天久久| 经典一区二区三区| 96av麻豆蜜桃一区二区| 欧美视频中文一区二区三区在线观看| 91麻豆精品国产91久久久| 久久综合国产精品| 亚洲精品美国一| 蜜臀av一区二区三区| av电影在线观看一区| 制服丝袜亚洲色图| 中文字幕av一区 二区| 亚洲成av人片在线| 国产成人免费在线观看不卡| 欧美亚洲图片小说| 久久精品视频一区二区三区| 亚洲制服丝袜在线| 大陆成人av片| 日韩视频一区二区在线观看| 国产精品久久久久精k8| 青青青伊人色综合久久| 成人毛片视频在线观看| 555www色欧美视频| 亚洲欧洲国产专区| 国产美女在线观看一区| 欧美日韩三级视频| 国产精品高清亚洲| 久久国产成人午夜av影院| 色拍拍在线精品视频8848| 欧美成人精品福利| 亚洲综合激情另类小说区| 国产久卡久卡久卡久卡视频精品| 91久久精品国产91性色tv| 久久亚洲二区三区| 日韩成人av影视| 欧洲精品一区二区三区在线观看| 国产亚洲精品久| 麻豆91精品91久久久的内涵| 色狠狠综合天天综合综合| 久久精品人人爽人人爽| 青青草精品视频| 欧美日韩日本视频| 亚洲欧美另类久久久精品| 国产高清不卡一区| 26uuu国产日韩综合| 天天av天天翘天天综合网| 91偷拍与自偷拍精品| 中文字幕av一区二区三区免费看 | 亚洲一区免费在线观看| 国产成人自拍高清视频在线免费播放| 欧美一级一区二区| 爽好久久久欧美精品| 欧美视频在线观看一区| 亚洲精品亚洲人成人网| 成人爱爱电影网址| 国产精品美女久久久久久久久久久 | 亚洲第一成年网| 在线看国产一区二区| 亚洲日本va午夜在线电影| www.在线成人| 亚洲天堂成人在线观看| aaa欧美色吧激情视频| 久久久蜜桃精品| 国产精品一二三在| 国产日韩欧美a| 成人国产视频在线观看| 国产精品拍天天在线| 国产成人精品影视| 国产精品福利一区| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 国产伦精一区二区三区| 久久免费视频一区| 岛国av在线一区| 17c精品麻豆一区二区免费| 97国产精品videossex| 亚洲精品国久久99热| 欧美少妇性性性| 日韩中文欧美在线| 精品日韩在线一区| 高清在线不卡av| 有坂深雪av一区二区精品| 欧美视频中文一区二区三区在线观看| 午夜成人免费电影| 欧美va天堂va视频va在线| 国产精品资源站在线| 国产精品久久久久久久久免费樱桃| 99这里都是精品| 亚洲线精品一区二区三区| 欧美一区二区三区视频免费| 韩国一区二区在线观看| 国产精品乱码一区二三区小蝌蚪| 91免费版在线看| 天天操天天干天天综合网| 精品久久免费看| 91免费国产在线观看| 亚洲aⅴ怡春院| 久久五月婷婷丁香社区| 一本大道综合伊人精品热热| 日韩av中文字幕一区二区| 精品sm捆绑视频| 色哟哟一区二区在线观看| 天天综合网天天综合色| 久久精品人人爽人人爽| 在线免费一区三区| 久久国内精品自在自线400部| 国产精品久久久久久久第一福利 | 91精品国产高清一区二区三区| 精品午夜久久福利影院| 18成人在线观看| 欧美电影免费观看高清完整版在线观看| 国产不卡视频在线观看| 亚洲午夜激情av| 国产亚洲欧美激情| 欧美色图第一页| 成人av电影观看| 日本不卡的三区四区五区| 国产精品萝li| 欧美第一区第二区| 色av综合在线| 丁香亚洲综合激情啪啪综合| 亚洲成av人在线观看| 国产精品嫩草影院com| 日韩一区二区三区电影在线观看| 99久久国产综合色|国产精品| 蜜桃av一区二区| 亚洲一区二区在线免费看| 国产日韩欧美不卡| 欧美一卡在线观看| 在线免费精品视频| 岛国精品一区二区| 国产一区二区三区四区五区入口|