<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    學用Java

    奇新Java控件---Java控件提供商和Java RIA, Web, J2ME解決方案開發商

    使用JComponentPack產品中的JWizardPane向導框架

    Use JWizardPane in JComponentPack


    JWizardPane is a Java wizard component in JComponentPack.

    JWizardPane usage:

    Sample code
    JWizardPane wizardPane = new JWizardPane();
    //wizardPane.setLogoIcon(logoIcon);
    //wizardPane.setLogoText(logoText);
    //wizardPane.getControlButton(JWizardPane.FINISH_CONTROL).setVisible(false);
    //wizardPane.getControlButton(JWizardPane.HELP_CONTROL).setVisible(false);
    JPanel firstPage = new JPanel(); // firstPage: the page you want to show first.
    JPanel secondPage = new JPanel();
    JPanel thirdPage = new JPanel();
    JPanel endPage = new JPanel();
    wizardPane.addPage(firstPage);
    wizardPane.addPage(secondPage);
    wizardPane.addPage(thirdPage);
    wizardPane.addPage(endPage);
    wizardPane.showFrame(“title”);

    If you want to do some operations on one page, you could implement WizardPage interface, its methods will be called automatic when click the Next and Finish button.
    The WizardPage interface have two methods:

    beforeAction(JWizardPane wizardPane, WizardAction arg0)
    afterAction(JWizardPane wizardPane, WizardAction arg0)
    Here is an example to implement beforeAction method.
    @Override
    public void beforeAction(JWizardPane wizardPane, WizardAction arg0) throws ActionVetoException
    {
        if (arg0 == WizardAction.NEXT || arg0 == WizardAction.FINISH) {
            //write the code you want to do.
        }
    }
    Also you could implement other operations use WizardListener, for more information, please see WizardListener in the JComponentPack.

    You could obtain the Button in the wizard panel use the method getControlButton(int buttonType), parameter must be the following value.

    JWizardPane.BACK_CONTROL,  for back button
    JWizardPane.NEXT_CONTROL,  for next button
    JWizardPane.FINISH_CONTROL,  for finish button
    JWizardPane.HELP_CONTROL,   for help button
    JWizardPane.CANCEL_CONTROL,  for cancel button.

    It have two way to show.one is showDialog,the other is showFrame.
    showDialog(Component parent)
    Pops up a dialog contains the JWizardPane and parented to parent with the dialog having a default title.
    showDialog(Component parent, String title)
    Pops up a dialog contains the JWizardPane and parented to parent with the dialog use the special title.
    showFrame()
    Pops up a frame contains the JWizardPane with the frame having a default title
    showFrame(String title)
    Pops up a frame contains the JWizardPane and with the frame use the special title.
    If you want to pause the wizard page at current page, just throw a ActionVetoException is ok.
    throw new ActionVetoException();
    It also provide other functions, For more information, please see JWizardPane .


    posted on 2009-02-20 18:20 fralepg 閱讀(283) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    <2009年2月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    1234567

    導航

    統計

    公告

    JComponentPack 3.0正式發布 功能介紹

    JComponentPack 是一個基于Java SwingGUI類庫,一系列可視化的JavaBeans集合,它基于SwingMVC架構,是100%的純Java類庫,它包括20多個Swing 所沒有的控件

    試用版下載(點擊下載

    常用鏈接

    留言簿(1)

    隨筆檔案

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 无码一区二区三区免费视频| 亚洲视频在线免费| 亚洲av色福利天堂| 国产AV无码专区亚洲AV男同| 亚洲国产精久久久久久久| 亚洲视频日韩视频| 亚洲精品无AMM毛片| 人与动性xxxxx免费| 久久香蕉国产线看免费| 两性刺激生活片免费视频| 国产yw855.c免费视频| 久久亚洲2019中文字幕| 亚洲视频一区二区三区| 99久久久国产精品免费牛牛| 日韩高清免费在线观看| 亚洲成AV人片在线观看无 | 国产精品亚洲色婷婷99久久精品| 人妻巨大乳hd免费看| 青青草原亚洲视频| 久久亚洲欧美国产精品| 2019中文字幕在线电影免费 | 日韩精品无码免费专区午夜| 一区二区无码免费视频网站| 激情97综合亚洲色婷婷五| 日本一道本不卡免费| 亚洲午夜国产精品无卡| 国产va免费精品| 91亚洲一区二区在线观看不卡 | 亚洲娇小性xxxx色| 丰满人妻一区二区三区免费视频| 白白国产永久免费视频| 亚洲福利视频一区二区三区| 99久久国产精品免费一区二区 | 激情综合亚洲色婷婷五月| 久久久久国产精品免费免费不卡| 亚洲国产综合精品中文字幕 | 亚洲国产a∨无码中文777| 国色精品卡一卡2卡3卡4卡免费| 黄色片网站在线免费观看| 大学生美女毛片免费视频| 亚洲国产精品综合久久20|