Examples of fire()


Examples of de.iritgo.aktera.event.EventManager.fire()

    EventManager em = (EventManager) (EventManager) SpringTools.getBean(EventManager.ID);
    Properties props = new Properties();

    props.put("id", persistents.getPersistent("sysUser").getFieldInt("uid"));
    props.put("name", persistents.getPersistent("sysUser").getFieldString("name"));
    em.fire("aktera.user.updated", request, log, props);
  }
}
View Full Code Here

Examples of megamek.common.weapons.Weapon.fire()

            if (ea instanceof WeaponAttackAction) {
                WeaponAttackAction waa = (WeaponAttackAction) ea;
                Entity ae = game.getEntity(waa.getEntityId());
                Mounted m = ae.getEquipment(waa.getWeaponId());
                Weapon w = (Weapon) m.getType();
                AttackHandler ah = w.fire(waa, game, this);
                if (ah != null) {
                    game.addAttack(ah);
                }
            }
        }
View Full Code Here

Examples of net.sourceforge.marathon.event.FireableKeyEvent.fire()

        new FireableMouseClickEvent(getTextComponent()).fire(1);
        swingWait();
        selectAllText();
        FireableKeyEvent keyEvent = new FireableKeyEvent(getTextComponent(), 0);
        if (text.length() > 0) {
            keyEvent.fire(text);
        } else {
            keyEvent.fire(KeyEvent.VK_DELETE, KeyEvent.CHAR_UNDEFINED);
        }
        if (!getTextComponent().getText().equals(text)) {
            // Needed for non-editable fields and fields that do not
View Full Code Here

Examples of net.sourceforge.marathon.event.FireableMouseClickEvent.fire()

        pane.setSelectedIndex(0);
        Rectangle tabBounds = pane.getUI().getTabBounds(pane, 1);
        Point p = SwingUtilities.convertPoint(pane, (tabBounds.x + tabBounds.width) / 2, (tabBounds.y + tabBounds.height) / 2,
                _dialog);
        FireableMouseClickEvent e = new FireableMouseClickEvent(_dialog);
        e.fire(p, 1);
        Thread.sleep(500);
        // assertFalse (_mouseReceiver instanceof JTabbedPane);
        MComponent component = _finder.getMComponentByComponent((Component) _mouseReceiver);
        assertEquals("Component class", MTabbedPane.class, component.getClass());
    }
View Full Code Here

Examples of nm.aleksey.shared.AuthorContext.fire()

    AuthorContext authorContext = getRequestFactory().authorRequest();
    for (AuthorProxy author : authorSetToDelete) {
      authorContext.delete(author);
    }

    authorContext.fire(new Receiver<Void>() {

      @Override
      public void onSuccess(Void response) {
        authorSetToDelete.clear();
        GWT.log("List of authors was cleared.");
View Full Code Here

Examples of oop13.space.model.Alien.fire()

   * and adds a new alien shot.
   */
  private void alienShot() {
    Alien a = model.getAliens().getShooter();
    if (a != null) {
      AlienShot shot = a.fire();
      model.addAlienShot(shot);
            shot.moveIndividual(a.getPositionX() + SHOT_STEP, a.getPositionY());
    }
  }

View Full Code Here

Examples of org.atmosphere.wasync.Socket.fire()

        }).open(request.build());

        latch.await(5, TimeUnit.SECONDS);

        socket.fire("Yo");

        ioLatch.await(5, TimeUnit.SECONDS);

        assertNotNull(response2.get());
        assertEquals(response2.get().getClass(), IOException.class);
View Full Code Here

Examples of org.atmosphere.wasync.Socket.fire()

            }).open(request.build());
        } catch (IOException ex) {
            ioException = ex;
        }
        socket.fire("echo");
        latch.await(5, TimeUnit.SECONDS);

        assertEquals(response.get().getClass(), ConnectException.class);
        assertTrue(IOException.class.isAssignableFrom(response2.get().getClass()));
        assertTrue(IOException.class.isAssignableFrom(ioException.getClass()));
View Full Code Here

Examples of org.atmosphere.wasync.Socket.fire()

            public void on(String t) {
                b.get().append(t);
            }
        }).open(clientRequest.build());

        socket.fire("PING");
        flatch.await(5, TimeUnit.SECONDS);

        server.stop();

        elatch.await(5, TimeUnit.SECONDS);
View Full Code Here

Examples of org.atmosphere.wasync.Socket.fire()

        }).on(Event.REOPENED, new Function<String>() {
            @Override
            public void on(String t) {
                b.get().append(t);
                try {
                    socket.fire("PONG");
                } catch (IOException e) {
                    e.printStackTrace();
                }
                latch.countDown();
            }
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.