Examples of EventCallback


Examples of com.gwtext.client.core.EventCallback

    addListener((PanelListener)listener);
    final FocusPanel fpanel = this;

    this.addListener(new PanelListenerAdapter() {
      public void onRender(Component component) {
        component.getEl().addListener("blur", new EventCallback() {
          public void execute(EventObject e) {
            listener.onBlur(fpanel, e);
          }
        });

        component.getEl().addListener("focus", new EventCallback() {
          public void execute(EventObject e) {
            listener.onFocus(fpanel, e);
          }
        });

        component.getEl().addListener("click", new EventCallback() {
          public void execute(EventObject e) {
            listener.onClick(fpanel, e);
          }
        });

        component.getEl().addListener("dblclick", new EventCallback() {
          public void execute(EventObject e) {
            listener.onDblClick(fpanel, e);
          }
        });

        component.getEl().addListener("mousedown", new EventCallback() {
          public void execute(EventObject e) {
            listener.onMouseDown(fpanel, e);
          }
        });

        component.getEl().addListener("mouseup", new EventCallback() {
          public void execute(EventObject e) {
            listener.onMouseUp(fpanel, e);
          }
        });

        component.getEl().addListener("keypress", new EventCallback() {
          public void execute(EventObject e) {
            listener.onKeyPress(fpanel, e);
          }
        });

        component.getEl().addListener("keydown", new EventCallback() {
          public void execute(EventObject e) {
            listener.onKeyDown(fpanel, e);
          }
        });

        component.getEl().addListener("keyup", new EventCallback() {
          public void execute(EventObject e) {
            listener.onKeyUp(fpanel, e);
          }
        });
View Full Code Here

Examples of com.gwtmobile.phonegap.client.FileMgr.EventCallback

      @Override
      public void onSuccess(final FileEntry file) {
        file.file(new FileCallback() {
          @Override
          public void onSuccess(File file) {
            EventCallback callback = new EventCallback() {     
              @Override
              public void onEvent(Event evt) {
                console("Event Type: " + evt.getType() + "<br/>" +
                    "FileName: " + evt.getTarget().getFileName() + "<br/>"
                    "Result: " + evt.getTarget().getResult() + "<br/>"
View Full Code Here

Examples of com.gwtmobile.phonegap.client.FileMgr.EventCallback

      @Override
      public void onSuccess(final FileEntry file) {
        file.file(new FileCallback() {
          @Override
          public void onSuccess(File file) {
            EventCallback callback = new EventCallback() {     
              @Override
              public void onEvent(Event evt) {
                console("Event Type: " + evt.getType() + "<br/>" +
                    "FileName: " + evt.getTarget().getFileName() + "<br/>"
                    "Result: " + evt.getTarget().getResult() + "<br/>"
View Full Code Here

Examples of org.mule.tck.functional.EventCallback

    public void testReceiveAndSendWithException() throws Exception
    {
        final AtomicBoolean called = new AtomicBoolean(false);

        EventCallback callback = new EventCallback()
        {
            public void eventReceived(MuleEventContext context, Object component) throws Exception
            {
                try
                {
View Full Code Here

Examples of org.mule.tck.functional.EventCallback

        OrderManagerBean subscriptionBean = (OrderManagerBean) muleContext.getRegistry().lookupObject(
            "orderManagerBean");
        assertNotNull(subscriptionBean);
        // when an event is received by 'testEventBean1' this callback will be
        // invoked
        EventCallback callback = new EventCallback()
        {
            public void eventReceived(MuleEventContext context, Object o) throws Exception
            {
                eventCount.incrementAndGet();
            }
View Full Code Here

Examples of org.mule.tck.functional.EventCallback

        OrderManagerBean subscriptionBean = (OrderManagerBean) muleContext.getRegistry().lookupObject(
            "orderManagerBean");
        assertNotNull(subscriptionBean);
        // when an event is received by 'testEventBean1' this callback will be
        // invoked
        EventCallback callback = new EventCallback()
        {
            public void eventReceived(MuleEventContext context, Object o) throws Exception
            {
                eventCount.incrementAndGet();
            }
View Full Code Here

Examples of org.mule.tck.functional.EventCallback

    protected void doSetUp() throws Exception
    {
        super.doSetUp();
       
        FunctionalTestComponent testComponent = getFunctionalTestComponent("test validator");
        testComponent.setEventCallback(new EventCallback()
        {
            public void eventReceived(MuleEventContext context, Object component) throws Exception
            {
                receiveLatch.countDown();               
            }
View Full Code Here

Examples of org.mule.tck.functional.EventCallback

    public void testGracefulShutdownTimeout() throws Exception
    {
        final Latch latch = new Latch();
        Service service = muleContext.getRegistry().lookupService("TestService");
        FunctionalTestComponent testComponent = (FunctionalTestComponent) getComponent(service);
        testComponent.setEventCallback(new EventCallback()
        {

            public void eventReceived(MuleEventContext context, Object component) throws Exception
            {
                Thread.sleep(5500);
View Full Code Here

Examples of org.mule.tck.functional.EventCallback

        TestApplicationEventBean bean = (TestApplicationEventBean) muleContext.getRegistry().lookupObject(
            "testEventSpringBean");
        assertNotNull(bean);

        final Latch whenFinished = new Latch();
        EventCallback callback = new EventCallback()
        {
            public void eventReceived(MuleEventContext context, Object o) throws Exception
            {
                assertNull(context);
                if (o instanceof TestApplicationEvent)
View Full Code Here

Examples of org.mule.tck.functional.EventCallback

        TestSubscriptionEventBean bean1 = (TestSubscriptionEventBean) muleContext.getRegistry().lookupObject(
            "testSubscribingEventBean1");
        assertNotNull(bean1);

        final Latch whenFinished1 = new Latch();
        EventCallback callback = new EventCallback()
        {
            public void eventReceived(MuleEventContext context, Object o) throws Exception
            {
                MuleApplicationEvent returnEvent = new MuleApplicationEvent("MuleEvent from a spring bean",
                    "vm://testBean2");
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.