コード例 #1
0
  /**
   * Returns the set of pages contained in this wizard.
   *
   * @return Iterator
   */
  public Iterator<WizardPage> getPages() {
    java.util.List<WizardPage> pages = new ArrayList<WizardPage>();
    firstWizardPage = new FirstWizardPage(registration, getWizardContainer());

    pages.add(firstWizardPage);

    return pages.iterator();
  }
コード例 #2
0
  /**
   * Returns the set of pages contained in this wizard.
   *
   * @return Iterator
   */
  public Iterator<WizardPage> getPages() {
    java.util.List<WizardPage> pages = new ArrayList<WizardPage>();
    firstWizardPage = new FirstWizardPage(this);

    pages.add(firstWizardPage);

    return pages.iterator();
  }
コード例 #3
0
  /**
   * Returns the set of pages contained in this wizard.
   *
   * @param registration the registration object
   * @return Iterator
   */
  public Iterator<WizardPage> getPages(JabberAccountRegistration registration) {
    java.util.List<WizardPage> pages = new ArrayList<WizardPage>();

    // create new registration, our container needs the pages
    // this means this is a new wizard and we must reset all data
    // it will be invoked and when the wizard cleans and unregister
    // our pages, but this fix don't hurt in this situation.
    this.registration = registration;

    if (firstWizardPage == null) firstWizardPage = new FirstWizardPage(this);

    pages.add(firstWizardPage);

    return pages.iterator();
  }