- 积分
- 16
- 实力分
- 点
- 金钱数
- 两
- 技术分
- 分
- 贡献分
- 分
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
package siemens.xdict;
import c;
import d;
import e;
import f;
import g;
import h;
import i;
import java.io.InputStream;
import java.io.PrintStream;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import k;
public class xdict extends MIDlet
implements CommandListener
{
/* member class not found */
class h {}
public xdict()
{
E = null;
G = 0;
H = 0;
I = 0;
J = true;
r = Display.getDisplay(this);
c.a();
}
public final void startApp()
{
if(J)
{
a();
String s1 = "/icons/Logo.png";
new i(r, s, s1, 1000);
u = new g(this, k, p, q);
(new h(this)).start();
J = false;
}
}
public final void pauseApp()
{
}
public final void destroyApp(boolean flag)
{
if(C != null)
C.a();
notifyDestroyed();
}
private int a(String s1)
{
if(s1.charAt(0) > 'z' || s1.charAt(0) < 'a') goto _L2; else goto _L1
_L1:
this;
0;
goto _L3
_L2:
if(s1.charAt(0) < '\344') goto _L5; else goto _L4
_L4:
this;
true;
goto _L3
_L5:
this;
-1;
_L3:
H;
return H;
}
private void a()
{
a = new Command("\u786E\u5B9A", 4, 1);
c = new Command("\u6E05\u7A7A", 4, 2);
d = new Command("\u751F\u8BCD\u672C", 4, 3);
b = new Command("\u9000\u51FA", 4, 4);
e = new Command("\u5173\u4E8E", 1, 3);
f = new Command("\u5E2E\u52A9", 1, 3);
s = new Form("\u91D1\u5C71\u8BCD\u9738\u624B\u673A\u7248");
A = new TextField(null, null, 28, 0);
A.setMaxSize(20);
s.append(A);
s.append("------------------");
s.append("\u5728\"\u8F93\u5165\u6846\"\u4E2D\u8F93\u5165\u8981\u67E5\u8BE2\u7684\u8BCD\u6C47\uFF0C\u70B9\u51FB\"\u786E\u5B9A\"\u5F00\u59CB\u67E5\u8BE2.");
s.addCommand(a);
s.addCommand(c);
s.addCommand(f);
s.addCommand(e);
s.addCommand(d);
s.addCommand(b);
s.setCommandListener(this);
g = new Command("\u5217\u8868", 4, 2);
p = new Command("", 1, 2);
q = new Command("", 1, 2);
k = new Command("", 1, 2);
h = new Command("\u8FD4\u56DE", 2, 1);
i = new Command("\u56DE\u9000", 2, 2);
j = new Command("\u52A0\u5165\u751F\u8BCD\u672C", 4, 2);
l = new Command("\u5220\u9664", 8, 1);
m = new Command("\u5220\u9664\u5168\u90E8", 8, 2);
v = new k();
v.addCommand(h);
v.addCommand(l);
v.addCommand(m);
v.setCommandListener(this);
n = new Command("\u662F", 4, 1);
o = new Command("\u5426", 2, 2);
Image image = null;
try
{
image = Image.createImage("/icons/error.png");
}
catch(Exception _ex) { }
String s1 = "\u786E\u8BA4\u5220\u9664\u5168\u90E8\u8BB0\u5F55";
String s2 = " \u672C\u64CD\u4F5C\u5C06\u4F1A\u5220\u9664\u5168\u90E8\u751F\u8BCD\u672C\u4E2D\u5185\u5BB9\uFF0C\u60A8\u786E\u5B9A\u5220\u9664\u5417\uFF1F";
y = new Alert(s1, s2, image, AlertType.WARNING);
y.addCommand(n);
y.addCommand(o);
y.setCommandListener(this);
}
private void a(Command command, Command command1)
{
if(command != null)
u.addCommand(command);
if(command1 != null)
u.addCommand(command1);
u.setCommandListener(this);
}
private int b()
{
u.b();
int i1;
if((i1 = (int)C.a(F, I, D, 1)) != 0)
{
a(i1);
r.setCurrent(u);
}
return i1;
}
private void a(int i1)
{
if(D != null)
{
if(i1 <= I)
i1++;
for(int j1 = 0; j1 < i1 - 1; j1++)
u.a(D[j1].d);
if(i1 - 1 < I)
{
for(int k1 = i1 - 1; k1 < I; k1++)
{
D[k1].c = 0;
D[k1].b = 0L;
D[k1].a = 0L;
D[k1].d = "";
u.a(D[k1].d);
}
}
u.c();
}
}
private void a(Command command, Command command1, Command command2, Command command3, String s1)
{
t = new c(this, k, B, command, command1, command2, command3, s1);
t.setCommandListener(this);
r.setCurrent(t);
}
public final void commandAction(Command command, Displayable displayable)
{
Object obj = null;
if(displayable != s) goto _L2; else goto _L1
_L1:
if(command == a)
{
u.a(0, true);
String s1;
s1 = (s1 = (s1 = A.getString()).trim()).toLowerCase();
H = a(s1);
if(H == -1)
{
a(r, "\u91D1\u5C71\u8BCD\u9738\u624B\u673A\u7248", " \u60A8\u7684\u62FC\u5199\u8F93\u5165\u6709\u8BEF,\u8BF7\u68C0\u67E5\u60A8\u7684\u62FC\u5199\u8F93\u5165.");
return;
}
if(s1.length() > 2 && H == 1)
{
a(r, "\u91D1\u5C71\u8BCD\u9738\u624B\u673A\u7248", "\u60A8\u7684\u6C49\u5B57\u8F93\u5165\u957F\u5EA6\u8D85\u51FA\u8BCD\u6761\u6700\u5927\u957F\u5EA6\u8303\u56F4,\u8BF7\u91CD\u65B0\u8F93\u5165.");
return;
} else
{
G = 1;
a(s1, H);
return;
}
}
if(command == b)
{
destroyApp(false);
return;
}
if(command == c)
{
A.setString(null);
return;
}
if(command == f)
{
e();
return;
}
if(command == e)
{
f();
return;
}
if(command != d) goto _L4; else goto _L3
_L3:
if(!v.b())
{
a(r, "\u91D1\u5C71\u8BCD\u9738\u624B\u673A\u7248", "\u60A8\u7684\u751F\u8BCD\u672C\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u70B9\u51FB\u8F93\u5165\u6846\u8F93\u5165\u9700\u8981\u67E5\u8BE2\u7684\u8BCD\u6C47\u3002");
return;
}
goto _L5
_L2:
if(displayable != t) goto _L7; else goto _L6
_L6:
if(command == g)
{
C.b(false);
a(h, i);
b();
return;
}
if(command == h)
{
d();
return;
}
if(command == i)
if(E == null)
{
return;
} else
{
int i1 = a(E);
String s4 = E;
E = null;
a(s4, i1);
return;
}
if(command == j)
{
if(v != null)
{
int j1;
if((j1 = v.b(B.a)) != -1)
v.a(j1);
v.a(B.a);
return;
}
} else
if(command == k)
{
String s2 = t.c.toLowerCase();
H = a(s2);
E = B.a;
G = 1;
a(s2, H);
return;
}
goto _L4
_L7:
if(displayable != u) goto _L9; else goto _L8
_L8:
if(command == h)
{
d();
return;
}
if(command != i) goto _L11; else goto _L10
_L10:
r;
t;
goto _L12
_L11:
if(command == k)
{
C.b(false);
int k1;
if((k1 = u.a()) == -1)
{
return;
} else
{
char ac[] = C.a(D[k1].b, D[k1].c);
String s5 = new String(ac);
B = a(D[k1].d, s5, H);
a(h, g, i, j, E);
return;
}
}
if(command == p && u.b != -1)
{
u.b();
F = D[0].a;
int l1;
if((l1 = (int)C.a(F, I, D, 0)) != I)
{
u.b = 0;
l1 = I;
}
for(int k2 = 0; k2 < l1; k2++)
u.a(D[k2].d);
u.c();
F = D[0].a;
return;
}
if(command == q && u.b != -1)
{
if(u.b == 0)
u.b = 1;
u.b();
F = D[I - 1].a;
D[0].c = D[I - 1].c;
int i2 = (int)C.a(F, I, D, 1);
a(i2);
return;
}
goto _L4
_L9:
if(displayable != v) goto _L14; else goto _L13
_L13:
if(command == h)
{
d();
return;
}
if(command != l) goto _L16; else goto _L15
_L15:
int j2;
if((j2 = v.getSelectedIndex()) == -1)
return;
int l2;
if((l2 = v.b(v.getString(j2))) != -1)
v.a(l2);
v.getSelectedIndex();
v.delete(j2);
if(v.size() <= 0)
{
commandAction(h, ((Displayable) (v)));
return;
}
goto _L4
_L16:
if(command != m) goto _L18; else goto _L17
_L17:
r;
y;
goto _L12
_L18:
if(command == List.SELECT_COMMAND)
{
String s3 = v.getString(v.getSelectedIndex());
H = a(s3);
a(s3, H);
return;
}
goto _L4
_L14:
if(displayable != w) goto _L20; else goto _L19
_L19:
if(command != h) goto _L4; else goto _L21
_L21:
r;
s;
goto _L12
_L20:
if(displayable != x) goto _L23; else goto _L22
_L22:
if(command != h) goto _L4; else goto _L24
_L24:
r;
s;
goto _L12
_L23:
if(displayable != z) goto _L26; else goto _L25
_L25:
if(command != h) goto _L4; else goto _L27
_L27:
r;
s;
goto _L12
_L26:
if(displayable != y) goto _L4; else goto _L28
_L28:
if(command != n) goto _L30; else goto _L29
_L29:
v.a();
r;
s;
goto _L12
_L30:
if(command != o) goto _L4; else goto _L5
_L5:
r;
v;
_L12:
setCurrent();
_L4:
}
private void a(String s1, int i1)
{
String s2 = e.b(s1, i1);
C = new e(s2);
if(C.a(true) != (long)e.f)
{
System.out.println("The dictionary is error!");
return;
}
int j1;
if((j1 = b(s1, i1)) == e.a)
{
c();
return;
}
if(j1 != -1)
break MISSING_BLOCK_LABEL_100;
if(E != null) goto _L2; else goto _L1
_L1:
this;
h;
null;
goto _L3
_L2:
this;
h;
i;
_L3:
a();
b();
return;
a(h, g, i, j, E);
r.setCurrent(t);
return;
}
private void c()
{
z = new Form("\u91D1\u5C71\u8BCD\u9738\u624B\u673A\u7248");
try
{
Image image = Image.createImage("/icons/error.png");
z.append(image);
}
catch(Exception exception)
{
System.out.println(exception.toString());
}
z.append("\u60A8\u67E5\u627E\u7684\u8BCD\u6761\u5DF2\u7ECF\u8D85\u51FA\u9884\u88C5\u8BCD\u5178\u7684\u6570\u636E\u8303\u56F4\uFF0C\u8BF7\u8FD4\u56DE\u67E5\u8BE2\u754C\u9762.");
z.addCommand(h);
z.setCommandListener(this);
A.setString(null);
r.setCurrent(z);
}
private void d()
{
r.setCurrent(s);
E = null;
}
private int b(String s1, int i1)
{
char ac[] = null;
F = C.a(s1, i1);
if(F == (long)e.a)
return e.a;
if(F < 0L)
return -1;
if((ac = C.b()) == null)
return -1;
String s2 = new String(ac);
String s3 = C.l;
byte byte0 = 0;
if(G == 1)
{
G = 0;
byte0 = -1;
}
if(s3 == null)
{
byte0 = 0;
s3 = s1;
}
int j1;
if((j1 = s2.indexOf('\0')) != s2.length() - 1 && j1 != -1)
s2 = s2.substring(0, j1 + 1);
B = a(s3, s2, i1);
return byte0;
}
private static d a(String s1, String s2, int i1)
{
d d1;
(d1 = new d()).a = s1;
s2 = s2.trim();
int j1;
if(i1 == 0)
if((j1 = s2.indexOf('&')) != 0)
{
d1.b = "";
} else
{
int k1 = s2.indexOf('\n');
d1.b = s2.substring(j1 + 1, k1 - j1);
s2 = s2.substring(k1 + 1);
}
d1.c = s2.trim();
return d1;
}
public static void a(Display display, String s1, String s2)
{
try
{
Image image = Image.createImage("/icons/error.png");
Alert alert = new Alert(s1, s2, image, AlertType.WARNING);
display.setCurrent(alert);
return;
}
catch(Exception exception)
{
System.out.println(exception.toString());
}
}
private void e()
{
StringBuffer stringbuffer;
byte abyte0[];
Object obj = null;
stringbuffer = new StringBuffer();
abyte0 = new byte[2];
InputStream inputstream;
if((inputstream = getClass().getResourceAsStream("/icons/help.txt")) == null) goto _L2; else goto _L1
_L1:
if(inputstream.read(abyte0) != -1)
{
while(inputstream.read(abyte0) != -1)
{
int i1 = abyte0[0] >= 0 ? ((int) (abyte0[0])) : abyte0[0] + 256;
int j1 = abyte0[1] >= 0 ? ((int) (abyte0[1])) : abyte0[1] + 256;
char c1 = (char)(i1 + j1 * 256);
stringbuffer.append(c1);
abyte0[0] = 0;
abyte0[1] = 0;
}
break MISSING_BLOCK_LABEL_134;
}
stringbuffer;
"\u5E2E\u52A9\u6587\u4EF6\u65E0\u5185\u5BB9\uFF01";
goto _L3
_L2:
stringbuffer;
"\u627E\u4E0D\u5230\u5E2E\u52A9\u6587\u4EF6.";
_L3:
append();
JVM INSTR pop ;
inputstream.close();
break MISSING_BLOCK_LABEL_161;
Exception exception;
exception;
System.out.println(exception.toString());
stringbuffer.append("\u5E2E\u52A9\u6587\u4EF6\u635F\u574F\u6216\u8BFB\u53D6\u8FC7\u7A0B\u4E2D\u51FA\u73B0\u5F02\u5E38\u3002");
w = new Form("\u91D1\u5C71\u8BCD\u9738\u624B\u673A\u7248");
w.addCommand(h);
w.setCommandListener(this);
w.append(stringbuffer.toString());
r.setCurrent(w);
return;
}
private void f()
{
x = new Form("\u91D1\u5C71\u8BCD\u9738\u624B\u673A\u7248");
x.addCommand(h);
x.setCommandListener(this);
x.append(new StringItem("\u5173\u4E8E\u91D1\u5C71\u8BCD\u9738\u624B\u673A\u7248", null, 0));
x.append(new StringItem("\u7248\u672C\uFF1A2.2.3", null, 0));
x.append(new StringItem("\u91D1\u5C71\u6570\u5B57\u5A31\u4E50\u79D1\u6280\u6709\u9650\u516C\u53F8", null, 0));
x.append(new StringItem("\u4E2D\u56FD\u5730\u533A\u72EC\u5BB6\u53D1\u884C", null, 0));
x.append(new StringItem("HanikLZ\u79FB\u690D Along\u4FEE\u6539", null, 0));
x.append(new StringItem("http://www.kingsoft.com", null, 0));
x.append(new StringItem("\u5BA2\u670D\u7535\u8BDD\uFF1A010-82326868", null, 0));
x.append(new StringItem("kms_mbox@kingsoft.com", null, 0));
r.setCurrent(x);
}
public static void a(xdict xdict1, Command command, Command command1)
{
xdict1.a(command, command1);
}
public static g a(xdict xdict1)
{
return xdict1.u;
}
public static void a(xdict xdict1, int i1)
{
xdict1.I = i1;
}
public static void a(xdict xdict1, d d1)
{
xdict1.B = d1;
}
public static int b(xdict xdict1)
{
return xdict1.I;
}
public static void a(xdict xdict1, f af[])
{
xdict1.D = af;
}
public static f[] c(xdict xdict1)
{
return xdict1.D;
}
private Display r;
private Form s;
private c t;
private g u;
private k v;
private Form w;
private Form x;
private Alert y;
private Form z;
private TextField A;
private d B;
private e C;
private f D[];
private String E;
private long F;
private int G;
private int H;
private int I;
private boolean J;
public static Command a;
public static Command b;
public static Command c;
public static Command d;
public static Command e;
public static Command f;
public static Command g;
public static Command h;
public static Command i;
public static Command j;
public static Command k;
public static Command l;
public static Command m;
public static Command n;
public static Command o;
public static Command p;
public static Command q; |
|