Beispiel #1
0
 protected void navToNextPage() {
   final WizardPage currentPage = getCurrentPage();
   if (hasNextPage() && currentPage != null) {
     final WizardPage nextPage = currentPage.getNextPage();
     if (nextPage != null) navTo(nextPage, true);
   }
 }
Beispiel #2
0
  protected void updateCanFinish() {
    boolean canFinish = true;

    for (WizardPage wizardPage : history) {
      if (!wizardPage.completeProperty().getValue()) canFinish = false;
    }

    WizardPage wizardPage = getCurrentPage();
    while (wizardPage != null) {
      if (!wizardPage.completeProperty().getValue()) canFinish = false;

      wizardPage = wizardPage.getNextPage();
    }

    this.canFinish.set(canFinish);
  }
Beispiel #3
0
  protected boolean hasNextPage() {
    final WizardPage currentPage = getCurrentPage();
    if (currentPage == null) return false;

    return currentPage.getNextPage() != null;
  }