Package org.jboss.forge.addon.ui.wizard

Examples of org.jboss.forge.addon.ui.wizard.UIWizard


   {
      Set<ExportedInstance<UIWizard>> wizards = registry.getExportedInstances(UIWizard.class);
      Assert.assertFalse(wizards.isEmpty());
      ExportedInstance<UIWizard> instance = wizards.iterator().next();
      Assert.assertNotNull(instance);
      UIWizard uiWizard = instance.get();
      Assert.assertNotNull(uiWizard);
   }
View Full Code Here


         }
      }
      // All good. Hit it !
      for (UIBuilderImpl builder : pages)
      {
         UIWizard wizard = builder.getWizard();
         Result result = wizard.execute(context);
         if (listener != null)
         {
            listener.wizardExecuted(wizard, result);
         }
      }
View Full Code Here

      InputComponents.setValueFor(getConverterFactory(), (InputComponent<?, Object>) input, value);
   }

   private List<String> getValidationErrors(UIBuilderImpl builder)
   {
      UIWizard currentWizard = builder.getWizard();
      UIValidationContextImpl validationContext = new UIValidationContextImpl(context);
      currentWizard.validate(validationContext);
      return validationContext.getErrors();
   }
View Full Code Here

         }
      }
      // All good. Hit it !
      for (UIBuilderImpl builder : pages)
      {
         UIWizard wizard = builder.getWizard();
         Result result = wizard.execute(context);
         if (listener != null)
         {
            listener.wizardExecuted(wizard, result);
         }
      }
View Full Code Here

      InputComponents.setValueFor(getConverterFactory(), (InputComponent<?, Object>) input, value);
   }

   private List<String> getValidationErrors(UIBuilderImpl builder)
   {
      UIWizard currentWizard = builder.getWizard();
      UIValidationContextImpl validationContext = new UIValidationContextImpl(context);
      currentWizard.validate(validationContext);
      return validationContext.getErrors();
   }
View Full Code Here

   }

   @Override
   public CommandLineParser getParser(ShellContext shellContext, String completeLine) throws Exception
   {
      UIWizard command = getSourceCommand();
      return populate(command, command, shellContext, completeLine);
   }
View Full Code Here

   }

   @Override
   public void populateInputs(String line, boolean lenient) throws CommandLineParserException
   {
      UIWizard command = getSourceCommand();
      try
      {
         fullCommandLineParser = populate(command, command, line, true);
         if (!lenient)
         {
View Full Code Here

               CommandLineUtil.populateUIInputs(cl, currentCommand.getContext(), registry);
               currentCommand.getContext().setConsoleOutput(output);

               // so now the options are parsed and added to the uicontext of that command
               // try to get next command in the wizard
               UIWizard wizard = (UIWizard) wizardSteps.get(0).getCommand();
               NavigationResult navResult = wizard.next(wizardSteps.get(0).getContext());
               // we have another step, lets add it to the list
               // this will be processed next
               if (navResult != null)
               {
                  Object cmd = navResult.getNext();
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.ui.wizard.UIWizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.