コード例 #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);
  }
コード例 #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);
  }
コード例 #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);
  }