Examples of addListener()


Examples of lineage2.gameserver.model.instances.DoorInstance.addListener()

    for (DoorInstance door : _doors.values())
    {
      if (door.getTemplate().getMasterDoor() > 0)
      {
        DoorInstance masterDoor = getDoor(door.getTemplate().getMasterDoor());
        masterDoor.addListener(new MasterOnOpenCloseListenerImpl(door));
      }
    }
  }
 
  /**
 
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.addListener()

      addSpawnWithoutRespawn(KartiaWatchman, new Location(-111432, -15496, -11443), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-111192, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaWatchman, new Location(-110968, -15512, -11444), 0);
      addSpawnWithoutRespawn(KartiaGuard, new Location(-110792, -15592, -11444), 0);
      NpcInstance kaliospawner = addSpawnWithoutRespawn(LordOfKartia, new Location(-111288, -15784, -11428), 0);
      kaliospawner.addListener(_deathListener);
    }
  }
 
  private class TwoCycleStageSix extends RunnableImpl
  {
View Full Code Here

Examples of megamek.common.MechSummaryCache.addListener()

        butLoadCustomBA = new Button(Messages
                .getString("ChatLounge.butLoadCustomBA"));
        butLoadCustomFS = new Button(Messages.getString("ChatLounge.butLoadCustomFS"));

        MechSummaryCache mechSummaryCache = MechSummaryCache.getInstance();
        mechSummaryCache.addListener(mechSummaryCacheListener);
        butLoad.setEnabled(mechSummaryCache.isInitialized());
        butArmy.setEnabled(mechSummaryCache.isInitialized());
        butLoadCustomBA.setEnabled(mechSummaryCache.isInitialized());
        butLoadCustomFS.setEnabled(mechSummaryCache.isInitialized());
View Full Code Here

Examples of mondrian.util.MemoryMonitor.addListener()

        Listener listener = new Listener(query);
        MemoryMonitor mm = MemoryMonitorFactory.getMemoryMonitor();
        long currId = -1;
        try {
            mm.addListener(listener);
            // Check to see if we must punt
            query.checkCancelOrTimeout();

            if (LOGGER.isDebugEnabled()) {
                LOGGER.debug(Util.unparse(query));
View Full Code Here

Examples of muito.motion.provider.MuitoMotionTrackerPorvider.addListener()

  public MuitoInputSource(MTApplication pa, String server, int port){
    super(pa);
      Settings.getInstance().setScreensizeX(MT4jSettings.getInstance().getWindowWidth());
      Settings.getInstance().setScreensizeY(MT4jSettings.getInstance().getWindowHeight());
    MuitoMotionTrackerPorvider muitoProvider = new MuitoMotionTrackerPorvider(server, port);
      muitoProvider.addListener(this);
//      muitoProvider.addMotionFilter(new CalibrationFilter());
      muitoIDToInputMotionID = new HashMap<Long, Long>();
  }
 
 
View Full Code Here

Examples of net.alteiar.campaign.player.gui.map.element.action.ComboBoxChangeFunctionFirstCombo.addListener()

      ComboBoxChangeFunctionFirstCombo triggerAddListener = new ComboBoxChangeFunctionFirstCombo(
          listTrigger);
      PanelChangeFunctionFirstCombo shapeAddListener = new PanelChangeFunctionFirstCombo(
          shapePanel);

      triggerAddListener.addListener();
      shapeAddListener.addListener();
      this.setLayout(new BorderLayout());
      this.add(new JLabel("Ajouter un déclencheur"), BorderLayout.NORTH);

      JPanel panelCenter = new JPanel();
View Full Code Here

Examples of net.alteiar.campaign.player.gui.map.element.action.PanelChangeFunctionFirstCombo.addListener()

          listTrigger);
      PanelChangeFunctionFirstCombo shapeAddListener = new PanelChangeFunctionFirstCombo(
          shapePanel);

      triggerAddListener.addListener();
      shapeAddListener.addListener();
      this.setLayout(new BorderLayout());
      this.add(new JLabel("Ajouter un déclencheur"), BorderLayout.NORTH);

      JPanel panelCenter = new JPanel();
      panelCenter.setLayout(new BoxLayout(panelCenter, BoxLayout.Y_AXIS));
View Full Code Here

Examples of net.erdfelt.android.apk.xml.BinaryXmlParser.addListener()

    }

    private void parseStream(InputStream in) throws IOException {
        BinaryXmlParser parser = new BinaryXmlParser();
        // parser.addListener(new BinaryXmlDump());
        parser.addListener(new ManifestListener());
        parser.parse(in);
    }

    public String getAppVersion() {
        return appVersion;
View Full Code Here

Examples of net.floodlightcontroller.topology.ITopologyService.addListener()

        restApi.startUp(fmc);
        getMockFloodlightProvider().startUp(fmc);
        vns.startUp(fmc);
        entityClassifier.startUp(fmc);

        topology.addListener(deviceService);
        expectLastCall().times(1);
        replay(topology);
        // Mock switches
        //fastWilcards mocked as this constant
        int fastWildcards =
View Full Code Here

Examples of net.gleamynode.netty.channel.ChannelFuture.addListener()

        unwrap(context, e.getChannel(), ChannelBuffer.EMPTY_BUFFER, 0, 0);
        if (!engine.isInboundDone()) {
            if (sentCloseNotify.compareAndSet(false, true)) {
                engine.closeOutbound();
                ChannelFuture closeNotifyFuture = wrapNonAppData(context, e.getChannel());
                closeNotifyFuture.addListener(new ChannelFutureListener() {
                    public void operationComplete(ChannelFuture closeNotifyFuture) throws Exception {
                        closeFutures.offer(e.getFuture());
                    }
                });
                return;
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.