Checking in Sources/Docs of DOM Level 2 from :
http://www.w3.org/DOM/DOMTM git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
7d5c881d20
commit
82b88df622
231 files changed
+66110
No files matched your search
+278
@@ -0,0 +1,278 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!--
|
||||
Generated: Thu Nov 09 17:44:21 EST 2000 jfouffa.w3.org
|
||||
-->
|
||||
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Java Language Binding</title>
|
||||
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
||||
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
|
||||
<link rel='next' href='ecma-script-binding.html' />
|
||||
<link rel='contents' href='Overview.html#contents' />
|
||||
<link rel='index' href='def-index.html' />
|
||||
<link rel='previous' href='idl-definitions.html' />
|
||||
</head>
|
||||
<body>
|
||||
<div class='navbar' align='center'><a accesskey='p'
|
||||
href='idl-definitions.html'>previous</a> <a accesskey='n'
|
||||
href='ecma-script-binding.html'>next</a> <a accesskey='c'
|
||||
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
||||
href='def-index.html'>index</a>
|
||||
|
||||
<hr title='Navigation area separator' />
|
||||
</div>
|
||||
|
||||
<div class='noprint' style='text-align: right'>
|
||||
<p style='font-family: monospace;font-size:small'>13 November,
|
||||
2000</p>
|
||||
</div>
|
||||
|
||||
<div class='div1'><a id="java-binding" name='java-binding'></a>
|
||||
|
||||
<h1 id='java-binding-h1' class='adiv1'>Appendix B: Java Language
|
||||
Binding</h1>
|
||||
|
||||
<p>This appendix contains the complete Java [<a class='noxref'
|
||||
href='references.html#Java'>Java</a>] bindings for the Level 2
|
||||
Document Object Model Events.</p>
|
||||
|
||||
<p>The Java files are also available as <a
|
||||
href='java-binding.zip'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/java-binding.zip</a></p>
|
||||
|
||||
<h3 id='org.w3c.dom.events.EventException'>
|
||||
org/w3c/dom/events/EventException.java:</h3>
|
||||
|
||||
<div class='java-code'>
|
||||
<pre>
|
||||
package org.w3c.dom.events;
|
||||
|
||||
public class EventException extends RuntimeException {
|
||||
public EventException(short code, String message) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
}
|
||||
public short code;
|
||||
// EventExceptionCode
|
||||
public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0;
|
||||
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<h3 id='org.w3c.dom.events.EventTarget'>
|
||||
org/w3c/dom/events/EventTarget.java:</h3>
|
||||
|
||||
<div class='java-code'>
|
||||
<pre>
|
||||
package org.w3c.dom.events;
|
||||
|
||||
public interface EventTarget {
|
||||
public void addEventListener(String type,
|
||||
EventListener listener,
|
||||
boolean useCapture);
|
||||
|
||||
public void removeEventListener(String type,
|
||||
EventListener listener,
|
||||
boolean useCapture);
|
||||
|
||||
public boolean dispatchEvent(Event evt)
|
||||
throws EventException;
|
||||
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<h3 id='org.w3c.dom.events.EventListener'>
|
||||
org/w3c/dom/events/EventListener.java:</h3>
|
||||
|
||||
<div class='java-code'>
|
||||
<pre>
|
||||
package org.w3c.dom.events;
|
||||
|
||||
public interface EventListener {
|
||||
public void handleEvent(Event evt);
|
||||
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<h3 id='org.w3c.dom.events.Event'>
|
||||
org/w3c/dom/events/Event.java:</h3>
|
||||
|
||||
<div class='java-code'>
|
||||
<pre>
|
||||
package org.w3c.dom.events;
|
||||
|
||||
public interface Event {
|
||||
// PhaseType
|
||||
public static final short CAPTURING_PHASE = 1;
|
||||
public static final short AT_TARGET = 2;
|
||||
public static final short BUBBLING_PHASE = 3;
|
||||
|
||||
public String getType();
|
||||
|
||||
public EventTarget getTarget();
|
||||
|
||||
public EventTarget getCurrentTarget();
|
||||
|
||||
public short getEventPhase();
|
||||
|
||||
public boolean getBubbles();
|
||||
|
||||
public boolean getCancelable();
|
||||
|
||||
public long getTimeStamp();
|
||||
|
||||
public void stopPropagation();
|
||||
|
||||
public void preventDefault();
|
||||
|
||||
public void initEvent(String eventTypeArg,
|
||||
boolean canBubbleArg,
|
||||
boolean cancelableArg);
|
||||
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<h3 id='org.w3c.dom.events.DocumentEvent'>
|
||||
org/w3c/dom/events/DocumentEvent.java:</h3>
|
||||
|
||||
<div class='java-code'>
|
||||
<pre>
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
public interface DocumentEvent {
|
||||
public Event createEvent(String eventType)
|
||||
throws DOMException;
|
||||
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<h3 id='org.w3c.dom.events.UIEvent'>
|
||||
org/w3c/dom/events/UIEvent.java:</h3>
|
||||
|
||||
<div class='java-code'>
|
||||
<pre>
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.views.AbstractView;
|
||||
|
||||
public interface UIEvent extends Event {
|
||||
public AbstractView getView();
|
||||
|
||||
public int getDetail();
|
||||
|
||||
public void initUIEvent(String typeArg,
|
||||
boolean canBubbleArg,
|
||||
boolean cancelableArg,
|
||||
AbstractView viewArg,
|
||||
int detailArg);
|
||||
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<h3 id='org.w3c.dom.events.MouseEvent'>
|
||||
org/w3c/dom/events/MouseEvent.java:</h3>
|
||||
|
||||
<div class='java-code'>
|
||||
<pre>
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.views.AbstractView;
|
||||
|
||||
public interface MouseEvent extends UIEvent {
|
||||
public int getScreenX();
|
||||
|
||||
public int getScreenY();
|
||||
|
||||
public int getClientX();
|
||||
|
||||
public int getClientY();
|
||||
|
||||
public boolean getCtrlKey();
|
||||
|
||||
public boolean getShiftKey();
|
||||
|
||||
public boolean getAltKey();
|
||||
|
||||
public boolean getMetaKey();
|
||||
|
||||
public short getButton();
|
||||
|
||||
public EventTarget getRelatedTarget();
|
||||
|
||||
public 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);
|
||||
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<h3 id='org.w3c.dom.events.MutationEvent'>
|
||||
org/w3c/dom/events/MutationEvent.java:</h3>
|
||||
|
||||
<div class='java-code'>
|
||||
<pre>
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
public interface MutationEvent extends Event {
|
||||
// attrChangeType
|
||||
public static final short MODIFICATION = 1;
|
||||
public static final short ADDITION = 2;
|
||||
public static final short REMOVAL = 3;
|
||||
|
||||
public Node getRelatedNode();
|
||||
|
||||
public String getPrevValue();
|
||||
|
||||
public String getNewValue();
|
||||
|
||||
public String getAttrName();
|
||||
|
||||
public short getAttrChange();
|
||||
|
||||
public void initMutationEvent(String typeArg,
|
||||
boolean canBubbleArg,
|
||||
boolean cancelableArg,
|
||||
Node relatedNodeArg,
|
||||
String prevValueArg,
|
||||
String newValueArg,
|
||||
String attrNameArg,
|
||||
short attrChangeArg);
|
||||
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- div1 java-binding -->
|
||||
<div class='navbar' align='center'>
|
||||
<hr title='Navigation area separator' />
|
||||
<a accesskey='p' href='idl-definitions.html'>previous</a> <a
|
||||
accesskey='n' href='ecma-script-binding.html'>next</a> <a
|
||||
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
||||
accesskey='i' href='def-index.html'>index</a></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in new issue
Block a user