Examples of addEventListener()


Examples of javax.jcr.observation.ObservationManager.addEventListener()

                List<EventListener> listeners = new ArrayList<EventListener>(subscr.size());
                try {
                    for (EventSubscription s : subscr) {
                        EventListener listener = s.getLocalEventListener();
                        listeners.add(listener);
                        obsMgr.addEventListener(listener, EventSubscription.ALL_EVENTS,
                                "/", true, null, null, false);
                    }
                    return call.run();
                } finally {
                    for (EventListener listener : listeners) {
View Full Code Here

Examples of jfix.zk.Image.addEventListener()

  private void appendControls() {
    remove(controls);
    add("", controls);
    Image trash = new Image(Images.UserTrashFull);
    trash.setDroppable(toString());
    trash.addEventListener(Events.ON_DROP, new EventListener() {
      public void onEvent(Event evt) throws Exception {
        DropEvent dropEvent = (DropEvent) evt;
        getRows().removeChild(
            dropEvent.getDragged().getParent().getParent());
      }
View Full Code Here

Examples of jfix.zk.Textfield.addEventListener()

        ((PropertyEditor) textfield.getParent().getNextSibling()
            .getFirstChild()).getProperty().setName(value);
        ZK.replace(textfield, label);
      }
    };
    textfield.addEventListener(Events.ON_OK, labelEditPerformed);
    textfield.addEventListener(Events.ON_BLUR, labelEditPerformed);
    ZK.replace(label, textfield);
    textfield.focus();
  }
View Full Code Here

Examples of net.sf.archimede.observation.JcrObservationManager.addEventListener()

    try {
            Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();
            Node folderNode = session.getNodeByUUID(folder.getId());
           
            JcrObservationManager jom = JcrObservationManager.getInstance();
            jom.addEventListener(el, Event.NODE_ADDED, folderNode.getPath(), true, null, null, false);
        } catch (Exception e) {
      throw new IndexationException("Folder with version id : " + folder.getId() + " could not be indexed", e);
    }
  }
}
View Full Code Here

Examples of org.apache.airavata.ws.monitor.Monitor.addEventListener()

    public RunMenuItem(XBayaEngine engine, XBayaToolBar toolBar) {
        this.engine = engine;
        setToolBar(toolBar);
        createWorkflowMenu();
        Monitor monitor = this.engine.getMonitor();
        monitor.addEventListener(this);
        monitor.getConfiguration().addEventListener(this);
        engine.getConfiguration().registerExecutionModeChangeListener(this);
        XBayaToolBar.setGroupOrder(EXECUTE_ACTIONS, 5);
        XBayaToolBar.setGroupOrder(EXECUTE_MONITOR_ACTIONS, 6);
    }
View Full Code Here

Examples of org.apache.airavata.xbaya.monitor.Monitor.addEventListener()

    public RunMenuItem(XBayaEngine engine, XBayaToolBar toolBar) {
        this.engine = engine;
        setToolBar(toolBar);
        createWorkflowMenu();
        Monitor monitor = this.engine.getMonitor();
        monitor.addEventListener(this);
        monitor.getConfiguration().addEventListener(this);
        engine.getConfiguration().registerExecutionModeChangeListener(this);
        XBayaToolBar.setGroupOrder(EXECUTE_ACTIONS, 5);
        XBayaToolBar.setGroupOrder(EXECUTE_MONITOR_ACTIONS, 6);
    }
View Full Code Here

Examples of org.apache.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.commons.configuration2.event.EventSource.addEventListener()

        BuilderConfigurationWrapperFactory factory =
                new BuilderConfigurationWrapperFactory(EventSourceSupport.DUMMY);
        EventSource src =
                (EventSource) factory.createBuilderConfigurationWrapper(
                        HierarchicalConfiguration.class, builder);
        src.addEventListener(ConfigurationEvent.ANY, null);
    }

    /**
     * Tests whether EventSource methods can be delegated to the builder.
     */
 
View Full Code Here

Examples of org.apache.commons.configuration2.reloading.ReloadingController.addEventListener()

    public void testResetReloadingStateOnResultCreation()
            throws ConfigurationException
    {
        ReloadingController controller =
                EasyMock.createMock(ReloadingController.class);
        controller.addEventListener(EasyMock.eq(ReloadingEvent.ANY),
                EasyMock.anyObject(EventListener.class));
        controller.resetReloadingState();
        EasyMock.replay(controller);
        BasicConfigurationBuilder<Configuration> builder =
                new BasicConfigurationBuilder<Configuration>(
View Full Code Here

Examples of org.apache.cxf.event.EventProcessor.addEventListener()

            instrumentations = new LinkedList<Instrumentation>();
            //regist to the event process
            ComponentEventFilter componentEventFilter = new ComponentEventFilter();
            EventProcessor ep = bus.getExtension(EventProcessor.class);
            if (null != ep) {               
                ep.addEventListener((EventListener)this, componentEventFilter);
            }   
        }
           
        if (getInstrumentation().isJMXEnabled()) { 
            LOG.fine("JMX is enabled.");
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.