[ 
https://issues.apache.org/jira/browse/XERCESJ-1429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062633#comment-13062633
 ] 

Thiwanka Somasiri commented on XERCESJ-1429:
--------------------------------------------

Hi Michael,

     I have attached the files and need to mention the latest changes I made 
recently. Since there is only one EventTarget (thus there are no Ancestor 
EventTargets) in this case I ignored the "useCapture" in addActionListener() 
and removeActionListener(). In dispatchEvent(Event evt) we have to get the 
Event's type and check whether there are any EventListeners listening on the 
particular Event. So I implemented a class called ListenerCount.java which is 
similar to LCount.java(used in DocumentImpl) to keep track of the counts on the 
EventListeners registered on the EventTarget.

     I added initLoadEvent() and initProgressEvent() to LoadEventImpl.java and 
ProgressEventImpl.java classes respectively. After instantiating objects from 
these classes I call the initXXXEvent("XXX", false, false) passing "false" 
values on canBubbleArg and cancelableArg parameters.

     Can you review the dispatchEvent() and other changes I have done and tell 
me how should I improve on them.

Thanks.


> [GSoC]: Asynchronous LSParser and parseWithContext
> --------------------------------------------------
>
>                 Key: XERCESJ-1429
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1429
>             Project: Xerces2-J
>          Issue Type: New Feature
>          Components: DOM (Level 3 Load & Save)
>    Affects Versions: 2.9.1
>            Reporter: Michael Glavassevich
>            Assignee: Thiwanka Somasiri
>              Labels: gsoc2011
>         Attachments: AsynchronousDOMParserImplPatch.txt, 
> ListenerCountPatch.txt, LoadEventImplPatch.txt, ProgressEventImplPatch.txt
>
>
> The goal of this project is to complete the implementation of the DOM Level 3 
> LSParser. Though Xerces has a functional LSParser, there are a couple parts 
> of the spec which still need to be implemented. This includes an asynchronous 
> [1] version which returns from the parse method immediately and builds the 
> DOM tree on another thread as well as parseWithContext [2] which allows a 
> document fragment to be parsed and attached to an existing DOM.
> Possible Mentors: Michael Glavassevich
> [1] 
> http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#LS-LSParser
> [2] 
> http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#LS-LSParser-parseWithContext

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to