Package org.jboss.forge.addon.ui

Examples of org.jboss.forge.addon.ui.UICommand


   }

   @Override
   public List<String> getValidationErrors()
   {
      UICommand currentCommand = builder.getCommand();
      UIValidationContextImpl validationContext = new UIValidationContextImpl(context);
      currentCommand.validate(validationContext);
      return validationContext.getErrors();
   }
View Full Code Here


      if (!errors.isEmpty())
      {
         throw new IllegalStateException(errors.toString());
      }
      // All good. Hit it !
      UICommand comand = builder.getCommand();
      Result result = comand.execute(context);
      if (listener != null)
      {
         listener.commandExecuted(comand, result);
      }
   }
View Full Code Here

            {
               successor = null;
            }
            if (successor != null)
            {
               UICommand step = commandManager.lookup(successor);
               // Retain only the populated values
               inputs.keySet().retainAll(populatedInputs.keySet());
               parser = populate(root, step, shellContext, line);
            }
         }
View Full Code Here

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

      return currentBuilder.getComponentNamed(property);
   }

   private List<String> getValidationErrors(UIBuilderImpl builder)
   {
      UICommand currentWizard = builder.getCommand();
      UIValidationContextImpl validationContext = new UIValidationContextImpl(context);

      for (InputComponent<?, ?> input : builder.getInputs())
      {
         input.validate(validationContext);
      }

      currentWizard.validate(validationContext);
      return validationContext.getErrors();
   }
View Full Code Here

   }

   @Override
   public List<String> getValidationErrors()
   {
      UICommand currentCommand = builder.getCommand();
      UIValidationContextImpl validationContext = new UIValidationContextImpl(context);

      for (InputComponent<?, ?> input : builder.getInputs())
      {
         input.validate(validationContext);
      }

      currentCommand.validate(validationContext);
      return validationContext.getErrors();
   }
View Full Code Here

         if (!errors.isEmpty())
         {
            throw new IllegalStateException(errors.toString());
         }
         // All good. Hit it !
         UICommand command = builder.getCommand();
         if (listener != null)
         {
            listener.preCommandExecuted(command, context);
         }
         try
         {
            Result result = command.execute(context);
            if (listener != null)
            {
               listener.postCommandExecuted(command, context, result);
            }
         }
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.ui.UICommand

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.