⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webviewer.java

📁 webviwer,一个基于j2me的浏览器
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        if(command != c && command != E) goto _L23; else goto _L22
_L22:
        String s2 = null;
        String s3 = null;
        if(w != null && displayable == w)
        {
            int i2 = w.getSelectedIndex();
            if(i2 >= 0)
            {
                int j2 = h.length - 1 - i2;
                s2 = h[j2].e;
                s3 = h[j2].k;
            }
        } else
        {
            s2 = p.h();
            s3 = p.c();
        }
        if(s2 != null)
        {
            v.a(s3, s2, "bookmarks", 0);
            m.setCurrent(new Alert(null, "Bookmark added", null, AlertType.CONFIRMATION), displayable);
        }
          goto _L3
_L23:
        if(command != x) goto _L25; else goto _L24
_L24:
        m.setCurrent(u);
          goto _L3
_L25:
        if(command != H) goto _L27; else goto _L26
_L26:
        L = new Form("Advanced");
        L.addCommand(F);
        L.addCommand(M);
        ChoiceGroup choicegroup = new ChoiceGroup("Connection port: ", 1, new String[] {
            "80", "8080"
        }, null);
        choicegroup.setSelectedIndex(N[0], true);
        L.append(choicegroup);
        L.setCommandListener(this);
        m.setCurrent(L);
          goto _L3
_L27:
        if(command != s) goto _L29; else goto _L28
_L28:
        a("reqwireless:cookies_list_all", true);
          goto _L3
_L29:
        if(command != i) goto _L31; else goto _L30
_L30:
        w = new List("History", 3);
        h = p.m();
        if(h != null && h.length > 0)
        {
            w.addCommand(C);
            w.addCommand(E);
            for(int k1 = h.length - 1; k1 >= 0; k1--)
            {
                String s4 = h[k1].k;
                if(s4 == null || s4.trim().length() == 0)
                    s4 = "Untitled";
                w.append(s4, h[k1].a() ? O : null);
            }

        }
        w.addCommand(M);
        w.setCommandListener(this);
        m.setCurrent(w);
          goto _L3
_L31:
        if(command != C && command != List.SELECT_COMMAND) goto _L33; else goto _L32
_L32:
        if(w != null)
        {
            int l1 = w.getSelectedIndex();
            if(l1 >= 0)
            {
                m.setCurrent(p);
                w = null;
                h = null;
                p.b(-l1 - 1);
            }
        }
          goto _L3
_L33:
        if(command != A) goto _L35; else goto _L34
_L34:
        p.j();
        m.setCurrent(new Alert(null, "Cache cleared", null, AlertType.CONFIRMATION), displayable);
          goto _L3
_L35:
        if(command != f) goto _L37; else goto _L36
_L36:
        m.setCurrent(p);
        k = null;
        p;
        "reqwireless.com/wv-3.5/guide/";
        null;
        null;
        q aq[] = new q[4];
        aq;
        aq;
_L40:
        0;
        if(true) goto _L39; else goto _L38
_L38:
        this;
          goto _L40
_L39:
        new q("A", p.getKeyName(p.getKeyCode(9)));
        JVM INSTR aastore ;
        JVM INSTR dup ;
          goto _L41
_L43:
        1;
          goto _L42
_L41:
        this;
          goto _L43
_L42:
        new q("B", p.getKeyName(p.getKeyCode(10)));
        JVM INSTR aastore ;
        JVM INSTR dup ;
          goto _L44
_L46:
        2;
          goto _L45
_L44:
        this;
          goto _L46
_L45:
        new q("C", p.getKeyName(p.getKeyCode(11)));
        JVM INSTR aastore ;
        JVM INSTR dup ;
          goto _L47
_L49:
        3;
          goto _L48
_L47:
        this;
          goto _L49
_L48:
        new q("D", p.getKeyName(p.getKeyCode(12)));
        JVM INSTR aastore ;
        "UTF-8";
        false;
        a();
          goto _L3
_L37:
        if(command == g)
            a("reqwireless.com/wv-3.5/", false);
        else
        if(command == y)
            a("reqwireless:register", true);
        else
        if(command == a)
        {
            destroyApp(false);
            notifyDestroyed();
        }
          goto _L3
        OutOfMemoryError outofmemoryerror;
        outofmemoryerror;
        g();
          goto _L3
        Throwable throwable;
        throwable;
