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

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

?? wizarddialog.java

?? 水晶 ? ?  報表 ? ? ? 源碼
?? JAVA
字號:
/* ===================================================
 * JCommon : a free general purpose Java class library
 * ===================================================
 *
 * Project Info:  http://www.jfree.org/jcommon/index.html
 * Project Lead:  David Gilbert (david.gilbert@object-refinery.com);
 *
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with this
 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * -----------------
 * WizardDialog.java
 * -----------------
 * (C) Copyright 2000-2003, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: WizardDialog.java,v 1.3 2003/06/12 16:54:43 mungady Exp $
 *
 * Changes (from 26-Oct-2001)
 * --------------------------
 * 26-Oct-2001 : Changed package to com.jrefinery.ui.*;
 * 14-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 *
 */

package org.jfree.ui;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 * A dialog that presents the user with a sequence of steps for completing a task.  The dialog
 * contains "Next" and "Previous" buttons, allowing the user to navigate through the task.
 * <P>
 * When the user backs up by one or more steps, the dialog keeps the completed steps so that
 * they can be reused if the user doesn't change anything - this handles the cases where the user
 * backs up a few steps just to review what has been completed.
 * <p>
 * But if the user changes some options in an earlier step, then the dialog may have to discard
 * the later steps and have them repeated.
 * <P>
 * THIS CLASS IS NOT WORKING CORRECTLY YET.
 *
 * @author David Gilbert
 */
public class WizardDialog extends JDialog implements ActionListener {

    /** The end result of the wizard sequence. */
    private Object result;

    /** The current step in the wizard process (starting at step zero). */
    private int step;

    /** A reference to the current panel. */
    private WizardPanel currentPanel;

    /** A list of references to the panels the user has already seen - used for navigating through
        the steps that have already been completed. */
    private java.util.List panels;

    /** A handy reference to the "previous" button. */
    private JButton previousButton;

    /** A handy reference to the "next" button. */
    private JButton nextButton;

    /** A handy reference to the "finish" button. */
    private JButton finishButton;

    /** A handy reference to the "help" button. */
    private JButton helpButton;

    /**
     * Standard constructor - builds and returns a new WizardDialog.
     *
     * @param owner  the owner.
     * @param modal  modal?
     * @param title  the title.
     * @param firstPanel  the first panel.
     */
    public WizardDialog(JDialog owner, boolean modal,
                        String title, WizardPanel firstPanel) {

        super(owner, title + " : step 1", modal);
        this.result = null;
        this.currentPanel = firstPanel;
        this.step = 0;
        this.panels = new ArrayList();
        panels.add(firstPanel);
        setContentPane(createContent());

    }

    /**
     * Standard constructor - builds a new WizardDialog owned by the specified JFrame.
     *
     * @param owner  the owner.
     * @param modal  modal?
     * @param title  the title.
     * @param firstPanel  the first panel.
     */
    public WizardDialog(JFrame owner, boolean modal,
                        String title, WizardPanel firstPanel) {

        super(owner, title + " : step 1", modal);
        this.result = null;
        this.currentPanel = firstPanel;
        this.step = 0;
        this.panels = new ArrayList();
        panels.add(firstPanel);
        setContentPane(createContent());
    }

    /**
     * Returns the result of the wizard sequence.
     *
     * @return the result.
     */
    public Object getResult() {
        return this.result;
    }

    /**
     * Returns the total number of steps in the wizard sequence, if this number is known.  Otherwise
     * this method returns zero.  Subclasses should override this method unless the number of steps
     * is not known.
     *
     * @return the number of steps.
     */
    public int getStepCount() {
        return 0;
    }

    /**
     * Returns true if it is possible to back up to the previous panel, and false otherwise.
     *
     * @return boolean.
     */
    public boolean canDoPreviousPanel() {
        return (step > 0);
    }

    /**
     * Returns true if there is a 'next' panel, and false otherwise.
     *
     * @return boolean.
     */
    public boolean canDoNextPanel() {
        return currentPanel.hasNextPanel();
    }

    /**
     * Returns true if it is possible to finish the sequence at this point (possibly with defaults
     * for the remaining entries).
     *
     * @return boolean.
     */
    public boolean canFinish() {
        return currentPanel.canFinish();
    }

    /**
     * Returns the panel for the specified step (steps are numbered from zero).
     *
     * @param step  the current step.
     *
     * @return the panel.
     */
    public WizardPanel getWizardPanel(int step) {
        if (step < panels.size()) {
            return (WizardPanel) panels.get(step);
        }
        else {
            return null;
        }
    }

    /**
     * Handles events.
     *
     * @param event  the event.
     */
    public void actionPerformed(ActionEvent event) {
        String command = event.getActionCommand();
        if (command.equals("nextButton")) {
            next();
        }
        else if (command.equals("previousButton")) {
            previous();
        }
        else if (command.equals("finishButton")) {
            finish();
        }
    }

