Examples of ActionFactory


Examples of com.santiagolizardo.beobachter.gui.actions.ActionFactory

  public MainWindow(ConfigData configData) {
    this.configData = configData;

    recentFiles = configData.getRecentFiles();

    actionFactory = new ActionFactory(this);

    desktop = new DesktopPanel();

    menu = new Menu(desktop, this);
    setJMenuBar(menu);
View Full Code Here

Examples of com.santiagolizardo.beobachter.gui.actions.ActionFactory

    setText(tr("Edit"));
    setEnabled(false);
    setMnemonic(KeyEvent.VK_E);

    ActionFactory actionFactory = mainWindow.getActionFactory();

    copyMenuItem = new JMenuItem(actionFactory.getCopyAction());
    JMenuItem selectAllMenuItem = new JMenuItem(
        actionFactory.getSelectAllAction());

    JMenuItem findMenuItem = new JMenuItem(new FindAction(mainWindow));
    JMenuItem findNextMenuItem = new JMenuItem(new FindNextAction(mainWindow));
   
    JMenuItem clearSelectedBufferMenuItem = new JMenuItem(new ClearSelectedBufferAction(mainWindow));
View Full Code Here

Examples of com.santiagolizardo.beobachter.gui.actions.ActionFactory

  public ContextualMenu(MainWindow mainWindow) {

    this.mainWindow = mainWindow;
   
    ActionFactory actionFactory = mainWindow.getActionFactory();

    JMenuItem copy = new JMenuItem(actionFactory.getCopyAction());
    JMenuItem selectAll = new JMenuItem(
        actionFactory.getSelectAllAction());
   
    JMenuItem hideSelectedLinesMenuItem = new JMenuItem(Translator.tr("Hide selected lines"));
    hideSelectedLinesMenuItem.addActionListener(this);

    add(copy);
View Full Code Here

Examples of fr.neatmonster.nocheatplus.actions.ActionFactory

        }
        else{
          actionFactoryFactory = new ActionFactoryFactory() {
            @Override
                public final ActionFactory newActionFactory(final Map<String, Object> library) {
                    return new ActionFactory(library);
                }
          };
        }
        // Use lazy resetting.
        for (final ConfigFile config : worldsMap.values()){
View Full Code Here

Examples of mfinder.ActionFactory

    public void test_load() {

        config = new Configuration();
        config.load();

        ActionFactory factory = config.getFactory();

        assertNotNull(factory);
        assertNotNull(factory.getActions());
        assertNotNull(factory.getDefaultInterceptorStack());
        assertNotNull(factory.getDefaultResultType());
        assertNotNull(factory.getInterceptorStacks());
        assertNotNull(factory.getInterceptors());
        assertNotNull(factory.getResultTypes());
        assertNotNull(factory.getResults());
    }
View Full Code Here

Examples of net.sf.arianne.marboard.server.action.ActionFactory

  private MarboardRuleProcessor() {
    new DatabaseFactory().initializeDatabase();
    transactionPool = TransactionPool.get();
    world = MarboardWorld.get();
    users = new LinkedList<RPObject>();
    actionFactory = new ActionFactory();
    actionFactory.register();
  }
View Full Code Here

Examples of org.apache.wicket.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.apache.wicket.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.apache.wicket.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 org.apache.wicket.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
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.