Examples of UIContextImpl


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

   @SuppressWarnings({ "unchecked", "rawtypes" })
   public static WizardTesterImpl<?> create(Class<?> wizardClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      UIContextImpl context = new UIContextImpl(initialSelection);
      return new WizardTesterImpl(wizardClass, addonRegistry, context);
   }
View Full Code Here

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

   @SuppressWarnings({ "unchecked", "rawtypes" })
   public static WizardTesterImpl<?> create(Class<?> wizardClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      UIContextImpl context = new UIContextImpl(initialSelection);
      return new WizardTesterImpl(wizardClass, addonRegistry, context);
   }
View Full Code Here

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

   @SuppressWarnings({ "unchecked", "rawtypes" })
   public static CommandTesterImpl<?> create(Class<?> commandClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      UIContextImpl context = new UIContextImpl(initialSelection);
      return new CommandTesterImpl(commandClass, addonRegistry, context);
   }
View Full Code Here

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

   public static WizardTesterImpl<?> create(Class<?> wizardClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return new WizardTesterImpl(wizardClass, addonRegistry, context);
   }
View Full Code Here

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

   public static CommandTesterImpl<?> create(Class<?> commandClass, AddonRegistry addonRegistry,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return new CommandTesterImpl(commandClass, addonRegistry, context);
   }
View Full Code Here

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

   {
      CommandController result = null;
      Iterable<UICommand> commands = commandFactory.getCommands();
      for (UICommand command : commands)
      {
         UIContextImpl context = getUIContextInstance(initialSelection);
         UICommandMetadata metadata = command.getMetadata(context);
         if (name.equals(metadata.getName()))
         {
            result = factory.createSingleController(context, getUIRuntimeInstance(), command);
            break;
View Full Code Here

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

   private UIContextImpl getUIContextInstance(Resource<?>... initialSelection)
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(getProvider(), listeners, selection);
      return context;
   }
View Full Code Here

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

   public CommandController createCommandController(Class<? extends UICommand> commandClass,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return factory
               .createSingleController(context, addonRegistry.getServices(commandClass).get(), new UIRuntimeImpl());
   }
View Full Code Here

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

   public WizardCommandController createWizardController(Class<? extends UIWizard> wizardClass,
            Resource<?>... initialSelection) throws Exception
   {
      Imported<UIContextListener> listeners = addonRegistry.getServices(UIContextListener.class);
      UISelection<Resource<?>> selection = Selections.from(initialSelection);
      UIContextImpl context = new UIContextImpl(new UIProviderImpl(true), listeners, selection);
      return factory.createWizardController(context, addonRegistry.getServices(wizardClass).get(),
               new UIRuntimeImpl());
   }
View Full Code Here

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

   public CommandController createCommandController(String name, Resource<?>... initialSelection) throws Exception
   {
      CommandController result = null;
      Iterable<UICommand> commands = commandFactory.getCommands();
      UIContextImpl context = getUIContextInstance(initialSelection);
      for (UICommand command : commands)
      {
         UICommandMetadata metadata = command.getMetadata(context);
         if (name.equals(metadata.getName()))
         {
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.