WIZARD 内容

[color=darkblue]Wizard has 3 layers.[/color]

The first layer.
IDialogPage:is the base interface for the pages in any multipage dialog. The interface privider mehtods to configure all the attributes for a given page, such as its title, a desc,or an image. The most inporttant method is createControl().

IWizardPage: it extends IDialogPage, it defines getName,getNextPage,getPreviousPage,isPageComplete,canFlipTONExtpage.

WizardPage:it is abstract. It implements IWizardPage interface and provides mush of the basic logic for a page. You only need implement createControl mehtod.


The second layer.
IWizard:it is a interface ,it has quite a few methods, most of which are straightforward accessors for configuiration options.

Wizard:it implements IWizard.
e.g . We can do this

public class ProjectWizard extends Wizard{
..........
public void addPages(){
addPage(new WizardPage(..){..});
}
........
public boolean performFinish(){
WizardPage wp=(WizardPage)getPage(strPageName);
.......
return true;
}
}



The third layer.......wizard container.
WizardDialog: it implements IWizardContainer and IRunnableContext,and extends TitleAreaDialog.Client can provide their own implementations of IWizardContainer, but WizardDialog will be sufficient for most needs.
e.g.

public class WizardDialogDemo{
public static void main(String[]args){
WizardDialog wd=new WizardDialog(shell,wizard);
wd.create();
wd.open;
}
}



[color=darkblue]Persistent wizard data[/color]

DialogSettings: it provides an implementation of the IDialogSettings interface using hash table and backed by an XML file.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值