Examples of addListener()


Examples of com.art.anette.client.network.NetworkControl.addListener()

        NetworkListener listener = new NetworkListener() {
            public void statusChange(NetworkEvent event) {
                logger.info("network event " + event);
            }
        };
        network.addListener(listener);
        try {
            network.initSSL();
        } catch (SSLException ex) {
            logger.severe("SSL Failure", ex);
            ProgressUtils.errorMessage("SSLFailed");
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.CheckBox.addListener()

  public static CheckBox newCheckBox( String text, boolean checked, ClickListener listener ) {
    CheckBox cb = new CheckBox( text, UISkin );
    cb.setChecked( checked );
    if( listener != null ) {
      cb.addListener( listener );
    }
    return cb;
  }

  public static SelectBox<String> newSelectBox( String[] items ) {
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.List.addListener()

        Label difficultyLabel = new Label("-- DIFFICULTY --", game.getSkin());

        String[] resolutionsArray = {"LOW", "MEDIUM", "HIGH"};
        final List difficultyList = new List(resolutionsArray, game.getSkin());

        difficultyList.addListener(new ClickListener() {
            public void touchUp(InputEvent event, float x, float y, int pointer, int button) {

                switch (difficultyList.getSelectedIndex()) {
                    case 0:
                        prefs.putString("difficulty", "low");
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.Slider.addListener()

  public static Slider newSlider( float min, float max, float step, float value, ChangeListener listener ) {
    Slider s = new Slider( min, max, step, false, UISkin );
    s.setValue( value );
    if( listener != null ) {
      s.addListener( listener );
    }
    return s;
  }

  public static CheckBox newCheckBox( String text, boolean checked ) {
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.ui.TextButton.addListener()

        table.add(labelScore).center().pad(5f);

        // El usuario ya ha rellenado su nombre
        if (done) {
            TextButton quitButton = new TextButton("MAIN MENU", game.getSkin());
            quitButton.addListener(new ClickListener() {
                public void touchUp(InputEvent event, float x, float y, int pointer, int button) {

                    game.setScreen(new MainMenuScreen(game));
                }
            });
View Full Code Here

Examples of com.barrybecker4.game.common.ui.menu.GameMenu.addListener()

    private void addMenuBar(String initialGame) {

        GameMenuController menuListener = new GameMenuController(frame_);

        GameMenu gameMenu = new GameMenu(initialGame);
        gameMenu.addListener(menuListener);

        JMenu fileMenu = new FileMenu(menuListener);

        JMenuBar menubar = new JMenuBar();
        menubar.add(fileMenu);
View Full Code Here

Examples of com.basho.riak.client.core.operations.DeleteOperation.addListener()

        for (BinaryValue k : keyList)
        {
            Location location = new Location(namespace, k);
            DeleteOperation.Builder delOpBuilder = new DeleteOperation.Builder(location);
            DeleteOperation delOp = delOpBuilder.build();
            delOp.addListener(listener);
            semaphore.acquire();
            cluster.execute(delOp);
        }

        if (!keyList.isEmpty())
View Full Code Here

Examples of com.basho.riak.client.core.operations.StoreOperation.addListener()

            Location location = new Location(ns, key);
            StoreOperation storeOp =
                new StoreOperation.Builder(location)
                    .withContent(rObj)
                    .build();
            storeOp.addListener(listener);
            semaphore.acquire();
            cluster.execute(storeOp);
        }
       
        latch.await();
View Full Code Here

Examples of com.betfair.cougar.core.api.ev.Subscription.addListener()

                    }

                    long heapId = finalHeapState.getHeapId();

                    final String subscriptionId = finalHeapState.addSubscription(connectedObjectLogExtension, subscription, command.getSession());
                    subscription.addListener(new Subscription.SubscriptionListener() {
                        @Override
                        public void subscriptionClosed(Subscription subscription, Subscription.CloseReason reason) {
                            if (reason == REQUESTED_BY_PUBLISHER) {
                                PooledServerConnectedObjectManager.this.terminateSubscription(command.getSession(), heapUri, subscriptionId, reason);
                            }
View Full Code Here

Examples of com.caucho.cloud.network.NetworkListenSystem.addListener()

    _httpPort.setAcceptThreadMin(2);
    _httpPort.setAcceptThreadMax(3);

    _httpPort.init();

    listenService.addListener(_httpPort);
   
    ClassLoader oldLoader = thread.getContextClassLoader();

    try {
      thread.setContextClassLoader(_system.getClassLoader());
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.