org.w3c.dom.events
8 classes of the module java.xml.
Load them with:
using {
"org.w3c.dom.events"
}
DocumentEvent#
interface · org.w3c.dom.events.DocumentEvent
Methods
| Method | Ring call | Java overloads |
|---|---|---|
createEvent | createEvent(eventType) | Event createEvent(String eventType) |
Event#
interface · org.w3c.dom.events.Event
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CAPTURING_PHASE | short | constant · static | o.CAPTURING_PHASE |
AT_TARGET | short | constant · static | o.AT_TARGET |
BUBBLING_PHASE | short | constant · static | o.BUBBLING_PHASE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getBubbles | getBubbles() | boolean getBubbles() |
getCancelable | getCancelable() | boolean getCancelable() |
getCurrentTarget | getCurrentTarget() | EventTarget getCurrentTarget() |
getEventPhase | getEventPhase() | short getEventPhase() |
getTarget | getTarget() | EventTarget getTarget() |
getTimeStamp | getTimeStamp() | long getTimeStamp() |
getType | getType() | String getType() |
initEvent | initEvent(eventTypeArg,canBubbleArg,cancelableArg) | void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg) |
preventDefault | preventDefault() | void preventDefault() |
stopPropagation | stopPropagation() | void stopPropagation() |
EventException#
class · extends RuntimeException · org.w3c.dom.events.EventException
Constructors
new EventException(short code, String message) |
Ring: new EventException(args) uses the constructor with the fewest parameters (at least one); new EventException makes the object with the constructor without parameters; the others: (new EventException).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
code | short | read, write | o.code o.code = v |
UNSPECIFIED_EVENT_TYPE_ERR | short | constant · static | o.UNSPECIFIED_EVENT_TYPE_ERR |
The methods and fields of RuntimeException are inherited.
EventsEventListener#
interface · org.w3c.dom.events.EventListener
Methods
| Method | Ring call | Java overloads |
|---|---|---|
handleEvent | handleEvent(evt) | void handleEvent(Event evt) |
EventTarget#
interface · org.w3c.dom.events.EventTarget
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addEventListener | addEventListener(type,listener,useCapture) | void addEventListener(String type, EventListener listener, boolean useCapture) |
dispatchEvent | dispatchEvent(evt) | boolean dispatchEvent(Event evt) |
removeEventListener | removeEventListener(type,listener,useCapture) | void removeEventListener(String type, EventListener listener, boolean useCapture) |
MouseEvent#
interface · org.w3c.dom.events.MouseEvent
Extends: UIEvent
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CAPTURING_PHASE | short | constant · static | o.CAPTURING_PHASE |
AT_TARGET | short | constant · static | o.AT_TARGET |
BUBBLING_PHASE | short | constant · static | o.BUBBLING_PHASE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAltKey | getAltKey() | boolean getAltKey() |
getBubbles | getBubbles() | boolean getBubbles() |
getButton | getButton() | short getButton() |
getCancelable | getCancelable() | boolean getCancelable() |
getClientX | getClientX() | int getClientX() |
getClientY | getClientY() | int getClientY() |
getCtrlKey | getCtrlKey() | boolean getCtrlKey() |
getCurrentTarget | getCurrentTarget() | EventTarget getCurrentTarget() |
getDetail | getDetail() | int getDetail() |
getEventPhase | getEventPhase() | short getEventPhase() |
getMetaKey | getMetaKey() | boolean getMetaKey() |
getRelatedTarget | getRelatedTarget() | EventTarget getRelatedTarget() |
getScreenX | getScreenX() | int getScreenX() |
getScreenY | getScreenY() | int getScreenY() |
getShiftKey | getShiftKey() | boolean getShiftKey() |
getTarget | getTarget() | EventTarget getTarget() |
getTimeStamp | getTimeStamp() | long getTimeStamp() |
getType | getType() | String getType() |
getView | getView() | AbstractView getView() |
initEvent | initEvent(eventTypeArg,canBubbleArg,cancelableArg) | void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg) |
initMouseEvent | initMouseEvent(typeArg,canBubbleArg,cancelableArg,viewArg,detailArg,screenXArg,screenYArg,clientXArg,clientYArg,ctrlKeyArg,altKeyArg,shiftKeyArg,metaKeyArg,buttonArg,relatedTargetArg) | void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg) |
initUIEvent | initUIEvent(typeArg,canBubbleArg,cancelableArg,viewArg,detailArg) | void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg) |
preventDefault | preventDefault() | void preventDefault() |
stopPropagation | stopPropagation() | void stopPropagation() |
MutationEvent#
interface · org.w3c.dom.events.MutationEvent
Extends: Event
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MODIFICATION | short | constant · static | o.MODIFICATION |
ADDITION | short | constant · static | o.ADDITION |
REMOVAL | short | constant · static | o.REMOVAL |
CAPTURING_PHASE | short | constant · static | o.CAPTURING_PHASE |
AT_TARGET | short | constant · static | o.AT_TARGET |
BUBBLING_PHASE | short | constant · static | o.BUBBLING_PHASE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAttrChange | getAttrChange() | short getAttrChange() |
getAttrName | getAttrName() | String getAttrName() |
getBubbles | getBubbles() | boolean getBubbles() |
getCancelable | getCancelable() | boolean getCancelable() |
getCurrentTarget | getCurrentTarget() | EventTarget getCurrentTarget() |
getEventPhase | getEventPhase() | short getEventPhase() |
getNewValue | getNewValue() | String getNewValue() |
getPrevValue | getPrevValue() | String getPrevValue() |
getRelatedNode | getRelatedNode() | Node getRelatedNode() |
getTarget | getTarget() | EventTarget getTarget() |
getTimeStamp | getTimeStamp() | long getTimeStamp() |
getType | getType() | String getType() |
initEvent | initEvent(eventTypeArg,canBubbleArg,cancelableArg) | void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg) |
initMutationEvent | initMutationEvent(typeArg,canBubbleArg,cancelableArg,relatedNodeArg,prevValueArg,newValueArg,attrNameArg,attrChangeArg) | void initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg) |
preventDefault | preventDefault() | void preventDefault() |
stopPropagation | stopPropagation() | void stopPropagation() |
UIEvent#
interface · org.w3c.dom.events.UIEvent
Extends: Event
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CAPTURING_PHASE | short | constant · static | o.CAPTURING_PHASE |
AT_TARGET | short | constant · static | o.AT_TARGET |
BUBBLING_PHASE | short | constant · static | o.BUBBLING_PHASE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getBubbles | getBubbles() | boolean getBubbles() |
getCancelable | getCancelable() | boolean getCancelable() |
getCurrentTarget | getCurrentTarget() | EventTarget getCurrentTarget() |
getDetail | getDetail() | int getDetail() |
getEventPhase | getEventPhase() | short getEventPhase() |
getTarget | getTarget() | EventTarget getTarget() |
getTimeStamp | getTimeStamp() | long getTimeStamp() |
getType | getType() | String getType() |
getView | getView() | AbstractView getView() |
initEvent | initEvent(eventTypeArg,canBubbleArg,cancelableArg) | void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg) |
initUIEvent | initUIEvent(typeArg,canBubbleArg,cancelableArg,viewArg,detailArg) | void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg) |
preventDefault | preventDefault() | void preventDefault() |
stopPropagation | stopPropagation() | void stopPropagation() |