Examples of addEventListener()


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

            eventTarget.addEventListenerNS
                (XMLConstants.XML_EVENTS_NAMESPACE_URI, "keydown",
                 this, false, null);
        } else {
            EventTarget eventTarget = owner.getRootEventTarget();
            eventTarget.addEventListener("keypress", this, false);
        }
    }

    /**
     * Deinitializes this timing specifier by removing any event listeners.
View Full Code Here

Examples of org.apache.hivemind.service.EventLinker.addEventListener()

        // Exercise code paths for when the producer has already
        // been scanned.

        EventConsumer c2 = new EventConsumer();

        l.addEventListener(p, null, c2, null);

        p.fire(e);

        assertSame(e, c2.getLastEvent());
    }
View Full Code Here

Examples of org.apache.hivemind.service.impl.EventLinkerImpl.addEventListener()

    {
        EventProducer p = new EventProducer();
        EventConsumer c = new EventConsumer();
        EventLinker l = new EventLinkerImpl(null);

        l.addEventListener(p, null, c, null);

        PropertyChangeEvent e = new PropertyChangeEvent(this, "whatever", "foo", "bar");

        p.fire(e);
View Full Code Here

Examples of org.apache.jackrabbit.api.observation.JackrabbitObservationManager.addEventListener()

        JackrabbitObservationManager oManager = (JackrabbitObservationManager) obsMgr;
        EventResult listener = new EventResult(log);
        JackrabbitEventFilter filter = new JackrabbitEventFilter()
                .setAdditionalPaths('/' + testPath + "/a", '/' + testPath + "/x")
                .setEventTypes(NODE_ADDED);
        oManager.addEventListener(listener, filter);
        try {
            Node b = testRootNode.addNode("a").addNode("b");
            b.addNode("c");
            Node y = testRootNode.addNode("x").addNode("y");
            y.addNode("z");
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStore.addEventListener()

        final MessageStore messageStore = (MessageStore) o;
        final MessageStoreLogSubject storeLogSubject = new MessageStoreLogSubject(this, clazz.getSimpleName());
        OperationalLoggingListener.listen(messageStore, storeLogSubject);

        messageStore.addEventListener(new BeforeActivationListener(), Event.BEFORE_ACTIVATE);
        messageStore.addEventListener(new AfterActivationListener(), Event.AFTER_ACTIVATE);
        messageStore.addEventListener(new BeforeCloseListener(), Event.BEFORE_CLOSE);
        messageStore.addEventListener(new BeforePassivationListener(), Event.BEFORE_PASSIVATE);

        return messageStore;
View Full Code Here

Examples of org.apache.stratos.messaging.message.receiver.instance.notifier.InstanceNotifierEventReceiver.addEventListener()

    if(log.isDebugEnabled()) {
            log.debug("Starting instance notifier event message receiver thread");
        }

        InstanceNotifierEventReceiver eventReceiver = new InstanceNotifierEventReceiver();
        eventReceiver.addEventListener(new ArtifactUpdateEventListener() {
            @Override
            protected void onEvent(Event event) {
                onArtifactUpdateEvent((ArtifactUpdatedEvent) event);
            }
        });
View Full Code Here

Examples of org.apache.tapestry.internal.event.IComponentEventInvoker.addEventListener()

        spec.addEventListener("comp1", new String[] {"onclick", "onchange"}, "testMethod", "form1", true, true, false, false);
        invoker.addEventListener("comp1", spec);
        invoker.addFormEventListener("form1", spec);
       
        spec.addEventListener("comp2", new String[] {"onclick"}, "testAnotherMethod", "form1", true, true, false, false);
        invoker.addEventListener("comp2", spec);
        invoker.addFormEventListener("form1", spec);
       
        // render of comp1
       
        expect(cycle.isRewinding()).andReturn(false);
View Full Code Here

Examples of org.apache.tapestry.internal.event.impl.ComponentEventInvoker.addEventListener()

       
        assertNotNull(worker.getElementScript());
        assertEquals(elemScript, worker.getElementScript().getPath());
       
        // now test render
        invoker.addEventListener("comp1", spec);
        spec.addEventListener("comp1", new String[] {"onclick"}, "testMethod", null, false, true, false, false);
        spec.addElementEventListener("elementId", new String[] {"onclick"}, "testMethod", null, false, true, false);
       
        /////////////////////////////////
       
View Full Code Here

Examples of org.apache.tapestry.spec.ComponentSpecification.addEventListener()

        assertEquals(0, worker.getDefferedFormConnections().size());
       
        // test widget render
       
        invoker.addEventListener("wid1", widgetSpec);
        widgetSpec.addEventListener("wid1", new String[] {"onclick"}, "testMethod", null, false, true, false, false);
       
        checkOrder(cycle, false);
        expect(cycle.isRewinding()).andReturn(false);
        expect(cycle.getAttribute(TapestryUtils.PAGE_RENDER_SUPPORT_ATTRIBUTE)).andReturn(prs).anyTimes();
       
View Full Code Here

Examples of org.apache.tapestry.spec.IComponentSpecification.addEventListener()

        assertEquals(0, worker.getDefferedFormConnections().size());
       
        // test widget render
       
        invoker.addEventListener("wid1", widgetSpec);
        widgetSpec.addEventListener("wid1", new String[] {"onclick"}, "testMethod", null, false, true, false, false);
       
        checkOrder(cycle, false);
        expect(cycle.isRewinding()).andReturn(false);
        expect(cycle.getAttribute(TapestryUtils.PAGE_RENDER_SUPPORT_ATTRIBUTE)).andReturn(prs).anyTimes();
       
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.