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

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

?? simpleinternalframe.java

?? Gmail API for Java 一個gmail信箱的客戶端
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Copyright (c) 2003 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.panel;

import java.awt.*;

import javax.swing.*;
import javax.swing.border.AbstractBorder;

import com.jgoodies.plaf.LookUtils;

/** 
 * A <code>JPanel</code> subclass that has a drop shadow border and 
 * that provides a header with icon, title and tool bar.<p>
 * 
 * This class can be used to replace the <code>JInternalFrame</code>,
 * for use outside of a <code>JDesktopPane</code>. 
 * The <code>SimpleInternalFrame</code> is less flexible but often
 * more usable; it avoids overlapping windows and scales well 
 * up to IDE size.
 * Several customers have reported that they and their clients feel 
 * much better with both the appearance and the UI feel.<p>
 * 
 * The SimpleInternalFrame provides the following bound properties:
 * <i>frameIcon, title, toolBar, content, selected.</i><p>
 * 
 * By default the SimpleInternalFrame is in <i>selected</i> state.
 * If you don't do anything, multiple simple internal frames will
 * be displayed as selected.
 * 
 * @author Karsten Lentzsch
 * @version $Revision: 1.3 $
 * 
 * @see    javax.swing.JInternalFrame
 * @see    javax.swing.JDesktopPane
 */

public class SimpleInternalFrame extends JPanel {

    private JLabel          titleLabel;
    private GradientPanel   gradientPanel;
    private JPanel          headerPanel;
    private boolean        isSelected;
    
    
    // Instance Creation ****************************************************

    /**
     * Constructs a <code>SimpleInternalFrame</code> with the specified title.
     * 
     * @param title       the initial title
     */
    public SimpleInternalFrame(String title) {
        this(null, title, null, null);
    }
    
    
    /**
     * Constructs a <code>SimpleInternalFrame</code> with the specified 
     * icon, and title.
     * 
     * @param icon        the initial icon
     * @param title       the initial title
     */
    public SimpleInternalFrame(Icon icon, String title) {
        this(icon, title, null, null);
    }

    
    /**
     * Constructs a <code>SimpleInternalFrame</code> with the specified 
     * title, tool bar, and content panel.
     * 
     * @param title       the initial title
     * @param bar         the initial tool bar
     * @param content     the initial content pane
     */
    public SimpleInternalFrame(String title, JToolBar bar, JComponent content) {
        this(null, title, bar, content);
    }
    

    /**
     * Constructs a <code>SimpleInternalFrame</code> with the specified 
     * icon, title, tool bar, and content panel.
     * 
     * @param icon        the initial icon
     * @param title       the initial title
     * @param bar         the initial tool bar
     * @param content     the initial content pane
     */
    public SimpleInternalFrame(
        Icon icon,
        String title,
        JToolBar bar,
        JComponent content) {
        super(new BorderLayout());
        this.isSelected = false;
        this.titleLabel = new JLabel(title, icon, SwingConstants.LEADING);
        JPanel top = buildHeader(titleLabel, bar);

        add(top, BorderLayout.NORTH);
        if (content != null) {
            setContent(content);
        }
        setBorder(new ShadowBorder());
        setSelected(true);
        updateHeader();
    }

    
    // Public API ***********************************************************

    /**
     * Returns the frame's icon.
     * 
     * @return the frame's icon
     */
    public Icon getFrameIcon() {
        return titleLabel.getIcon();
    }
    

    /**
     * Sets a new frame icon.
     * 
     * @param newIcon   the icon to be set
     */
    public void setFrameIcon(Icon newIcon) {
        Icon oldIcon = getFrameIcon();
        titleLabel.setIcon(newIcon);
        firePropertyChange("frameIcon", oldIcon, newIcon);
    }
    

    /**
     * Returns the frame's title text.
     * 
     * @return String   the current title text
     */
    public String getTitle() {
        return titleLabel.getText();
    }
    
    
    /**
     * Sets a new title text.
     * 
     * @param newText  the title text tp be set
     */
    public void setTitle(String newText) {
        String oldText = getTitle();
        titleLabel.setText(newText);
        firePropertyChange("title", oldText, newText);
    }
    
    
    /**
     * Returns the current toolbar, null if none has been set before.
     * 
     * @return the current toolbar - if any
     */
    public JToolBar getToolBar() {
        return headerPanel.getComponentCount() > 1
            ? (JToolBar) headerPanel.getComponent(1)
            : null;
    }
    

