Package org.w3c.dom.events

Examples of org.w3c.dom.events.Event


                startDocumentLoader();
                return;
            }

            if (eventsEnabled) {
                Event evt = svgDocument.createEvent("SVGEvents");
                evt.initEvent("SVGLoad", false, false);
                ((EventTarget)(svgDocument.getRootElement())).dispatchEvent(evt);
                ((EventTarget)svgDocument).addEventListener("DOMAttrModified",
                                        new MutationListener(bridgeContext), false);
            }
        }
View Full Code Here


    {
        if (obj == null)
            return "null";
        else if (obj instanceof Event)
        {
            Event evt = (Event)obj;
            return toString(evt.getCurrentTarget()) + " " + evt.getType();
        }
        else if (obj instanceof AbstractView)
            return "AbstractView";
        else if (obj instanceof Node)
        {
View Full Code Here

        fillTextInput(treeNode.getPosInput().getHTMLInputElement(),Integer.toString(pos));
    }

    public void fillTextInput(Element elem,String value)
    {
        Event event = util.createHTMLEvent("change");
        ((ItsNatEvent)event).setExtraParam("value",value); // ItsNatHTMLInputText transports the new value by this way
        util.dispatchEvent(elem,event);
    }
View Full Code Here

                }
                eventKey.initKeyEvent("keypress",true,true,((DocumentView)doc).getDefaultView(),
                        false,false,false,false,0,'a'); // 'a' = 97
                boolean res2 = ((EventTarget)nodeToClick).dispatchEvent(eventKey);

                Event eventChange;
                synchronized(itsNatDoc) // no hace falta pero por si acaso
                {
                    eventChange = (Event)((DocumentEvent)doc).createEvent("HTMLEvents");
                }
                eventChange.initEvent("blur",true,true);
                boolean res3 = ((EventTarget)nodeToClick).dispatchEvent(eventChange);

                ItsNatUserEvent userEvent;
                synchronized(itsNatDoc) // no hace falta pero por si acaso
                {
View Full Code Here

        sendHTMLEvent(elem,type,true);
    }

    public void sendHTMLEvent(Element elem,String type,boolean wait)
    {
        Event event;

        synchronized(itsNatDoc)
        {
            event = createHTMLEvent(type);
        }
View Full Code Here

        sendMouseEvent(elem,type,false);
    }

    public void sendMouseEvent(Element elem,String type,boolean shiftKey)
    {
        Event event;
        synchronized(itsNatDoc)
        {
            event = createMouseEvent(type,shiftKey);
        }
View Full Code Here

    }

    private Event createHTMLEvent(String type)
    {
        Document doc = itsNatDoc.getDocument();
        Event event = ((DocumentEvent)doc).createEvent("HTMLEvents");
        event.initEvent(type,true,true);
        return event;
    }
View Full Code Here

        this.itsNatDoc = itsNatDoc;
    }

    public void sendHTMLEvent(Element elem,String type)
    {
        Event event = createHTMLEvent(type);
        dispatchEvent(elem,event);
    }
View Full Code Here

        sendMouseEvent(elem,type,false);
    }

    public void sendMouseEvent(Element elem,String type,boolean shiftKey)
    {
        Event event = createMouseEvent(type,shiftKey);
        dispatchEvent(elem,event);
    }
View Full Code Here

    }

    public Event createHTMLEvent(String type)
    {
        Document doc = itsNatDoc.getDocument();
        Event event = ((DocumentEvent)doc).createEvent("HTMLEvents");
        event.initEvent(type,true,true);
        return event;
    }
View Full Code Here

TOP

Related Classes of org.w3c.dom.events.Event

Copyright © 2018 www.massapicom. 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.