Esempio n. 1
0
  protected void processPrev() {
    WizardPanel panel = parent.getCurrentWizardPanel();
    Wizard wizard = parent.getWizard();
    MergeMap settings = parent.getSettings();

    WizardPanelNavResult proceed = WizardPanelNavResult.PROCEED;
    if (panel != null) {
      String currentStep = parent.getCurrentStep();
      proceed = panel.allowBack(currentStep, settings, wizard);
      if (proceed.isDeferredComputation()) {
        deferredStatus = NAME_PREV;
        parent.handleDeferredWizardResult(proceed, false);
        return;
      }
    }

    processPrevProceed(proceed);
  }
Esempio n. 2
0
  protected void processFinish(ActionEvent event) {
    WizardPanel panel = parent.getCurrentWizardPanel();
    Wizard wizard = parent.getWizard();
    MergeMap settings = parent.getSettings();

    WizardPanelNavResult proceed = WizardPanelNavResult.PROCEED;
    if (panel != null) {
      String currentStep = parent.getCurrentStep();
      proceed = panel.allowFinish(currentStep, settings, wizard);
      if (proceed.isDeferredComputation()) {
        deferredStatus = NAME_FINISH;
        parent.handleDeferredWizardResult((DeferredWizardResult) proceed, false);
        return;
      }
    }

    processFinishProceed(proceed);
  }
Esempio n. 3
0
  protected void processNext() {
    WizardPanel panel = parent.getCurrentWizardPanel();
    Wizard wizard = parent.getWizard();
    MergeMap settings = parent.getSettings();

    WizardPanelNavResult proceed = WizardPanelNavResult.PROCEED;
    if (panel != null) {
      String currentStep = parent.getCurrentStep();
      proceed = panel.allowNext(currentStep, settings, wizard);
      if (proceed.isDeferredComputation()) {
        deferredStatus = NAME_NEXT;
        configureNavigationButtons(wizard, prev, next, finish);
        parent.handleDeferredWizardResult(proceed, false);
        return;
      }
    }

    processNextProceed(proceed);
  }