    /**
     * Sets a new tool bar in the header.
     * 
     * @param newToolBar the tool bar to be set in the header
     */
    public void setToolBar(JToolBar newToolBar) {
        JToolBar oldToolBar = getToolBar();
        if (oldToolBar == newToolBar) {
            return;
        }
        if (oldToolBar != null) {
            headerPanel.remove(oldToolBar);
        }
        if (newToolBar != null) {
            newToolBar.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
            headerPanel.add(newToolBar, BorderLayout.EAST);
        }
        updateHeader();
        firePropertyChange("toolBar", oldToolBar, newToolBar);
    }

    
    /**
     * Returns the content - null, if none has been set.
     * 
     * @return the current content
     */
    public Component getContent() {
        return hasContent() ? getComponent(1) : null;
    }
    
    
    /**
     * Sets a new panel content; replaces any existing content, if existing.
     * 
     * @param newContent   the panel's new content
     */
    public void setContent(Component newContent) {
        Component oldContent = getContent();
        if (hasContent()) {
            remove(oldContent);
        }
        add(newContent, BorderLayout.CENTER);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲福利社区一区| 久久久五月婷婷| 欧美精品1区2区3区| 欧美色国产精品| 日韩欧美色综合网站| 国产欧美日韩视频在线观看| 亚洲欧洲日韩av| 美女mm1313爽爽久久久蜜臀| 天堂资源在线中文精品| 国产精品一区二区久激情瑜伽| 国产精品一品视频| 欧美日韩在线三级| 国产亚洲一区二区三区| 中文字幕日韩一区二区| 蜜臀精品一区二区三区在线观看 | jvid福利写真一区二区三区| 在线中文字幕一区二区| 欧美精品一区二区三| 亚洲色图一区二区| 精品在线免费视频| 在线亚洲一区二区| 日韩一区二区在线看| 一区二区三区四区乱视频| 国产一区二区伦理| 9191国产精品| 午夜精品久久久久久久久久| 国产精品一区二区在线观看不卡 | 丝袜脚交一区二区| a亚洲天堂av| 国产精品伦理一区二区| 黄色日韩网站视频| 欧美成人一区二区| 日韩黄色在线观看| 欧美精品v国产精品v日韩精品| 亚洲青青青在线视频| 91色婷婷久久久久合中文| 国产午夜精品理论片a级大结局| 麻豆高清免费国产一区| 欧美精品v国产精品v日韩精品| 亚洲高清久久久| 7777精品久久久大香线蕉| 蜜臀久久99精品久久久久久9| 欧美一区二区三区影视| 毛片不卡一区二区| 日韩三级精品电影久久久 | 欧美日本在线播放| 日韩国产精品91| 精品嫩草影院久久| 国产成人精品www牛牛影视| 久久理论电影网| 北岛玲一区二区三区四区| 亚洲免费资源在线播放| 777xxx欧美| 成人激情视频网站| 亚洲国产另类精品专区| 精品99一区二区| 91久色porny | 国产精品午夜在线| 欧美中文字幕不卡| 韩国欧美国产一区| 一区二区三区精品在线| 久久女同性恋中文字幕| 在线视频中文字幕一区二区| 激情久久久久久久久久久久久久久久| 欧美激情综合五月色丁香| 在线一区二区三区做爰视频网站| 久草在线在线精品观看| 亚洲精品免费看| 欧美激情中文不卡| 精品久久久久久久久久久久包黑料 | 国产精品欧美精品| 91精品欧美综合在线观看最新| 成人app软件下载大全免费| 美女爽到高潮91| 蜜桃视频在线观看一区| 伊人色综合久久天天人手人婷| 中文字幕av一区二区三区高| 欧美日韩三级一区| 欧美日韩久久一区| 在线视频欧美区| 欧美亚洲国产一区二区三区| 色哟哟亚洲精品| 色视频一区二区| 欧美性大战久久久久久久| 色香色香欲天天天影视综合网| 成人18视频日本| 91在线视频免费观看| 欧美性欧美巨大黑白大战| 在线精品视频免费播放| 欧美日韩国产首页| 精品国产乱码久久久久久闺蜜| 日韩欧美在线1卡| 日本一区二区成人| 一区二区激情小说| 视频一区中文字幕国产| 毛片av中文字幕一区二区| 国产精品一区二区久激情瑜伽| 国产一区二区三区在线观看免费视频 | 5858s免费视频成人| 欧美成人猛片aaaaaaa| 一区二区中文字幕在线| 天堂va蜜桃一区二区三区漫画版 | 精品久久久久久最新网址| 国产精品久久久久毛片软件| 亚洲福利视频一区二区| 久久国产精品99久久久久久老狼 | 成人免费一区二区三区在线观看| 亚洲国产日产av| 国产mv日韩mv欧美| 91精品国产91综合久久蜜臀| 国产欧美日韩在线视频| 人人狠狠综合久久亚洲| 本田岬高潮一区二区三区| 日韩亚洲欧美一区二区三区| 日本一区二区三区国色天香 | 日韩精品一区二区三区蜜臀| 国产精品美女久久福利网站| 免费人成网站在线观看欧美高清| 色综合久久中文综合久久牛| 久久在线免费观看| 国产一区二区三区蝌蚪| 欧美精品久久久久久久久老牛影院| 国产日韩欧美麻豆| 国产精品资源网| 久久精品网站免费观看| 国产精品小仙女| 日韩三级免费观看| 午夜精品久久久久久久99樱桃| 在线亚洲+欧美+日本专区| 亚洲欧美日韩国产一区二区三区 | 亚洲欧洲综合另类在线| 国产成人精品aa毛片| 国产精品黄色在线观看| 99精品1区2区| 亚洲成人免费电影| 欧美电影一区二区三区| 久久精品72免费观看| 久久亚洲精精品中文字幕早川悠里| 激情伊人五月天久久综合| 日韩免费高清电影| 成人久久久精品乱码一区二区三区 | 亚洲品质自拍视频| 欧美日韩的一区二区| 琪琪久久久久日韩精品| 欧美精品一区二区三区视频| 国产寡妇亲子伦一区二区| 国产精品久久夜| 欧美一级日韩一级| 不卡在线观看av| 极品少妇xxxx精品少妇偷拍| 中文字幕亚洲区| 欧美电视剧在线看免费| www.日韩av| 蜜桃视频一区二区| 亚洲激情中文1区| 国产片一区二区三区| 欧美日韩精品一区二区天天拍小说| 国产激情视频一区二区在线观看 | 国产欧美日韩三级| 91精品国产免费久久综合| 菠萝蜜视频在线观看一区| 日本视频一区二区三区| 久久久久久久精| 欧美草草影院在线视频| 欧美亚洲综合久久| 99精品视频在线免费观看| 国产一区福利在线| 青娱乐精品视频在线| 一二三四区精品视频| 亚洲欧美在线观看| 国产精品短视频| 欧美国产一区视频在线观看| 精品国产制服丝袜高跟| 日韩免费看的电影| 久久久久久麻豆| 欧美经典一区二区| 日本一区二区三级电影在线观看 | 成人午夜视频在线| 懂色av一区二区三区蜜臀| 国产精品综合久久| 国产在线精品一区二区三区不卡| 日韩精品乱码免费| 蜜桃传媒麻豆第一区在线观看| 日日嗨av一区二区三区四区| 亚洲成人动漫在线观看| 美女性感视频久久| 国内精品免费**视频| 国产激情视频一区二区三区欧美 | 国产精品福利一区二区| 亚洲女同女同女同女同女同69| 亚洲另类在线一区| 五月激情综合婷婷| 国产综合成人久久大片91| 国产风韵犹存在线视精品| 99综合电影在线视频| 在线观看av一区| 精品国产精品一区二区夜夜嗨| 欧美激情自拍偷拍| 日本在线观看不卡视频| av网站一区二区三区|