Examples of removeEventListener()


Examples of com.eclipsesource.tabris.app.App.removeEventListener()

  public void testRemoveListensTransportsListenOperation() {
    App app = new AppImpl();
    AppListener listener = mock( AppListener.class );
    app.addEventListener( PAUSE, listener );

    app.removeEventListener( PAUSE, listener );

    RemoteObject remoteObject = environment.getServiceObject();
    InOrder order = inOrder( remoteObject );
    order.verify( remoteObject ).listen( "Pause", true );
    order.verify( remoteObject ).listen( "Pause", false );
View Full Code Here

Examples of com.hazelcast.map.MapService.removeEventListener()

        super(name, registrationId);
    }

    public Object call() throws Exception {
        final MapService service = getService();
        return service.removeEventListener(name, registrationId);
    }

    public String getServiceName() {
        return MapService.SERVICE_NAME;
    }
View Full Code Here

Examples of com.jitcaforwin.basic.api.IiTunes.removeEventListener()

  @Test(expected=JitcaRuntimeException.class)
  public void NegativeEventControllerTest(){
    IJitcaCOMInterface comMock = EasyMock.createMock(IJitcaCOMInterface.class);
    IiTunes iTunes = new iTunesApp(comMock)// Mock should never be used by the API.
    TestEventListner testListener = new TestEventListner();
    iTunes.removeEventListener(testListener);
  }
}

class TestEventListner implements IJitcaEventListener{
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Consumer.removeEventListener()

              d= Destination.getDestination(c.getDestinationUID());

              // quit listening for busy events
              Object listener= listeners.remove(uid);
              if (listener != null) {
                  c.removeEventListener(listener);
              }

              // remove it from the active list
              activeConsumers.remove(c);
          }
View Full Code Here

Examples of com.sun.star.accessibility.XAccessibleEventBroadcaster.removeEventListener()

                        XAccessibleEventBroadcaster.class, xAccessibleContext);
                if (xAccessibleEventBroadcaster != null) {
                    if (attach) {
                        xAccessibleEventBroadcaster.addEventListener(this);
                    } else {
                        xAccessibleEventBroadcaster.removeEventListener(this);
                    }
                }
            } catch (com.sun.star.uno.RuntimeException e) {
                // FIXME: error message !
            }
View Full Code Here

Examples of com.sun.star.document.XEventBroadcaster.removeEventListener()

   */
  private void removeEventListener(XEventListener xEventListener) {
    XEventBroadcaster xEventBroadcaster = (XEventBroadcaster) UnoRuntime.queryInterface(XEventBroadcaster.class,
        xComponent);
    if (xEventBroadcaster != null) {
      xEventBroadcaster.removeEventListener(xEventListener);
    }
  }

  //----------------------------------------------------------------------------
  /**
 
View Full Code Here

Examples of com.sun.star.lang.XComponent.removeEventListener()

                                     XComponent.class, xCList);
        XEventListener listen = new EventListener();
        dicList.addEventListener(listen);
        dicList.dispose();
        assure("dispose didn't work", disposed);
        dicList.removeEventListener(listen);

        DesktopTools.closeDoc(xDoc);

        return res;
    }
View Full Code Here

Examples of com.sun.star.text.XTextField.removeEventListener()

   * @author Sebastian R�sgen
   */
  private void removeEventListener(XEventListener xEventListener) {
    XTextField xTextField = (XTextField) UnoRuntime.queryInterface(
        XTextField.class, xDependentTextField);
    xTextField.removeEventListener(wrapper);
  }

  // ----------------------------------------------------------------------------
  /**
   * Marks the text field in the text.
View Full Code Here

Examples of elemental.dom.Element.removeEventListener()

    TestUtils.click(body);
    assertFalse(listener.didFire());
   
    // Ensure that removeEventListener works.
    body.addEventListener("click", listener, false);
    body.removeEventListener("click", listener, false);
    TestUtils.click(body);
    assertFalse(listener.didFire());
   
    // Ensure that onclick = null works.
    body.setOnclick(listener);
View Full Code Here

Examples of elemental.html.ButtonElement.removeEventListener()

          public void fire() {
            getWindow().alert("timeout fired");
          }
        }, 1000);

        btn.removeEventListener(Event.CLICK, this, false);
      }
    };

    btn.addEventListener(Event.CLICK, listener, false);
  }
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.