    /**
     * Handles a click on the "previous" button, by displaying the previous panel in the sequence.
     */
    public void previous() {
        if (step > 0) {
            WizardPanel previousPanel = getWizardPanel(step - 1);
            // tell the panel that we are returning
            previousPanel.returnFromLaterStep();
            Container content = getContentPane();
            content.remove(currentPanel);
            content.add(previousPanel);
            step = step - 1;
            currentPanel = previousPanel;
            setTitle("Step " + (step + 1));
            enableButtons();
            pack();
        }
    }

    /**
     * Displays the next step in the wizard sequence.
     */
    public void next() {

        WizardPanel nextPanel = getWizardPanel(step + 1);
        if (nextPanel != null) {
            if (!currentPanel.canRedisplayNextPanel()) {
                nextPanel = currentPanel.getNextPanel();
            }
        }
        else {
            nextPanel = currentPanel.getNextPanel();
        }

        step = step + 1;
        if (step < panels.size()) {
            panels.set(step, nextPanel);
        }
        else {
            panels.add(nextPanel);
        }

        Container content = getContentPane();
        content.remove(currentPanel);
        content.add(nextPanel);

        currentPanel = nextPanel;
        setTitle("Step " + (step + 1));
        enableButtons();
        pack();

    }

    /**
     * Finishes the wizard.
     */
    public void finish() {
        this.result = currentPanel.getResult();
        hide();
    }

    /**
     * Enables/disables the buttons according to the current step.  A good idea would be to ask the
     * panels to return the status...
     */
    private void enableButtons() {
        previousButton.setEnabled(step > 0);
        nextButton.setEnabled(canDoNextPanel());
        finishButton.setEnabled(canFinish());
        helpButton.setEnabled(false);
    }

    /**
     * Was the wizard cancelled?
     *
     * @return false.
     */
    public boolean isCancelled() {
        return false;
    }

