Examples of addEventListener()


Examples of org.w3c.dom.events.EventTarget.addEventListener()

        addScriptingListeners(document.getDocumentElement());

        // Add the listeners responsible of updating the event attributes
        EventTarget et = (EventTarget)document;
        domNodeInsertedListener = new DOMNodeInsertedListener();
        et.addEventListener("DOMNodeInserted",
                            domNodeInsertedListener,
                            false);
        domNodeRemovedListener = new DOMNodeRemovedListener();
        et.addEventListener("DOMAttrRemoved",
                            domNodeRemovedListener,
View Full Code Here

Examples of org.w3c.dom.svg.SVGSVGElement.addEventListener()


    class SVGScrollDocumentLoaderListener extends SVGDocumentLoaderAdapter {
        public void documentLoadingCompleted(SVGDocumentLoaderEvent e) {
            SVGSVGElement root = e.getSVGDocument().getRootElement();
            root.addEventListener
                (SVGConstants.SVG_SVGZOOM_EVENT_TYPE,
                 new EventListener() {
                     public void handleEvent(Event evt) {
                         if (!(evt.getTarget() instanceof SVGSVGElement))
                             return;
View Full Code Here

Examples of org.w3c.flex.forks.dom.svg.SVGSVGElement.addEventListener()


    class SVGScrollDocumentLoaderListener extends SVGDocumentLoaderAdapter {
        public void documentLoadingCompleted(SVGDocumentLoaderEvent e) {
            SVGSVGElement root = e.getSVGDocument().getRootElement();
            root.addEventListener
                (SVGConstants.SVG_SVGZOOM_EVENT_TYPE,
                 new EventListener() {
                     public void handleEvent(Event evt) {
                         if (!(evt.getTarget() instanceof SVGSVGElement))
                             return;
View Full Code Here

Examples of org.zkforge.timeplot.Plotinfo.addEventListener()

        plot1.setShowValues(true);
//        plot1.setHideValueFlag(true);
        plot1.setRoundValues(false);
       

        plot1.addEventListener("onOverPlotData",new EventListener()
        {

            @Override
            public void onEvent(Event arg0) throws Exception
            {
View Full Code Here

Examples of org.zkoss.zk.ui.Component.addEventListener()

    //other url, assume login fail
    if (!comp.isListenerAvailable(ZkAuthenticationEntryPoint.ON_ACEGILOGIN, true)) {
      final EventListener listener = new ShowWindowEventListener();
      comp.setAttribute(ZkAuthenticationEntryPoint.ON_ACEGILOGIN, listener);
      comp.addEventListener(ZkAuthenticationEntryPoint.ON_ACEGILOGIN, listener);
    }
   
      Events.postEvent(new Event(ZkAuthenticationEntryPoint.ON_ACEGILOGIN, comp, url));
  }
View Full Code Here

Examples of org.zkoss.zk.ui.Page.addEventListener()

      }
    } else if (target instanceof Page) {
      final Page target0 = (Page) target;
      for (final Iterator it = listeners.iterator(); it.hasNext();) {
        final EventListener listener = (EventListener) it.next();
        target0.addEventListener(evtname, listener);
      }
    }
  }
}
View Full Code Here

Examples of org.zkoss.zss.app.zul.ctrl.DesktopWorkbenchContext.addEventListener()

    return Zssapp.getDesktopCellStyleContext(this);
  }

  public void onCreate() {
    final DesktopWorkbenchContext workbenchCtrl = getDesktopWorkbenchContext();
    workbenchCtrl.addEventListener(Consts.ON_WORKBOOK_CHANGED, new EventListener() {
      public void onEvent(Event event) throws Exception {
        setDisabled(!workbenchCtrl.getWorkbookCtrl().hasBook());
      }
    });
    if (WebApps.getFeature("pe"))
View Full Code Here

Examples of org.zkoss.zss.app.zul.ctrl.WorkbookCtrl.addEventListener()

    formulaColumn = 0;
  }

  public void onCreate() {
    final WorkbookCtrl bookCtrl = getDesktopWorkbenchContext().getWorkbookCtrl();
    bookCtrl.addEventListener(Events.ON_CELL_FOUCSED, new EventListener() {
      @Override
      public void onEvent(Event event) throws Exception {
        CellEvent cellEvent = (CellEvent)event;
        everFocusCell = true;
View Full Code Here

Examples of org.zkoss.zul.Button.addEventListener()

        plotinfo.setTimeGeometry(tg);
        plotinfo.setValueGeometry(vg);
        timeplot.setParent(comp);
        Button btn = new Button("click");
        btn.setParent(comp);
        btn.addEventListener("onClick", new EventListener()
        {

            @Override
            public void onEvent(Event event) throws Exception
            {
View Full Code Here

Examples of org.zkoss.zul.Checkbox.addEventListener()

        private void appendCheckbox(final Row row,
                final CustomerCommunication customerCommunication) {
            final Checkbox checkBoxReviewed = new Checkbox();
            checkBoxReviewed.setChecked(customerCommunication.getReviewed());

            checkBoxReviewed.addEventListener(Events.ON_CHECK,
                    new EventListener() {

                        @Override
                        public void onEvent(Event arg0) throws Exception {
                            customerCommunication.setReviewed(checkBoxReviewed.isChecked());
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.