コード例 #1
0
 @Nonnull
 static WizardFlow newFirstTimeWizardFlow() {
   final List<WizardStep> wizardSteps = new ArrayList<WizardStep>();
   for (WizardStep wizardStep : CalculatorWizardStep.values()) {
     if (wizardStep.isVisible()) {
       wizardSteps.add(wizardStep);
     }
   }
   return new ListWizardFlow(wizardSteps);
 }
コード例 #2
0
 @Nonnull
 static WizardFlow newDefaultWizardFlow() {
   final List<WizardStep> wizardSteps = new ArrayList<WizardStep>();
   for (WizardStep wizardStep : CalculatorWizardStep.values()) {
     if (wizardStep != welcome && wizardStep != last && wizardStep.isVisible()) {
       wizardSteps.add(wizardStep);
     }
   }
   return new ListWizardFlow(wizardSteps);
 }