Examples of createEvent()


Examples of org.itsnat.core.ItsNatDocument.createEvent()

                            synchronized(itsNatDoc)
                            {
                                Document doc = itsNatDoc.getDocument();
                                AbstractView view = ((DocumentView)doc).getDefaultView();

                                mouseEvt = (MouseEvent)itsNatDoc.createEvent("MouseEvents");
                                mouseEvt.initMouseEvent("click",true,true,view,0,
                                        0,0,0,0,false,false,false,false,(short)0/*left button*/,null);

                                buttonElem = buttonElems[i];
                            }
View Full Code Here

Examples of org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap.createEvent()

/*     */
/* 101 */     this.kernelDeployer.deploy(url);
/*     */
/* 104 */     this.kernelDeployer.validate();
/*     */
/* 107 */     KernelEvent startEvent = bootstrap.createEvent("org.jboss.system.server.started", new Long(watch.getLapTime()));
/* 108 */     bootstrap.fireKernelEvent(startEvent);
/*     */
/* 110 */     this.bootstrap = bootstrap;
/*     */   }
/*     */
View Full Code Here

Examples of org.sbml.jsbml.Model.createEvent()

      XMLStreamException, SBMLException {
    SBMLDocument doc = new SBMLDocument(3, 1);
    Model model = doc.createModel("test_model");
    Parameter p = model.createParameter("p1");
    p.setValue(1d);
    Event e = model.createEvent("e1");
    Priority prior = e.createPriority();
    prior.setMath(new ASTNode(1));
    Trigger t = e.createTrigger();
    t.setFormula("time == 1");
    EventAssignment ea = e.createEventAssignment(p, ASTNode
View Full Code Here

Examples of org.uiautomation.ios.wkrdp.events.EventFactory.createEvent()

    }

    if (message instanceof ApplicationDataMessage) {
      ApplicationDataMessage m = (ApplicationDataMessage) message;
      EventFactory EventFactory = new EventFactory();
      Event e = EventFactory.createEvent(m.getMessage());
      if ((e instanceof ChildIframeInserted || e instanceof ChildNodeRemoved)) {
        context.domHasChanged(e);
      }
      if ("Page.frameDetached".equals(m.getMessage().optString("method"))) {
        context.frameDied(m.getMessage());
View Full Code Here

Examples of org.w3c.dom.events.DocumentEvent.createEvent()

                (Element)context.getFocusManager().getCurrentEventTarget();
            if (targetElement == null) {
                return;
            }
            DocumentEvent d = (DocumentEvent)targetElement.getOwnerDocument();
            DOMKeyEvent keyEvt = (DOMKeyEvent)d.createEvent("KeyEvents");
            keyEvt.initKeyEvent(eventType,
                                true,
                                true,
                                evt.isControlDown(),
                                evt.isAltDown(),
View Full Code Here

Examples of org.w3c.dom.events.DocumentEvent.createEvent()

            */
            short button = getButton(evt);
            Point screenXY = evt.getScreenPoint();
            // create the coresponding DOM MouseEvent
            DocumentEvent d = (DocumentEvent)targetElement.getOwnerDocument();
            MouseEvent mouseEvt = (MouseEvent)d.createEvent("MouseEvents");
            mouseEvt.initMouseEvent(eventType,
                                    true,
                                    cancelable,
                                    null,
                                    evt.getClickCount(),
View Full Code Here

Examples of org.w3c.dom.events.DocumentEvent.createEvent()

            }
        }

        Event ev;
        DocumentEvent de = (DocumentEvent)elt.getOwnerDocument();
        ev = de.createEvent("SVGEvents");
        ev.initEvent("SVGLoad", false, false);
        EventTarget t = (EventTarget)elt;

        final String s =
            elt.getAttributeNS(null, SVGConstants.SVG_ONLOAD_ATTRIBUTE);
View Full Code Here

Examples of org.w3c.dom.events.DocumentEvent.createEvent()

            (SVGSVGElement)document.getDocumentElement();
        // Event is dispatched on outermost SVG element.
        EventTarget t = root;

        DocumentEvent de = (DocumentEvent)document;
        Event ev = de.createEvent("SVGEvents");
        ev.initEvent(eventType, false, false);
        t.dispatchEvent(ev);
    }

    /**
 
View Full Code Here

Examples of org.w3c.dom.events.DocumentEvent.createEvent()

            attrRemoved(node, oldv);
        }
  AbstractDocument doc = getCurrentDocument();
  if (doc.getEventsEnabled() && !oldv.equals(newv)) {
      DocumentEvent de = (DocumentEvent)doc;
      MutationEvent ev = (MutationEvent)de.createEvent("MutationEvents");
      ev.initMutationEvent("DOMAttrModified",
         true,    // canBubbleArg
         false,   // cancelableArg
         node,    // relatedNodeArg
         oldv,    // prevValueArg
View Full Code Here

Examples of org.w3c.dom.events.DocumentEvent.createEvent()

     */
    public void fireDOMNodeInsertedIntoDocumentEvent() {
        AbstractDocument doc = getCurrentDocument();
        if (doc.getEventsEnabled()) {
            DocumentEvent de = (DocumentEvent)doc;
            MutationEvent ev = (MutationEvent)de.createEvent("MutationEvents");
            ev.initMutationEvent("DOMNodeInsertedIntoDocument",
                                 true,   // canBubbleArg
                                 false,  // cancelableArg
                                 null,   // relatedNodeArg
                                 null,   // prevValueArg
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.