支持HW团队,就支付宝领取下面的红包吧!(2018年3月31前,就几毛,也会几块,可以和其他红包叠加使用),你领取消费,HW有奖励。红包使用无条件限制,有条件请注意是不是有病毒。

小伙伴们,给大家发红包喽!人人可领,领完就能用。祝大家领取的红包金额大大大!#吱口令#长按复制此消息,打开支付宝就能领取!er1OEj73Uj

登入 注册 | 验证
| 搜索

博主:初学MPEG

初学MPEG 本博客-采用Python的web框架Django与Mysql数据库,致力于对Python、Django的了解 与研究
Django技术QQ群:XXXXXXX
Python技术QQ群:XXXXXXX

分类

关键字

本站最新博文

友情链接  

【原翻】org.eclipse.jface.wizard.Wizard

类别:eclipse 状态:游客可见,可回,会员可关联(没审核) 阅读:6280 评论:0 时间:二月 18, 2015, 10:32 a.m.
关键字:wizard

 来源:http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fjface%2Fwizard%2FIWizard.html

public abstract class Wizard(虚类,还需要子类实现一些方法,c++的理解)
extends Object
implements IWizard

An abstract base implementation of a wizard. 实现向导功能的一个抽象基类。A typical client subclasses Wizard to implement a particular wizard.一个实现特定向导的客户端向导子类。

Subclasses may call the following methods to configure the wizard:子类可以调用下面的方法来配置向导:

  • addPage
  • setHelpAvailable
  • setDefaultPageImageDescriptor
  • setDialogSettings
  • setNeedsProgressMonitor
  • setTitleBarColor
  • setWindowTitle

 

Subclasses may override these methods if required:如果需要,子类可以重写这些方法:

  • reimplement createPageControls
  • reimplement performCancel
  • extend addPages
  • reimplement performFinish
  • extend dispose

 

Note that clients are free to implement IWizard from scratch instead of subclassing Wizard. 注意,客户可以从头开始自由实现IWizard,而不用子类向导。Correct implementations of IWizard will work with any correct implementation of IWizardPage.

 

 


Field Summary字段概述
static String DEFAULT_IMAGE 
          Image registry key of the default image for wizard pages (value"org.eclipse.jface.wizard.Wizard.pageImage").

 

Constructor Summary构造概述
protected Wizard() 
          Creates a new empty wizard.

 

Method Summary方法概述
 void addPage(IWizardPage page) 
          Adds a new page to this wizard.
 void addPages() 
          The Wizard implementation of this IWizard method does nothing.意译:子类要实现这个方法,循环调用addPage,本类什么都没做。
 boolean canFinish() 
          Returns whether this wizard could be finished without further user interaction.
 void createPageControls(Composite pageContainer) 
          The Wizard implementation of this IWizard method creates all the pages controls usingIDialogPage.createControl.
 void dispose() 
          The Wizard implementation of this IWizard method disposes all the pages controls usingDialogPage.dispose.
 IWizardContainer getContainer() 
          Returns the container of this wizard.
 Image getDefaultPageImage() 
          Returns the default page image for this wizard.
 IDialogSettings getDialogSettings() 
          Returns the dialog settings for this wizard.
 IWizardPage getNextPage(IWizardPage page) 
          Returns the successor of the given page.
 IWizardPage getPage(String name) 
          Returns the wizard page with the given name belonging to this wizard.
 int getPageCount() 
          Returns the number of pages in this wizard.
 IWizardPage[] getPages() 
          Returns all the pages in this wizard.
 IWizardPage getPreviousPage(IWizardPage page) 
          Returns the predecessor of the given page.
 Shell getShell() 
          Returns the wizard's shell if the wizard is visible.
 IWizardPage getStartingPage() 
          Returns the first page to be shown in this wizard.
 RGB getTitleBarColor() 
          Returns the title bar color for this wizard.
 String getWindowTitle() 
          Returns the window title string for this wizard.
 boolean isHelpAvailable() 
          Returns whether help is available for this wizard.
 boolean needsPreviousAndNextButtons() 
          Returns whether this wizard needs Previous and Next buttons.
 boolean needsProgressMonitor() 
          Returns whether this wizard needs a progress monitor.
 boolean performCancel() 
          The Wizard implementation of this IWizard method does nothing and returns true.
abstract  boolean performFinish() 
          Subclasses must implement this IWizard method to perform any special finish processing for their wizard.
 void setContainer(IWizardContainer wizardContainer) 
          Sets or clears the container of this wizard.
 void setDefaultPageImageDescriptor(ImageDescriptor imageDescriptor) 
          Sets the default page image descriptor for this wizard.
 void setDialogSettings(IDialogSettings settings) 
          Sets the dialog settings for this wizard.
 void setForcePreviousAndNextButtons(boolean b) 
          Controls whether the wizard needs Previous and Next buttons even if it currently contains only one page.
 void setHelpAvailable(boolean b) 
          Sets whether help is available for this wizard.
 void setNeedsProgressMonitor(boolean b) 
          Sets whether this wizard needs a progress monitor.
 void setTitleBarColor(RGB color) 
          Sets the title bar color for this wizard.
 void setWindowTitle(String newTitle) 
          Sets the window title for the container that hosts this page to the given string.

 

相关博文 首页 上页 1 2 3 4 5 6 下页 尾页 共6条
操作:

Please Login (or Sign Up) to leave a comment