Examples of ActionFactory


Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ActionFactory

  public static ActionFactory createActionFactory(final Configuration config)
  {
    final String factoryClass = config.getConfigProperty(ACTION_FACTORY_CONFIG_KEY);
    final Object maybeFactory = ObjectUtilities.loadAndInstantiate
        (factoryClass, PreviewPane.class, ActionFactory.class);
    final ActionFactory actionFactory;
    if (maybeFactory != null)
    {
      actionFactory = (ActionFactory) maybeFactory;
    }
    else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ActionFactory

  {
    final HashMap actions = new HashMap();

    final Configuration configuration = swingGuiContext.getConfiguration();
    final ActionCategory[] categories = loadCategories(swingGuiContext);
    final ActionFactory factory = PreviewPaneUtilities.createActionFactory(configuration);

    for (int i = 0; i < categories.length; i++)
    {
      final ActionCategory category = categories[i];
      actions.put(category, factory.getActions(swingGuiContext, category.getName()));
    }
    return actions;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ActionFactory

  public static ActionFactory createActionFactory(final Configuration config)
  {
    final String factoryClass = config.getConfigProperty(ACTION_FACTORY_CONFIG_KEY);
    final Object maybeFactory = ObjectUtilities.loadAndInstantiate
        (factoryClass, PreviewPane.class, ActionFactory.class);
    final ActionFactory actionFactory;
    if (maybeFactory != null)
    {
      actionFactory = (ActionFactory) maybeFactory;
    }
    else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ActionFactory

  {
    final HashMap<ActionCategory, ActionPlugin[]> actions = new HashMap<ActionCategory, ActionPlugin[]>();

    final Configuration configuration = swingGuiContext.getConfiguration();
    final ActionCategory[] categories = loadCategories(swingGuiContext);
    final ActionFactory factory = PreviewPaneUtilities.createActionFactory(configuration);

    for (int i = 0; i < categories.length; i++)
    {
      final ActionCategory category = categories[i];
      actions.put(category, factory.getActions(swingGuiContext, category.getName()));
    }
    return actions;
  }
View Full Code Here

Examples of org.wicketstuff.security.actions.ActionFactory

    StrategyFactory factory = getStrategyFactory();
    if (factory != null)
      factory.destroy();
    // because we destroy the actionfactory with the wicket app it is not
    // recommended to share actionfactories.
    ActionFactory factory2 = getActionFactory();
    if (factory2 != null)
      factory2.destroy();
  }
View Full Code Here

Examples of org.wicketstuff.security.actions.ActionFactory

    protected void onDestroy()
    {
      StrategyFactory factory = getStrategyFactory();
      if (factory != null)
        factory.destroy();
      ActionFactory factory2 = getActionFactory();
      if (factory2 != null)
        factory2.destroy();
    }
View Full Code Here

Examples of org.wicketstuff.security.actions.ActionFactory

  /**
   * Test method for {@link SwarmAction#implies(WaspAction)}
   */
  public void testImpliesWaspAction()
  {
    ActionFactory factory = Actions.getActionFactory(KEY);
    WaspAction action = factory.getAction(Render.class);
    WaspAction action2 = action.add(factory.getAction(Inherit.class));
    assertTrue(action2.implies(action));
    assertFalse(action.implies(action2));
  }
View Full Code Here

Examples of org.wicketstuff.security.actions.ActionFactory

  /**
   * Test method for {@link SwarmAction#add(int)}
   */
  public void testAddInt()
  {
    ActionFactory factory = Actions.getActionFactory(KEY);
    SwarmAction action = (SwarmAction)factory.getAction(Render.class);
    assertEquals(2, action.actions());
    SwarmAction action2 = (SwarmAction)action.add(((SwarmAction)factory.getAction(Access.class)).actions());
    assertEquals(2, action.actions()); // check inmutability
    assertEquals(2, action2.actions());
    assertNotSame(action, action2);
    SwarmAction action3 = (SwarmAction)action.add(((SwarmAction)factory.getAction(Enable.class)).actions());
    assertEquals(2, action.actions());
    assertEquals(6, action3.actions());

  }
View Full Code Here

Examples of org.wicketstuff.security.actions.ActionFactory

  /**
   * Test method for {@link SwarmAction#add(WaspAction)}
   */
  public void testAddWaspAction()
  {
    ActionFactory factory = Actions.getActionFactory(KEY);
    SwarmAction action = (SwarmAction)factory.getAction(Render.class);
    assertEquals(2, action.actions());
    SwarmAction action2 = action.add(factory.getAction(Access.class));
    assertEquals(2, action.actions()); // check inmutability
    assertEquals(2, action2.actions());
    assertNotSame(action, action2);
    SwarmAction action3 = action.add(factory.getAction(Enable.class));
    assertEquals(2, action.actions());
    assertEquals(6, action3.actions());

  }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.gui.action.ActionFactory

                        lastUpdateTime.toString("E yyyy-MM-dd"));
            }

            if (checkNow) {
                log.info(logMessage);
                final ActionFactory actionFactory = globalContext.getActionFactory();
                final CheckSignatureUpdateAction checkUpdatedSignatureAction = actionFactory
                        .newCheckSignatureUpdateAction();

                checkUpdatedSignatureAction.start(this);
                Map<SignatureType, SignatureFileInfo> availableUpdates =
                    checkUpdatedSignatureAction.getSignatureFileInfos();

                // do the download, prompting if necesssary
                if (!checkUpdatedSignatureAction.hasError()
                        && availableUpdates != null && !availableUpdates.isEmpty()) {
                    boolean showPrompt = properties.getBoolean("update.downloadPrompt");
                   
                   
                    Collection<SignatureFileInfo> filesToUpdate = showPrompt
                            ? promptForUpdate(availableUpdates.values())
                            : availableUpdates.values();
                   
                    if (!filesToUpdate.isEmpty()) {
                        UpdateSignatureAction downloadAction = actionFactory.newSignaureUpdateAction();
                        downloadAction.setUpdates(filesToUpdate);
                        downloadAction.start(this);
                    }
                }
               
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.