-
Notifications
You must be signed in to change notification settings - Fork 0
/
java.applet.d.ts
124 lines (73 loc) · 2.36 KB
/
java.applet.d.ts
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/// <reference path="java.awt.d.ts" />
/// <reference path="java.lang.d.ts" />
/// <reference path="java.util.d.ts" />
/// <reference path="javax.accessibility.d.ts" />
/// <reference path="java.net.d.ts" />
/// <reference path="java.io.d.ts" />
declare module '@afterburnerhq/java.applet' {
import { Image, Panel, Dimension } from '@afterburnerhq/java.awt'
import { String } from '@afterburnerhq/java.lang'
import { Locale, Iterator, Enumeration } from '@afterburnerhq/java.util'
import { AccessibleContext, AccessibleRole, AccessibleStateSet } from '@afterburnerhq/javax.accessibility'
import { URL } from '@afterburnerhq/java.net'
import { InputStream } from '@afterburnerhq/java.io'
export class Applet extends Panel {
constructor();
setStub(arg0: AppletStub): void;
isActive(): boolean;
getDocumentBase(): URL;
getCodeBase(): URL;
getParameter(arg0: String): String;
getAppletContext(): AppletContext;
resize(arg0: number, arg1: number): void;
resize(arg0: Dimension): void;
isValidateRoot(): boolean;
showStatus(arg0: String): void;
getImage(arg0: URL): Image;
getImage(arg0: URL, arg1: String): Image;
static newAudioClip(arg0: URL): AudioClip;
getAudioClip(arg0: URL): AudioClip;
getAudioClip(arg0: URL, arg1: String): AudioClip;
getAppletInfo(): String;
getLocale(): Locale;
getParameterInfo(): Array<Array<String>>;
play(arg0: URL): void;
play(arg0: URL, arg1: String): void;
init(): void;
start(): void;
stop(): void;
destroy(): void;
getAccessibleContext(): AccessibleContext;
}
export namespace Applet {
export class AccessibleApplet extends Panel.AccessibleAWTPanel {
getAccessibleRole(): AccessibleRole;
getAccessibleStateSet(): AccessibleStateSet;
}
}
export interface AppletContext {
getAudioClip(arg0: URL): AudioClip;
getImage(arg0: URL): Image;
getApplet(arg0: String): Applet;
getApplets(): Enumeration<Applet>;
showDocument(arg0: URL): void;
showDocument(arg0: URL, arg1: String): void;
showStatus(arg0: String): void;
setStream(arg0: String, arg1: InputStream): void;
getStream(arg0: String): InputStream;
getStreamKeys(): Iterator<String>;
}
export interface AppletStub {
isActive(): boolean;
getDocumentBase(): URL;
getCodeBase(): URL;
getParameter(arg0: String): String;
getAppletContext(): AppletContext;
appletResize(arg0: number, arg1: number): void;
}
export interface AudioClip {
play(): void;
loop(): void;
stop(): void;
}
}