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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
/* */ package NET.worlds.console;
/* */
/* */
/* */ class IEWebControlImp
/* */ extends WebControlImp
/* */ {
/* */ private int nativeIEInstance;
/* */
/* */ private int m_hwnd;
/* */
/* */ private boolean detached;
/* */
/* */
/* */ private native boolean nativeInit(int paramInt, boolean paramBoolean);
/* */
/* */
/* */ private native void nativeDestroy();
/* */
/* */
/* */ private native void nativeSetURL(String paramString1, String paramString2);
/* */
/* */ private native void nativeGoBack();
/* */
/* */ private native void nativeGoForward();
/* */
/* */ private native void nativeStop();
/* */
/* */ private native void nativeRefresh();
/* */
/* */ private native void nativeHome();
/* */
/* */ private native void nativePrint(int paramInt1, int paramInt2);
/* */
/* */ private native void nativeResize(int paramInt1, int paramInt2, int paramInt3, int paramInt4);
/* */
/* */ private native void nativeAddToolbar();
/* */
/* */ private native int nativeGetHWND();
/* */
/* */ public IEWebControlImp(int hwnd, boolean toolbar, boolean isBanner)
/* */ throws NoWebControlException
/* */ {
/* 43 */ super(hwnd);
/* 44 */ this.m_hwnd = hwnd;
/* 45 */ this.nativeIEInstance = 0;
/* 46 */ this.detached = false;
/* */
/* 48 */ if (!nativeInit(hwnd, isBanner)) {
/* 49 */ this.detached = true;
/* 50 */ throw new NoWebControlException("Could not initialize IE control");
/* */ }
/* */
/* */
/* 54 */ if (toolbar) {
/* 55 */ nativeAddToolbar();
/* */ }
/* */ }
/* */
/* */ public void finalize() {
/* 60 */ detach();
/* */ }
/* */
/* */ public void renderTo(int dc)
/* */ {
/* 65 */ nativePrint(dc, this.m_hwnd);
/* */ }
/* */
/* */ public boolean setURL(String pURL)
/* */ {
/* 70 */ pURL = processURL(pURL);
/* 71 */ if (pURL == null) {
/* 72 */ return false;
/* */ }
/* 74 */ nativeSetURL(pURL, null);
/* 75 */ return true;
/* */ }
/* */
/* */ public boolean setURL(String pURL, String pPostData)
/* */ {
/* 80 */ pURL = processURL(pURL);
/* 81 */ if (pURL == null) {
/* 82 */ return false;
/* */ }
/* 84 */ if (pPostData != null) {
/* 85 */ pPostData = processURL(pPostData);
/* 86 */ if (pPostData == null) {
/* 87 */ return false;
/* */ }
/* */ }
/* 90 */ nativeSetURL(pURL, pPostData);
/* 91 */ return true;
/* */ }
/* */
/* */ public void detach()
/* */ {
/* 96 */ if (!this.detached) {
/* 97 */ nativeDestroy();
/* 98 */ super.detach();
/* 99 */ this.nativeIEInstance = 0;
/* 100 */ this.detached = true;
/* */ }
/* */ }
/* */
/* */ public void resize(int w, int h, int xPer, int yPer)
/* */ {
/* 106 */ nativeResize(w, h, xPer, yPer);
/* */ }
/* */
/* */ public void goBack()
/* */ {
/* 111 */ nativeGoBack();
/* */ }
/* */
/* */ public void goForward()
/* */ {
/* 116 */ nativeGoForward();
/* */ }
/* */
/* */ public void stop()
/* */ {
/* 121 */ nativeStop();
/* */ }
/* */
/* */ public void refresh()
/* */ {
/* 126 */ nativeRefresh();
/* */ }
/* */
/* */ public void home()
/* */ {
/* 131 */ nativeHome();
/* */ }
/* */
/* */ public int getHWND()
/* */ {
/* 136 */ return nativeGetHWND();
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\IEWebControlImp.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|