_L3:
    }

    void g()
    {
        p.p();
        Alert alert = new Alert("Error", "Out of memory", null, AlertType.ERROR);
        alert.setTimeout(-2);
        m.setCurrent(alert, p);
    }

    public void a(String s1, boolean flag)
    {
        m.setCurrent(p);
        k = null;
        p.a(s1, flag);
    }

    public void a(int i1, int j1, Throwable throwable)
    {
        if(i1 == 1 && j1 == 0)
            p.addCommand(r);
        if(throwable != null || j1 >= 100 && i1 == 64)
            p.removeCommand(r);
    }

    private void c()
    {
        p.z = "http://216.16.231.69" + (N[0] != 1 ? "" : ":8080") + "/Web/";
    }

    private void h()
    {
label0:
        {
            RecordStore recordstore = null;
            try
            {
                recordstore = RecordStore.openRecordStore("settings", false);
                byte abyte0[] = recordstore.getRecord(1);
                if(abyte0.length >= 2)
                {
                    K[0] = (abyte0[1] & 0x1) != 0;
                    K[1] = (abyte0[1] & 0x2) != 0;
                    K[2] = (abyte0[1] & 0x4) != 0;
                    K[3] = (abyte0[1] & 0x8) != 0;
                    K[4] = (abyte0[1] & 0x10) != 0;
                }
                if(abyte0.length >= 3)
                    d = abyte0[2];
                if(abyte0.length >= 4)
                    N[0] = abyte0[3];
            }
            catch(RecordStoreException recordstoreexception)
            {
                try
                {
                    if(recordstore != null)
                        recordstore.closeRecordStore();
                }
                catch(RecordStoreException recordstoreexception2) { }
                break label0;
            }
            finally
            {
                try
                {
                    if(recordstore != null)
                        recordstore.closeRecordStore();
                }
                catch(RecordStoreException recordstoreexception3) { }
                throw exception;
            }
            try
            {
                if(recordstore != null)
                    recordstore.closeRecordStore();
            }
            catch(RecordStoreException recordstoreexception1) { }
            break label0;
        }
        for(int i1 = 0; i1 < K.length; i1++)
            P[i1].setSelectedIndex(0, K[i1]);

        I.setString(String.valueOf(d));
        String s1 = System.getProperty("microedition.platform");
        if(s1 == null)
            s1 = "J2ME";
        D = "Mozilla/4.0 (compatible; MSIE 6.0; " + s1 + ") ReqwirelessWeb/3.5";
        if(N[0] == 2)
        {
            N[0] = 0;
            if(s1.startsWith("Nokia7650") || s1.startsWith("Nokia3650"))
                N[0] = 1;
        }
        b();
    }

    private void d()
    {
        d = q;
        I.setString(String.valueOf(d));
        a();
        e();
    }

    private void e()
    {
label0:
        {
            b();
            RecordStore recordstore = null;
            try
            {
                recordstore = RecordStore.openRecordStore("settings", true);
                byte abyte0[] = new byte[4];
                abyte0[0] = 3;
                abyte0[1] = (byte)((K[0] ? 0x1 : 0) | (K[1] ? 0x2 : 0) | (K[2] ? 0x4 : 0) | (K[3] ? 0x8 : 0) | (K[4] ? 0x10 : 0));
                abyte0[2] = (byte)d;
                abyte0[3] = (byte)N[0];
                try
                {
                    recordstore.setRecord(1, abyte0, 0, abyte0.length);
                }
                catch(InvalidRecordIDException invalidrecordidexception)
                {
                    recordstore.addRecord(abyte0, 0, abyte0.length);
                }
            }
            catch(RecordStoreException recordstoreexception)
            {
                try
                {
                    if(recordstore != null)
                        recordstore.closeRecordStore();
                }
                catch(RecordStoreException recordstoreexception2) { }
                break label0;
            }
            finally
            {
                try
                {
                    if(recordstore != null)
                        recordstore.closeRecordStore();
                }
                catch(RecordStoreException recordstoreexception3) { }
                throw exception;
            }
            try
            {
                if(recordstore != null)
                    recordstore.closeRecordStore();
            }
            catch(RecordStoreException recordstoreexception1) { }
            break label0;
        }
    }

    private void b()
    {
        c();
        p.e(d);
        if(d > 0)
            p.addCommand(A);
        else
            p.removeCommand(A);
        p.b(K[0]);
        p.a(K[1] ? 1 : 0);
        p.d(K[2] ? D : n);
        p.a(K[3] ? Font.getFont(64, 0, 8) : Font.getFont(64, 0, 0));
        int i1 = m.numColors();
        boolean flag = m.isColor();
        if(K[4])
            if(i1 > 256)
                i1 = 249;
            else
            if(i1 > 16)
            {
                i1 = 16;
                flag = false;
            } else
            {
                i1 = 2;
                flag = false;
            }
        p.d(flag);
        p.a(i1);
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -