Examples of WizardPage


Examples of com.eviware.x.form.WizardPage

  private boolean showPage( int pageNo )
  {
    currentPage = pageNo;
    String pageName = pageNames.get( currentPage );
    WizardPage page = controllers.get( pageName );

    descriptionPanel.setTitle( page.getName() );
    descriptionPanel.setDescription( page.getDescription() );
    cardLayout.show( pages, pageName );

    if( initPage( pageName, page ) )
    {
      actions.update();
View Full Code Here

Examples of com.eviware.x.form.WizardPage

  }

  private boolean runCurrentPage()
  {
    String pageName = pageNames.get( currentPage );
    WizardPage controller = controllers.get( pageName );
    try
    {
      dialog.setCursor( Cursor.getPredefinedCursor( Cursor.WAIT_CURSOR ) );
      return controller.run();
    }
    catch( Exception e )
    {
      dialog.setCursor( Cursor.getDefaultCursor() );
      SoapUI.logError( e );
View Full Code Here

Examples of com.eviware.x.form.WizardPage

    {
      boolean enable = false;
      if( currentPage > 0 )
      {
        String pageName = pageNames.get( currentPage - 1 );
        WizardPage prevPage = controllers.get( pageName );
        enable = prevPage.canGoBack();
      }
      setEnabled( enable );
    }
View Full Code Here

Examples of com.eviware.x.form.WizardPage

    }

    private boolean showPage(int pageNo) {
        currentPage = pageNo;
        String pageName = pageNames.get(currentPage);
        WizardPage page = controllers.get(pageName);

        descriptionPanel.setTitle(page.getName());
        descriptionPanel.setDescription(page.getDescription());
        cardLayout.show(pages, pageName);

        if (initPage(pageName, page)) {
            actions.update();
            return true;
View Full Code Here

Examples of com.eviware.x.form.WizardPage

        }
    }

    private boolean runCurrentPage() {
        String pageName = pageNames.get(currentPage);
        WizardPage controller = controllers.get(pageName);
        try {
            dialog.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            return controller.run();
        } catch (Exception e) {
            dialog.setCursor(Cursor.getDefaultCursor());
            SoapUI.logError(e);
            UISupport.showInfoMessage(pageName + " failed", this.name);
            return false;
View Full Code Here

Examples of com.eviware.x.form.WizardPage

        public void update() {
            boolean enable = false;
            if (currentPage > 0) {
                String pageName = pageNames.get(currentPage - 1);
                WizardPage prevPage = controllers.get(pageName);
                enable = prevPage.canGoBack();
            }
            setEnabled(enable);
        }
View Full Code Here

Examples of edu.stanford.smi.protege.util.WizardPage

    public boolean canCreateProject(KnowledgeBaseFactory factory, boolean useExistingSources) {
        return factory.getClass().getName().contains(".owl.") && useExistingSources;
    }

    public WizardPage createCreateProjectWizardPage(CreateProjectWizard wizard, boolean useExistingSources) {
        WizardPage page = null;
        if (useExistingSources) {
            page = new ClamlFilesWizardPage(wizard, this);
        }
        return page;
    }
View Full Code Here

Examples of org.beryl.gui.widgets.WizardPage

    updatePanel();
  }

  private void back() {
    if (currentPage > 0) {
      WizardPage current = null;
      do {
        current = (WizardPage) pages.get(--currentPage);
      } while (!current.isEnabled());
      if (current.getAdapter() != null)
        current.getAdapter().preparePage(current);
      updateButtons();
      updatePanel();
    }
  }
View Full Code Here

Examples of org.beryl.gui.widgets.WizardPage

    }
  }

  private void next() {
    if (currentPage < totalPages - 1) {
      WizardPage current = (WizardPage) pages.get(currentPage);
      WizardPageAdapter wpAdapter = current.getAdapter();
      if (wpAdapter != null)
        wpAdapter.preparePage(current);
      if (wpAdapter == null || wpAdapter.finalizePage(current)) {
        do {
          current = (WizardPage) pages.get(++currentPage);
        } while (!current.isEnabled());
        if (current.getAdapter() != null)
          current.getAdapter().preparePage(current);
        updateButtons();
        updatePanel();
      }
    } else {
      WizardPage current = (WizardPage) pages.get(currentPage);
      WizardPageAdapter wpAdapter = current.getAdapter();
      if (wpAdapter == null || wpAdapter.finalizePage(current)) {
        fireFinish();
      }
    }
  }
View Full Code Here

Examples of org.beryl.gui.widgets.WizardPage

    }
  }
 
 
  private void updatePanel() {
    WizardPage page = (WizardPage) pages.get(currentPage);
    titleLabel.setText(page.getTitle() != null ? page.getTitle() : "");
    descriptionLabel.setText(page.getDescription() != null ? page.getDescription() : "");
    layout.show(componentPanel, page.getName());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.