    /**
     * Creates a panel containing the user interface for the dialog.
     *
     * @return the panel.
     */
    public JPanel createContent() {

        JPanel content = new JPanel(new BorderLayout());
        content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
        content.add((JPanel) panels.get(0));
        L1R3ButtonPanel buttons = new L1R3ButtonPanel("Help", "Previous", "Next", "Finish");

        helpButton = buttons.getLeftButton();
        helpButton.setEnabled(false);

        previousButton = buttons.getRightButton1();
        previousButton.setActionCommand("previousButton");
        previousButton.addActionListener(this);
        previousButton.setEnabled(false);

        nextButton = buttons.getRightButton2();
        nextButton.setActionCommand("nextButton");
        nextButton.addActionListener(this);
        nextButton.setEnabled(true);

        finishButton = buttons.getRightButton3();
        finishButton.setActionCommand("finishButton");
        finishButton.addActionListener(this);
        finishButton.setEnabled(false);

        buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0));
        content.add(buttons, BorderLayout.SOUTH);

        return content;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区中文字幕| 午夜精品久久久久久久99樱桃| 欧美视频一区二区三区在线观看| 成人动漫在线一区| 91精品在线麻豆| 欧美丰满嫩嫩电影| 91精品国产综合久久香蕉的特点| 欧美日韩激情在线| 日韩一区二区高清| 欧美mv日韩mv国产网站app| 精品国产免费一区二区三区香蕉| 日韩午夜在线观看| 久久无码av三级| 国产精品成人免费在线| 亚洲精品国产无天堂网2021| 亚洲成av人片一区二区三区| 视频一区在线播放| 国产精一区二区三区| 丁香六月综合激情| 欧日韩精品视频| 日韩手机在线导航| 国产精品嫩草久久久久| 一区二区三区在线高清| 日韩精品五月天| 丁香婷婷综合五月| 欧美日韩一级二级| 欧美成人乱码一区二区三区| 中文av字幕一区| 亚洲成人在线观看视频| 精品无人码麻豆乱码1区2区| aaa国产一区| 在线不卡免费欧美| 亚洲欧美影音先锋| 蜜桃精品视频在线| 99精品热视频| 日韩欧美国产电影| 亚洲国产精品欧美一二99| 国产一区二区福利| 91精品视频网| 亚洲男人的天堂av| 国产一区二区在线免费观看| 欧美在线你懂的| 日日嗨av一区二区三区四区| 精品亚洲国内自在自线福利| 在线免费观看不卡av| 久久色视频免费观看| 亚洲v精品v日韩v欧美v专区| 成人av在线资源| 日韩女同互慰一区二区| 亚洲一二三四在线观看| 国产精品夜夜爽| 91精品国产色综合久久ai换脸| 日本一区二区成人在线| 激情都市一区二区| 欧美日韩激情一区| 夜夜嗨av一区二区三区中文字幕 | 国产视频一区在线观看| 亚洲成在人线免费| 91啪九色porn原创视频在线观看| 久久久影院官网| 精品午夜久久福利影院| 欧美一级欧美一级在线播放| 亚洲国产成人精品视频| 91精品福利在线| 亚洲天堂精品视频| 99久久国产综合色|国产精品| 国产欧美精品一区二区三区四区| 成人美女视频在线观看18| 日韩你懂的在线观看| 青青草97国产精品免费观看 | 久久综合久久综合久久综合| 亚洲成人免费看| 欧美日韩的一区二区| 午夜电影一区二区三区| 欧美调教femdomvk| 亚洲第一搞黄网站| 91精品黄色片免费大全| 美美哒免费高清在线观看视频一区二区 | 天堂影院一区二区| 欧美日韩www| 青青草91视频| 日韩欧美在线123| 国产剧情一区在线| 亚洲国产成人在线| 一本色道久久综合精品竹菊| 亚洲一区二区三区视频在线| 欧美日韩精品欧美日韩精品一| 午夜久久久久久久久| 日韩一区二区三区在线| 国产一区二区三区不卡在线观看 | 免费人成在线不卡| 精品国产凹凸成av人导航| 国产成人日日夜夜| 亚洲欧美电影院| 在线成人免费视频| 国产一区二区0| 亚洲精品国产无套在线观 | 蜜臀精品一区二区三区在线观看 | 国产精品美女视频| 精品视频123区在线观看| 麻豆成人免费电影| 亚洲人妖av一区二区| 欧美日本一道本在线视频| 久久国产夜色精品鲁鲁99| 久久久国产精品午夜一区ai换脸| 成人av资源在线观看| 日韩国产欧美在线观看| 国产日产欧美一区| 欧美日本精品一区二区三区| 国产精品一区二区久久不卡| 一区二区三区四区不卡在线| 欧美一区二区日韩一区二区| 午夜欧美电影在线观看| 99视频在线精品| 精品国产91久久久久久久妲己| 久久99深爱久久99精品| 亚洲欧美视频一区| 精品国产百合女同互慰| 在线亚洲免费视频| 国产+成+人+亚洲欧洲自线| 日韩和欧美一区二区三区| 精品一区中文字幕| 在线不卡免费欧美| 日韩午夜小视频| 日韩高清一级片| 久久久久久97三级| 欧美丰满少妇xxxxx高潮对白| 99久久精品国产精品久久| 国产一区二区看久久| 日日骚欧美日韩| 一区二区三区四区高清精品免费观看 | 91久久精品一区二区二区| 色久综合一二码| 91精品国产全国免费观看| 精品1区2区在线观看| 国产精品国产自产拍在线| 亚洲一二三四区不卡| 久久精品99国产精品| 国产成人福利片| 在线视频欧美区| 欧美一区二区久久久| 国产亲近乱来精品视频| 亚洲黄色免费电影| 免费欧美在线视频| 成人综合在线观看| 欧美日韩中文字幕一区二区| 欧美电影免费观看高清完整版| 国产精品久久久久7777按摩| 久久久久久久久久久久久久久99 | 日韩精品一区二区在线观看| 久久久欧美精品sm网站| 国产精品国产成人国产三级| 午夜视频在线观看一区二区| 国产一区91精品张津瑜| 色综合色综合色综合| 日韩免费成人网| 亚洲精品中文在线观看| 韩国三级电影一区二区| 在线视频综合导航| 亚洲国产精华液网站w| 日韩中文欧美在线| 色综合久久99| 久久久久亚洲蜜桃| 天天综合色天天综合| 成人高清伦理免费影院在线观看| 欧美一区二区三区日韩| 亚洲柠檬福利资源导航| 国产精品996| 6080午夜不卡| 一区二区久久久| 国产suv一区二区三区88区| 欧美一区二区在线看| 亚洲欧美另类综合偷拍| 国产电影一区二区三区| 制服.丝袜.亚洲.另类.中文| 亚洲欧美另类久久久精品2019| 91亚洲永久精品| 中文字幕在线观看不卡视频| 开心九九激情九九欧美日韩精美视频电影 | 一本久久综合亚洲鲁鲁五月天| 久久精品理论片| 国内精品自线一区二区三区视频| 视频一区二区三区在线| 蜜乳av一区二区| 日本道精品一区二区三区| 国产aⅴ精品一区二区三区色成熟| 成人免费视频app| 欧美日本免费一区二区三区| www.欧美亚洲| 国产欧美日本一区视频| 国内不卡的二区三区中文字幕 | 国产欧美日韩精品a在线观看| 美日韩一区二区| 欧美精品第1页| 午夜精品久久久久久久久久久| 欧美写真视频网站| 亚洲h动漫在线| 8x8x8国产精品| 福利一区在线观看| 久久综合久久99|