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

📄 c.java

📁 牛人写的java版的中国移动飞信的源代码
💻 JAVA
字号:
import java.util.Enumeration;
import java.util.Vector;
import javax.microedition.lcdui.*;

public final class c
    implements CommandListener
{

    public static final Command a = new Command("\u9080\u8BF7\u591A\u4EBA", 4, 1);
    public static int b = 0;
    public static Vector c = new Vector();
    public static int d = 0;
    public int e;
    private String k;
    public Vector f;
    public Vector g;
    private Form l;
    private Ticker m;
    public byte h;
    public Object i;
    private Vector n;
    public h j;

    public c(String s, Vector vector)
    {
        e = 0;
        h = 0;
        i = null;
        n = null;
        k = s;
        if(k != null && k.length() != 0)
        {
            h = 2;
        }
        g = new Vector(2);
        f = vector;
        if(f.size() <= 1) goto _L2; else goto _L1
_L1:
        m = new Ticker(b(f));
        l = new Form(m.getString());
        l.setTicker(m);
        this;
        s;
          goto _L3
_L2:
        l = new Form(b(f));
        this;
        vector.elementAt(0);
_L3:
        i;
        l.setCommandListener(this);
        if(MMIDlet.i("MOTO_E6") || MMIDlet.i("MOTO_A780"))
        {
            n = new Vector();
            l.addCommand(e.g);
            l.addCommand(e.e);
            a(e.h);
        } else
        {
            n = new Vector();
            a(e.h);
            l.addCommand(e.e);
            l.addCommand(e.g);
        }
        b++;
        return;
    }

    private void a(Command command)
    {
        if(!n.contains(command))
        {
            n.addElement(command);
            l.addCommand(command);
        }
    }

    private void f()
    {
        for(Enumeration enumeration = n.elements(); enumeration.hasMoreElements(); l.addCommand((Command)enumeration.nextElement())) { }
    }

    public final void a(Display display)
    {
        MMIDlet.A.U = this;
        MMIDlet.x = j;
        d -= e;
        e = 0;
        c.removeElement(this);
        MMIDlet.A.a(MMIDlet.z);
        display.setCurrent(l);
    }

    public final boolean a(n n1)
    {
        if(f != null)
        {
            return f.contains(n1.i);
        } else
        {
            return false;
        }
    }

    public final String a()
    {
        return l.getTitle();
    }

    public final void a(String s, Vector vector, Vector vector1)
    {
        h = 2;
        k = s;
        if(vector != null) goto _L2; else goto _L1
_L1:
        if(f.size() > 1)
        {
            f = null;
            g();
        } else
        {
            k = null;
        }
          goto _L3
_L2:
        if(f.size() != 1 || vector.size() <= 1) goto _L5; else goto _L4
_L4:
        Object obj;
        String s1 = b(vector);
        if(m == null)
        {
            m = new Ticker(s1);
        }
        l.setTitle(s1);
        l.setTicker(m);
        obj = i;
        i = k;
        f = vector;
        MMIDlet.A;
        obj;
          goto _L6
_L5:
        if(f.size() <= 1 || vector.size() != 1) goto _L3; else goto _L7
_L7:
        l.setTitle(b(vector));
        i = vector.firstElement();
        f = vector;
        if(!MMIDlet.a(i.toString())) goto _L9; else goto _L8
_L8:
        l.insert(0, new StringItem("", MMIDlet.A.f(i.toString()) + "\u88AB\u52A0\u5165\u9ED1\u540D\u5355\uFF0C\u4F1A\u8BDD\u4E0D\u80FD\u7EE7\u7EED\u8FDB" +
"\u884C\u3002\n"
));
        g();
          goto _L3
_L9:
        l.setTicker(null);
        m = null;
        MMIDlet.A;
        k;
_L6:
        i;
        a();
_L3:
        int i1;
        if(vector1 != null && (i1 = vector1.size()) > 0)
        {
            Object obj1 = null;
            for(int k1 = 0; k1 < i1; k1++)
            {
                j j1 = (j)vector1.elementAt(k1);
                b(j1);
            }

            if(!l.isShown())
            {
                e += i1;
                d += i1;
                if(!c.contains(this))
                {
                    c.addElement(this);
                }
            }
            MMIDlet.A.c(this);
        }
        return;
    }

    private void b(j j1)
    {
        g.addElement(j1);
        l.insert(0, j1);
        if(g.size() > 30)
        {
            g.removeElementAt(0);
            l.delete(l.size() - 1);
        }
    }

    public final void b()
    {
        if(f.size() != 1) goto _L2; else goto _L1
_L1:
        if(!MMIDlet.a(f.firstElement().toString())) goto _L4; else goto _L3
_L3:
        if(k != null)
        {
            k.c.a(new String[] {
                d()
            });
            k = null;
        }
        g();
        Ticker ticker;
        if((ticker = l.getTicker()) != null) goto _L6; else goto _L5
_L5:
        ticker = new Ticker("\u8BE5\u597D\u53CB\u5728\u9ED1\u540D\u5355\u4E2D\uFF0C\u4ECE\u9ED1\u540D\u5355\u89E3" +
"\u9664\u624D\u80FD\u7EE7\u7EED\u8BE5\u4F1A\u8BDD\u3002"
);
        l.setTicker(ticker);
          goto _L7
_L6:
        ticker;
        "\u8BE5\u597D\u53CB\u5728\u9ED1\u540D\u5355\u4E2D\uFF0C\u4ECE\u9ED1\u540D\u5355\u89E3" +
"\u9664\u624D\u80FD\u7EE7\u7EED\u8BE5\u4F1A\u8BDD\u3002"
;
          goto _L8
_L4:
        l.setTicker(null);
        f();
          goto _L7
_L2:
        if((ticker = l.getTicker()) == null) goto _L7; else goto _L9
_L9:
        ticker;
        l.getTitle();
_L8:
        setString();
_L7:
        l.setTitle(b(f));
        return;
    }

    private void g()
    {
        for(Enumeration enumeration = n.elements(); enumeration.hasMoreElements(); l.removeCommand((Command)enumeration.nextElement())) { }
    }

    private static String b(Vector vector)
    {
        StringBuffer stringbuffer = new StringBuffer();
        for(int i1 = 0; i1 < vector.size(); i1++)
        {
            stringbuffer.append(MMIDlet.A.f(vector.elementAt(i1).toString()));
            stringbuffer.append('\uFF0C');
        }

        stringbuffer.deleteCharAt(stringbuffer.length() - 1);
        stringbuffer.append(" - \u5BF9\u8BDD");
        return stringbuffer.toString();
    }

    public final void a(j j1)
    {
        if(h != 1)
        {
            h++;
            b(j1);
            k.c.a(j1.a(), this);
            a(MMIDlet.B);
            MMIDlet.A.R.setString("");
            return;
        } else
        {
            MMIDlet.A.b("\u5F53\u524D\u4E0D\u80FD\u53D1\u9001\u6D88\u606F\uFF0C\u8BF7\u7A0D\u5019\u3002", null);
            return;
        }
    }

    public final void c()
    {
        l = null;
        g = null;
        f = null;
        m = null;
        i = null;
        k = null;
        d -= e;
        e = 0;
        c.removeElement(this);
        b--;
    }

    public final String toString()
    {
        return " [key=" + i + ",sessionName=" + k + "]";
    }

    public final String d()
    {
        return k;
    }

    public final void a(String s)
    {
        l.insert(0, new StringItem("\u7F51\u7EDC\u9519\u8BEF\uFF0C\u4EE5\u4E0B\u6D88\u606F\u65E0\u6CD5\u53D1\u9001", s));
    }

    public final void e()
    {
        if(f.size() > 1)
        {
            g();
            l.insert(0, new StringItem("", "\u8BE5\u4F1A\u8BDD\u5DF2\u7ECF\u8FC7\u671F\uFF0C\u8BF7\u5173\u95ED\u540E\u91CD\u65B0" +
"\u53D1\u8D77\u4F1A\u8BDD\uFF01\n"
));
            return;
        } else
        {
            k = null;
            h = 0;
            return;
        }
    }

    public final boolean a(Vector vector)
    {
        for(Enumeration enumeration = vector.elements(); enumeration.hasMoreElements();)
        {
            if(a((n)enumeration.nextElement()))
            {
                return true;
            }
        }

        return false;
    }

    public final void commandAction(Command command, Displayable displayable)
    {
        if(command == e.e)
        {
            MMIDlet.A.b(displayable);
            return;
        }
        if(command == e.g)
        {
            MMIDlet.A.a(this);
            MMIDlet.A.b(displayable);
            return;
        }
        if(command == e.h)
        {
            MMIDlet.A.e();
            return;
        }
        if(command == a)
        {
            Vector vector;
            if((vector = MMIDlet.a(f)).isEmpty())
            {
                l.insert(0, new StringItem("\u63D0\u793A", "\u73B0\u5728\u65E0\u6CD5\u9080\u8BF7\u597D\u53CB\u52A0\u5165\u8FD9\u4E2A\u4F1A\u8BDD" +
"\n"
, 0));
                return;
            }
            MMIDlet.A.a(vector, "\u9080\u8BF7\u591A\u4EBA", 2);
        }
    }

}

⌨️ 快捷键说明

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