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

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

?? uifsplitpane.java

?? java的lookandfeel制作的API
?? 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.2 $
 * 
 * @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一区二区三区免费野_久草精品视频
国产一本一道久久香蕉| 亚洲午夜一区二区| 免费在线视频一区| 一区二区三区欧美日韩| 欧美经典三级视频一区二区三区| 欧美日韩国产精选| bt7086福利一区国产| 国产精品羞羞答答xxdd| 成人免费av在线| av电影在线观看一区| 精品日韩一区二区三区| 精品国产乱码久久久久久影片| 欧美一卡二卡三卡| 91精品国产综合久久久蜜臀粉嫩 | 一区二区欧美国产| 国产一区二区精品久久99| 这里是久久伊人| 亚洲mv在线观看| 日本麻豆一区二区三区视频| 久久99国产精品免费| 国产乱子轮精品视频| 欧美一级久久久| 亚洲国产精品精华液ab| 国产一区二区不卡老阿姨| 日韩网站在线看片你懂的| 丝瓜av网站精品一区二区| 国产河南妇女毛片精品久久久| av动漫一区二区| 国产精品久久久久久妇女6080 | 国产人成一区二区三区影院| 国产精品嫩草影院av蜜臀| 亚洲国产日韩a在线播放性色| 久久精品免费看| 91捆绑美女网站| 欧美精品第1页| 日本一区免费视频| 国产.精品.日韩.另类.中文.在线.播放| 国产美女av一区二区三区| 久久影视一区二区| 亚洲福利一区二区| 在线播放中文一区| 看电视剧不卡顿的网站| 久久亚洲免费视频| 久久精品国产亚洲高清剧情介绍 | 久久夜色精品国产噜噜av| 久久精品国产一区二区三区免费看| 美女视频一区二区三区| 国产精品女主播在线观看| 亚洲成av人片在线观看无码| jlzzjlzz亚洲日本少妇| 精品久久久久99| 亚洲人123区| 欧美一区二区福利在线| 日本亚洲欧美天堂免费| 久久久精品国产99久久精品芒果| 午夜影院久久久| 2014亚洲片线观看视频免费| 99re热这里只有精品免费视频 | 91麻豆福利精品推荐| 日韩精品久久理论片| 国产欧美精品一区二区色综合| 色综合天天综合色综合av | 日韩国产欧美在线观看| 欧美电视剧在线观看完整版| 亚洲成a人v欧美综合天堂| 日韩欧美中文字幕公布| 成人丝袜18视频在线观看| 亚洲成a人片在线不卡一二三区| 日韩精品专区在线| 91视频一区二区| 久久99久久精品| 日韩伦理电影网| 91麻豆精品在线观看| 免费成人性网站| 亚洲精品福利视频网站| 色综合久久99| 亚洲人123区| 精品久久久久久久久久久久久久久久久 | 久久久久久综合| 欧美亚洲另类激情小说| 樱花草国产18久久久久| 精品入口麻豆88视频| 欧美日本不卡视频| 99久久99久久综合| 国产原创一区二区| 青青草精品视频| 一区二区成人在线| 亚洲欧洲av一区二区三区久久| 懂色av中文字幕一区二区三区| 肉色丝袜一区二区| 亚洲在线免费播放| 日韩免费视频一区| 欧美日韩另类一区| 91黄色免费观看| 视频一区在线播放| 樱花影视一区二区| 国产精品久线观看视频| 亚洲精品在线免费观看视频| 欧美绝品在线观看成人午夜影视| 91免费在线看| 成人一区二区三区在线观看| 日本va欧美va精品发布| 亚洲一二三级电影| 亚洲一区在线观看视频| 亚洲精品免费在线观看| 国产精品国产三级国产aⅴ无密码| 久久久三级国产网站| 欧美精品一区二区久久久| 日韩欧美在线网站| 日韩亚洲欧美成人一区| 欧美一级高清大全免费观看| 4438x成人网最大色成网站| 欧美伦理视频网站| 91精品国产色综合久久ai换脸| 欧美精品 日韩| 欧美一级二级三级乱码| 日韩欧美一区在线| 日韩三级视频在线观看| 26uuu久久天堂性欧美| 久久久国际精品| 中文字幕亚洲在| 亚洲品质自拍视频| 亚洲在线视频一区| 欧美日韩国产三级| 石原莉奈在线亚洲三区| 亚洲人亚洲人成电影网站色| 欧美电视剧在线看免费| 欧美久久久久久久久| 色哟哟精品一区| 成人黄动漫网站免费app| 亚洲欧洲精品天堂一级| 日韩女优电影在线观看| 欧美熟乱第一页| 色综合天天综合网天天看片 | 国产欧美日韩在线| 日韩小视频在线观看专区| 欧美人牲a欧美精品| 在线精品视频一区二区| 日日夜夜免费精品视频| 亚洲线精品一区二区三区| 亚洲品质自拍视频网站| 中文字幕日韩一区| 国产精品久久久久久久久图文区 | 同产精品九九九| 精品久久国产97色综合| 337p亚洲精品色噜噜噜| 欧美色窝79yyyycom| 91黄视频在线| 欧美图片一区二区三区| 欧美性感一区二区三区| 欧美日韩一区二区三区在线| 国产在线日韩欧美| 亚洲欧洲精品一区二区精品久久久| 精品毛片乱码1区2区3区| 日韩三级中文字幕| 久久亚洲一区二区三区四区| 久久久久久夜精品精品免费| 久久午夜免费电影| 国产视频一区在线播放| 欧美日韩一区二区三区高清| 色呦呦网站一区| 精品视频一区二区三区免费| 制服丝袜av成人在线看| 精品国精品国产| 国产无一区二区| 自拍偷拍国产精品| 精品国产制服丝袜高跟| 久久亚洲私人国产精品va媚药| 免费日本视频一区| 日日骚欧美日韩| 精品一区二区三区免费| 激情深爱一区二区| 91免费视频网| 欧美一区二区三区视频在线| 久久久精品国产免大香伊| 中文字幕欧美一区| 亚洲成人在线网站| 国产成人av资源| 欧洲一区二区av| 26uuu亚洲| 亚洲午夜久久久久久久久电影院 | 97精品超碰一区二区三区| 欧美综合久久久| 久久天天做天天爱综合色| 亚洲人被黑人高潮完整版| 日本午夜精品一区二区三区电影| 国产suv精品一区二区6| 在线观看91精品国产入口| 久久综合色综合88| 亚洲综合久久av| 国产成人综合网| 3d动漫精品啪啪| 亚洲男人的天堂av| 蜜桃av噜噜一区| 在线亚洲精品福利网址导航| 久久午夜电影网| 美女视频免费一区| 在线精品视频一区二区| 国产精品三级电影| 久久99精品久久久久久国产越南 |