Package org.beryl.gui.widgets

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


    }
  }

  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

    }
  }
 
 
  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

    descriptionLabel.setText(page.getDescription() != null ? page.getDescription() : "");
    layout.show(componentPanel, page.getName());
  }

  public void updateButtons() {
    WizardPage page = (WizardPage) pages.get(currentPage);
    WizardPageAdapter wpAdapter = page.getAdapter();

    if (page != null) {
      if (wpAdapter != null)
        nextButton.setEnabled(wpAdapter.isPageReady(page));
      else
View Full Code Here

TOP

Related Classes of org.beryl.gui.widgets.WizardPage

Copyright © 2018 www.massapicom. 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.