<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解決方案開發(fā)商

    使用JComponentPack產(chǎn)品中的JWizardPane向?qū)Э蚣?/a>

    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)  編輯  收藏


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


    網(wǎng)站導航:
     
    <2009年2月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    1234567

    導航

    統(tǒng)計

    公告

    JComponentPack 3.0正式發(fā)布 功能介紹

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

    試用版下載(點擊下載

    常用鏈接

    留言簿(1)

    隨筆檔案

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 成人免费区一区二区三区 | 亚洲中文字幕伊人久久无码| 午夜在线免费视频 | 亚洲国产精彩中文乱码AV| 精品久久8x国产免费观看| 黄色a三级免费看| 久久精品国产亚洲AV麻豆网站| 最近免费中文字幕大全视频| 精品多毛少妇人妻AV免费久久| 亚洲av片不卡无码久久| 亚洲区不卡顿区在线观看| 131美女爱做免费毛片| fc2免费人成在线| 久久夜色精品国产噜噜亚洲a| 久久精品亚洲男人的天堂| 免费看污成人午夜网站| 亚洲一级片免费看| 涩涩色中文综合亚洲| 亚洲AV中文无码字幕色三| 国产免费观看黄AV片| 最近中文字幕电影大全免费版| 免费人成大片在线观看播放| 亚洲第一成年人网站| 国产aⅴ无码专区亚洲av麻豆| 国产精品美女午夜爽爽爽免费| 99精品视频在线观看免费| 亚洲美国产亚洲AV| 4480yy私人影院亚洲| 亚洲午夜久久久久久久久久| 日韩视频在线免费观看| 182tv免费视视频线路一二三| 三上悠亚在线观看免费| 免费国产污网站在线观看不要卡| 亚洲国产片在线观看| 亚洲AV无码一区二区二三区入口 | 无码国模国产在线观看免费| 亚洲毛片免费视频| 十八禁无码免费网站| 国内精品久久久久影院免费| 色一情一乱一伦一视频免费看| 亚洲欧好州第一的日产suv|