Examples of UIBuilderImpl


Examples of org.jboss.forge.addon.ui.impl.context.UIBuilderImpl

   @Override
   public void initialize() throws Exception
   {
      if (!isInitialized())
      {
         uiBuilder = new UIBuilderImpl(context);
         initialCommand.initializeUI(uiBuilder);
      }
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.impl.context.UIBuilderImpl

   @Override
   public void initialize() throws Exception
   {
      if (!isInitialized())
      {
         uiBuilder = new UIBuilderImpl(context);
         initialCommand.initializeUI(uiBuilder);
      }
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.impl.context.UIBuilderImpl

   @Override
   public void initialize() throws Exception
   {
      if (!isInitialized())
      {
         uiBuilder = new UIBuilderImpl(context);
         initialCommand.initializeUI(uiBuilder);
      }
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIBuilderImpl

   {
      if (!canFlipToNextPage())
      {
         throw new IllegalStateException("Wizard is already on the last page");
      }
      UIBuilderImpl currentBuilder = getCurrentBuilder();
      NavigationResult result = ((UIWizard) currentBuilder.getCommand()).next(context);
      Class<? extends UICommand>[] successors = result.getNext();
      final Class<? extends UICommand> successor;
      if (successors == null)
      {
         successor = subflows.pop();
      }
      else
      {
         successor = successors[0];
         for (int i = 1; i < successors.length; i++)
         {
            subflows.push(successors[i]);
         }
      }
      UIBuilderImpl nextBuilder = createBuilder((Class<W>) successor);
      pages.add(nextBuilder);
      return result.getMessage();
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIBuilderImpl

   }

   @Override
   public boolean canFlipToNextPage()
   {
      UIBuilderImpl currentBuilder = getCurrentBuilder();
      try
      {
         boolean result;
         NavigationResult next = ((UIWizard) currentBuilder.getCommand()).next(context);
         if (next == null)
         {
            result = !subflows.isEmpty();
         }
         else
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIBuilderImpl

   }

   private UIBuilderImpl createBuilder(Class<W> wizardClass) throws Exception
   {
      W wizard = addonRegistry.getServices(wizardClass).get();
      UIBuilderImpl builder = new UIBuilderImpl(context, wizard);
      wizard.initializeUI(builder);
      return builder;
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIBuilderImpl

   @SuppressWarnings("unchecked")
   @Override
   public void setValueFor(String property, Object value)
   {
      UIBuilderImpl currentBuilder = getCurrentBuilder();
      InputComponent<?, ?> input = currentBuilder.getComponentNamed(property);
      if (input == null)
      {
         throw new IllegalArgumentException("Property " + property + " not found for current wizard page");
      }
      InputComponents.setValueFor(getConverterFactory(), (InputComponent<?, Object>) input, value);
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIBuilderImpl

   }

   @Override
   public InputComponent<?, ?> getInputComponent(String property)
   {
      UIBuilderImpl currentBuilder = getCurrentBuilder();
      return currentBuilder.getComponentNamed(property);
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.UIBuilderImpl

   }

   private UIBuilderImpl createBuilder(Class<C> commandClass) throws Exception
   {
      C command = addonRegistry.getServices(commandClass).get();
      UIBuilderImpl builder = new UIBuilderImpl(context, command);
      command.initializeUI(builder);
      return builder;
   }
View Full Code Here

Examples of org.jboss.forge.ui.test.impl.command.UIBuilderImpl

   }

   private UIBuilderImpl createBuilder(Class<C> commandClass) throws Exception
   {
      C command = addonRegistry.getServices(commandClass).get();
      UIBuilderImpl builder = new UIBuilderImpl(context, command);
      command.initializeUI(builder);
      return builder;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.