Until now, I thought that I should import EventListener to detect any event without thinking too much about it.
However, I am looking into the internal handling of EventListener.
There are pages like the ones below, but I didn't know how to deal with them internally.
I understand that you are doing a lot of things with the handleEvent method in EventListener.
Can't I see the source code of the handleEvent?
For example, java may not necessarily be java.
Thank you for your cooperation.
java scala
EventListener#handleEvent Source Code
If you download and install the JDK and deploy C:\Program Files\Java\jdk1.8.0_77\src.zip
, you can see src\org\w3c\dom\events\EventListener.java
, for example,
Instead, if you want to know how these EventListener
are handled within the event processing system (internal processing on the object side that generates the event), com/sun/org/apache/xerces/internal/dom/DocumentImpl.java
may be helpful.
DocumentImpl#addEventListener(...)
registers listenersDocumentImpl#dispatchEvent(...)
In the method, EventListener#handleEvent()
is calledFor example, java may not necessarily be java.
If you'd like to know more about common UI event processing, it might be easier to look around
© 2024 OneMinuteCode. All rights reserved.