Examples of dispatchEvent()


Examples of org.apache.beehive.controls.api.context.ControlContainerContext.dispatchEvent()

            throw new IllegalStateException("No active control container context");

        //
        // Dispatch the event using it.
        //
        return context.dispatchEvent(target, event, args);
    }
}
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.events.NodeEventTarget.dispatchEvent()

        final String s =
            elt.getAttributeNS(null, SVGConstants.SVG_ONLOAD_ATTRIBUTE);
        if (s.length() == 0) {
            // No script to run so just dispatch the event to DOM
            // (For java presumably).
            t.dispatchEvent(ev);
            return;
        }

        final Interpreter interp = getInterpreter();
        if (interp == null) {
View Full Code Here

Examples of org.apache.s4.core.gen.OverloadDispatcher.dispatchEvent()

    public void testDispatchWithEventHierarchies() throws Exception {
        OverloadDispatcherGenerator gen = new OverloadDispatcherGenerator(A.class);
        OverloadDispatcher dispatcher = (OverloadDispatcher) gen.generate().newInstance();
        A a = new A();
        // input events
        dispatcher.dispatchEvent(a, new Event1());
        Assert.assertEquals(Event1.class, a.processedEventClass);
        dispatcher.dispatchEvent(a, new Event1a());
        Assert.assertEquals(Event1a.class, a.processedEventClass);
        dispatcher.dispatchEvent(a, new Event2());
        Assert.assertEquals(Event2.class, a.processedEventClass);
View Full Code Here

Examples of org.itsnat.impl.core.clientdoc.ClientDocumentStfulImpl.dispatchEvent()

    public boolean dispatchEvent(EventTarget target,Event evt) throws EventException
    {
        ClientDocumentStfulImpl clientDoc = getEventDispatcherClientDocByThread();
        if (clientDoc != null)
            return clientDoc.dispatchEvent(target,evt);
        else
            return dispatchEventLocally(target,evt);
    }

    public boolean dispatchEventLocally(EventTarget target,Event evt) throws EventException
View Full Code Here

Examples of org.jboss.fresh.events.EventBroadcaster.dispatchEvent()


    try {
      EventBroadcaster eb = getEventBroadcaster();
      if (eb != null) {
        eb.dispatchEvent(new ShellEvent(EVENT_CLASS, "shellDispose", this));
      }
    } catch (Exception ex) {
      log.error(ex.getMessage(), ex);
    }
View Full Code Here

Examples of org.jdesktop.swingx.JXMonthView.dispatchEvent()

            // Retarget mouse event to the month view.
            if (_forwardReleaseEvent) {
                JXMonthView monthView = datePicker.getMonthView();
                ev = SwingUtilities.convertMouseEvent(popupButton, ev,
                        monthView);
                monthView.dispatchEvent(ev);
                _forwardReleaseEvent = false;
            }
        }

        public void mouseEntered(MouseEvent ev) {
View Full Code Here

Examples of org.jdesktop.swingx.JXTree.dispatchEvent()

            }
        }
        // no hit
        if (row < 0)
            return;
        tree.dispatchEvent(new MouseEvent(tree, e.getID(), e.getWhen(), e
                .getModifiers(), bounds.x + bounds.width - 2, mousePoint.y, e
                .getClickCount(), e.isPopupTrigger(), e.getButton()));
    }

    @Override
View Full Code Here

Examples of org.mule.api.service.Service.dispatchEvent()

                Thread.sleep(5500);
                latch.countDown();

            }
        });
        service.dispatchEvent(getTestEvent("test"));
        Thread.sleep(200);
        service.dispose();
        assertTrue(latch.await(1000, TimeUnit.MILLISECONDS));
    }
View Full Code Here

Examples of org.mule.api.service.Service.dispatchEvent()

        assertFalse(c.isPaused());
        assertTrue(c.isStopped());

        try
        {
            c.dispatchEvent(getTestEvent("hello", c));
            fail();
        }
        catch (LifecycleException e)
        {
            // expected
View Full Code Here

Examples of org.mule.api.service.Service.dispatchEvent()

        if (logger.isDebugEnabled())
        {
            logger.debug("MuleClient dispatching event direct to: " + componentName + ". MuleEvent is: " + event);
        }

        service.dispatchEvent(event);
    }

    /**
     * Sends an event request to a URL, making the result of the event trigger
     * available as a Future result that can be accessed later by client code.
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.