link start!
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
public interface CustomEvent extends Event {
|
||||
Object getDetail();
|
||||
|
||||
void initCustomEventNS(String str, String str2, boolean z, boolean z2, Object obj);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
public interface DocumentEvent {
|
||||
boolean canDispatch(String str, String str2);
|
||||
|
||||
Event createEvent(String str) throws DOMException;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
public interface Event {
|
||||
public static final short AT_TARGET = (short) 2;
|
||||
public static final short BUBBLING_PHASE = (short) 3;
|
||||
public static final short CAPTURING_PHASE = (short) 1;
|
||||
|
||||
boolean getBubbles();
|
||||
|
||||
boolean getCancelable();
|
||||
|
||||
EventTarget getCurrentTarget();
|
||||
|
||||
boolean getDefaultPrevented();
|
||||
|
||||
short getEventPhase();
|
||||
|
||||
String getNamespaceURI();
|
||||
|
||||
EventTarget getTarget();
|
||||
|
||||
long getTimeStamp();
|
||||
|
||||
String getType();
|
||||
|
||||
void initEvent(String str, boolean z, boolean z2);
|
||||
|
||||
void initEventNS(String str, String str2, boolean z, boolean z2);
|
||||
|
||||
void preventDefault();
|
||||
|
||||
void stopImmediatePropagation();
|
||||
|
||||
void stopPropagation();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
public interface EventListener {
|
||||
void handleEvent(Event event);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.DOMException;
|
||||
|
||||
public interface EventTarget {
|
||||
void addEventListener(String str, EventListener eventListener, boolean z);
|
||||
|
||||
void addEventListenerNS(String str, String str2, EventListener eventListener, boolean z, Object obj);
|
||||
|
||||
boolean dispatchEvent(Event event) throws EventException, DOMException;
|
||||
|
||||
void removeEventListener(String str, EventListener eventListener, boolean z);
|
||||
|
||||
void removeEventListenerNS(String str, String str2, EventListener eventListener, boolean z);
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.views.AbstractView;
|
||||
|
||||
public interface KeyboardEvent extends UIEvent {
|
||||
public static final int DOM_KEY_LOCATION_LEFT = 1;
|
||||
public static final int DOM_KEY_LOCATION_NUMPAD = 3;
|
||||
public static final int DOM_KEY_LOCATION_RIGHT = 2;
|
||||
public static final int DOM_KEY_LOCATION_STANDARD = 0;
|
||||
|
||||
boolean getAltKey();
|
||||
|
||||
boolean getCtrlKey();
|
||||
|
||||
String getKeyIdentifier();
|
||||
|
||||
int getKeyLocation();
|
||||
|
||||
boolean getMetaKey();
|
||||
|
||||
boolean getModifierState(String str);
|
||||
|
||||
boolean getShiftKey();
|
||||
|
||||
void initKeyboardEvent(String str, boolean z, boolean z2, AbstractView abstractView, String str2, int i, String str3);
|
||||
|
||||
void initKeyboardEventNS(String str, String str2, boolean z, boolean z2, AbstractView abstractView, String str3, int i, String str4);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.views.AbstractView;
|
||||
|
||||
public interface MouseEvent extends UIEvent {
|
||||
boolean getAltKey();
|
||||
|
||||
short getButton();
|
||||
|
||||
int getClientX();
|
||||
|
||||
int getClientY();
|
||||
|
||||
boolean getCtrlKey();
|
||||
|
||||
boolean getMetaKey();
|
||||
|
||||
boolean getModifierState(String str);
|
||||
|
||||
EventTarget getRelatedTarget();
|
||||
|
||||
int getScreenX();
|
||||
|
||||
int getScreenY();
|
||||
|
||||
boolean getShiftKey();
|
||||
|
||||
void initMouseEvent(String str, boolean z, boolean z2, AbstractView abstractView, int i, int i2, int i3, int i4, int i5, boolean z3, boolean z4, boolean z5, boolean z6, short s, EventTarget eventTarget);
|
||||
|
||||
void initMouseEventNS(String str, String str2, boolean z, boolean z2, AbstractView abstractView, int i, int i2, int i3, int i4, int i5, short s, EventTarget eventTarget, String str3);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
public interface MutationEvent extends Event {
|
||||
public static final short ADDITION = (short) 2;
|
||||
public static final short MODIFICATION = (short) 1;
|
||||
public static final short REMOVAL = (short) 3;
|
||||
|
||||
short getAttrChange();
|
||||
|
||||
String getAttrName();
|
||||
|
||||
String getNewValue();
|
||||
|
||||
String getPrevValue();
|
||||
|
||||
Node getRelatedNode();
|
||||
|
||||
void initMutationEvent(String str, boolean z, boolean z2, Node node, String str2, String str3, String str4, short s);
|
||||
|
||||
void initMutationEventNS(String str, String str2, boolean z, boolean z2, Node node, String str3, String str4, String str5, short s);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
public interface MutationNameEvent extends MutationEvent {
|
||||
String getPrevNamespaceURI();
|
||||
|
||||
String getPrevNodeName();
|
||||
|
||||
void initMutationNameEvent(String str, boolean z, boolean z2, Node node, String str2, String str3);
|
||||
|
||||
void initMutationNameEventNS(String str, String str2, boolean z, boolean z2, Node node, String str3, String str4);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.views.AbstractView;
|
||||
|
||||
public interface TextEvent extends UIEvent {
|
||||
String getData();
|
||||
|
||||
void initTextEvent(String str, boolean z, boolean z2, AbstractView abstractView, String str2);
|
||||
|
||||
void initTextEventNS(String str, String str2, boolean z, boolean z2, AbstractView abstractView, String str3);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.w3c.dom.events;
|
||||
|
||||
import org.w3c.dom.views.AbstractView;
|
||||
|
||||
public interface UIEvent extends Event {
|
||||
int getDetail();
|
||||
|
||||
AbstractView getView();
|
||||
|
||||
void initUIEvent(String str, boolean z, boolean z2, AbstractView abstractView, int i);
|
||||
|
||||
void initUIEventNS(String str, String str2, boolean z, boolean z2, AbstractView abstractView, int i);
|
||||
}
|
||||
Reference in New Issue
Block a user