summaryrefslogtreecommitdiff
path: root/NET/worlds/console/IEWebControlImp.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/console/IEWebControlImp.java')
-rw-r--r--NET/worlds/console/IEWebControlImp.java144
1 files changed, 144 insertions, 0 deletions
diff --git a/NET/worlds/console/IEWebControlImp.java b/NET/worlds/console/IEWebControlImp.java
new file mode 100644
index 0000000..8f42842
--- /dev/null
+++ b/NET/worlds/console/IEWebControlImp.java
@@ -0,0 +1,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
+ */ \ No newline at end of file