summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/DOMEvent.java
blob: 4ac8b9d006cd80339c54f0f0e1109d7785090f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package org.eclipse.swt.internal.cocoa;

public class DOMEvent extends NSObject {

public DOMEvent() {
	super();
}

public DOMEvent(int id) {
	super(id);
}

public boolean bubbles() {
	return OS.objc_msgSend(this.id, OS.sel_bubbles) != 0;
}

public boolean cancelable() {
	return OS.objc_msgSend(this.id, OS.sel_cancelable) != 0;
}

public id  currentTarget() {
	int result = OS.objc_msgSend(this.id, OS.sel_currentTarget);
	return result != 0 ? new id (result) : null;
}

public short eventPhase() {
	return (short)OS.objc_msgSend(this.id, OS.sel_eventPhase);
}

public void initEvent___(NSString initEvent, boolean canBubbleArg, boolean cancelableArg) {
	OS.objc_msgSend(this.id, OS.sel_initEvent_1_1_1, initEvent != null ? initEvent.id : 0, canBubbleArg, cancelableArg);
}

public void initEvent_canBubbleArg_cancelableArg_(NSString eventTypeArg, boolean canBubbleArg, boolean cancelableArg) {
	OS.objc_msgSend(this.id, OS.sel_initEvent_1canBubbleArg_1cancelableArg_1, eventTypeArg != null ? eventTypeArg.id : 0, canBubbleArg, cancelableArg);
}

public void preventDefault() {
	OS.objc_msgSend(this.id, OS.sel_preventDefault);
}

public void stopPropagation() {
	OS.objc_msgSend(this.id, OS.sel_stopPropagation);
}

public id  target() {
	int result = OS.objc_msgSend(this.id, OS.sel_target);
	return result != 0 ? new id (result) : null;
}

public long timeStamp() {
	return (long)OS.objc_msgSend(this.id, OS.sel_timeStamp);
}

public NSString type() {
	int result = OS.objc_msgSend(this.id, OS.sel_type);
	return result != 0 ? new NSString(result) : null;
}
}