protected void navToNextPage() { final WizardPage currentPage = getCurrentPage(); if (hasNextPage() && currentPage != null) { final WizardPage nextPage = currentPage.getNextPage(); if (nextPage != null) navTo(nextPage, true); } }
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); }
protected boolean hasNextPage() { final WizardPage currentPage = getCurrentPage(); if (currentPage == null) return false; return currentPage.getNextPage() != null; }