import a.a.a.a;
import a.a.a.c;
import java.io.PrintStream;
import javax.microedition.lcdui.*;
public class c extends c
implements a
{
public c(e e1, String s, Image image, Image image1, Image image2, Image image3)
{
super("PANEL", 3, "PANEL", 176, 204, 4641, false);
S = "";
W = 0;
Y = 0;
w = 0;
J = 64;
B = 0;
F = 0;
x = new int[50];
L = null;
X = 0;
R = false;
E = -1;
P = e1;
y = image;
U = image1;
D = image2;
N = image3;
_fldvoid = Font.getFont(0, 0, 8);
a(s);
}
public void a(Graphics g)
{
int i;
if(S.equals("\u4EA4\u8C08"))
{
_mthcase(g);
break MISSING_BLOCK_LABEL_667;
}
if(S.equals("\u5F00\u573A") || S.equals("\u7ED3\u675F") || S.equals("\u5173\u4E8E"))
{
_mthfor(g);
break MISSING_BLOCK_LABEL_667;
}
if(S.equals("\u5E2E\u52A9"))
{
_mthtry(g);
break MISSING_BLOCK_LABEL_667;
}
g.setColor(0);
g.fillRect(0, 0, _fldgoto, f);
g.setColor(0xfff200);
g.drawRect(0, 0, _fldgoto - 1, f - 1);
g;
g;
g.drawString("\u8FD4\u56DE", _fldgoto - 4, f - 4, 0x20 | 0x8);
if(S.equals("\u5730\u56FE"))
_mthnew(g);
if(S.equals("\u72B6\u6001"))
{
_mthint(g);
break MISSING_BLOCK_LABEL_526;
}
if(S.equals("\u6280\u80FD") || S.equals("\u5B66\u4E60"))
{
_mthchar(g);
break MISSING_BLOCK_LABEL_526;
}
if(S.equals("\u7269\u54C1") || S.equals("\u4E70") || S.equals("\u5356"))
{
_mthbyte(g);
break MISSING_BLOCK_LABEL_526;
}
if(S.equals("\u4F20\u9001"))
{
_mthdo(g);
break MISSING_BLOCK_LABEL_526;
}
if(!S.equals("\u4EFB\u52A1"))
break MISSING_BLOCK_LABEL_526;
a(g, 1, 1, 174, 179, 2, 3);
g.setColor(0xffff00);
g;
g;
g.drawString("\u5F53\u524D\u4EFB\u52A1:", 20, 14, 0x10 | 0x4);
a(g, 158, 30);
g.setColor(65280);
i = W;
goto _L1
_L3:
if(i >= X)
break; /* Loop/switch isn't completed */
String s = L.toString().substring(x[i] & 0xffff, (x[i] >> 16) + x[i] & 0xffff);
g;
g;
g.drawString(s, 19, (i - W) * _fldvoid.getHeight() + 40, 0x4 | 0x10);
break MISSING_BLOCK_LABEL_470;
Exception exception;
exception;
exception.printStackTrace();
i++;
_L1:
if(i < W + 7) goto _L3; else goto _L2
_L2:
g.setColor(0xffff00);
if(S.equals("\u4EFB\u52A1"))
{
g;
g;
g.drawString("\u653E\u5F03", 4, f - 4, 0x20 | 0x4);
}
String s1 = "";
switch(E)
{
case 0: // '\0'
s1 = "\u8D2D\u4E70\u6210\u529F";
break;
case 3: // '\003'
s1 = "\u65E0\u6CD5\u88C5\u5907";
break;
case 4: // '\004'
s1 = "\u91D1\u94B1\u4E0D\u8DB3";
break;
case 1: // '\001'
s1 = "\u7269\u54C1\u5DF2\u6EE1";
break;
case 2: // '\002'
s1 = "\u7269\u54C1\u680F\u5DF2\u6EE1";
break;
case 5: // '\005'
s1 = "\u88C5\u5907\u6210\u529F";
break;
case 6: // '\006'
s1 = "\u88C5\u914D\u6210\u529F";
break;
case 7: // '\007'
s1 = "\u5DF2\u552E\u51FA";
break;
}
if(E != -1)
{
g.setColor(0xff0000);
g;
g;
g.drawString(s1, 10, 120, 0x10 | 0x4);
}
return;
}
public void a()
{
P = null;
S = null;
z = null;
N = null;
U = null;
y = null;
U = null;
D = null;
}
public int a(int i, int j)
{
System.out.println("menu panel keycode = " + i);
if(S.equals("\u4EA4\u8C08"))
{
W += 2;
if(W >= A - 1)
{
if(R)
{
W = 0;
w = 0;
a("\u4EFB\u52A1");
R = false;
a(true, 1);
return 0;
}
i = -22;
} else
{
i = -6;
}
} else
if(S.equals("\u5173\u4E8E"))
i = -22;
if(!S.equals("\u5F00\u573A") && !S.equals("\u7ED3\u675F"))
J = _fldgoto / 2;
switch(i)
{
default:
break;
case -1:
case 50: // '2'
if(--W < 0)
W = 0;
if(W < w)
w = W;
_mthcase();
break;
case -6:
case 56: // '8'
if(++W > A)
W = A <= 0 ? 0 : A;
if(W > w + O)
w = W - O;
_mthcase();
break;
case -2:
case 52: // '4'
if(--Y < 0)
Y = 0;
break;
case -5:
case 54: // '6'
if(++Y > C)
Y = C;
break;
case -21:
case -20:
if(S.equals("\u6280\u80FD") && W != 1 && W != 6 && P.aH[W]._fldfor > 0)
{
P.at[Y] = Y + 49 << 16 | W;
for(int k = 0; k < 5; k++)
{
int i1 = P.at[k] & 0xffff;
if(i1 == W && k != Y)
P.at[k] = 0;
}
break;
}
if(S.equals("\u5B66\u4E60"))
{
P.aH[W].a(P);
_mthcase();
break;
}
if(S.equals("\u7269\u54C1"))
{
_mthelse();
break;
}
if(S.equals("\u5356"))
{
if((P.au[W] & 0xffff) != 0)
{
P.aj += P.aH[0]._mthfor(P.au[W] >> 16);
P.au[W]--;
if((P.au[W] & 0xffff) == 0)
{
P._mthchar(P.au[W] >> 16);
_mthchar();
_mthcase();
}
E = 7;
}
break;
}
if(S.equals("\u4E70"))
{
if(P.aj >= P.aH[0]._mthtry(z[W] >> 16))
{
E = P.b(z[W] >> 16);
if(E == 0)
P.aj -= P.aH[0]._mthtry(z[W] >> 16);
} else
{
E = 4;
}
break;
}
if(S.equals("\u4F20\u9001"))
{
if((a.aZ[W] & 0xffff) != 0 && a.aZ[W] >> 16 != e.aG.aY && P.aj >= P.ax * 10)
{
P.aj -= P.ax * 10;
return (a.aZ[W] >> 16) + 1000;
}
break;
}
if(!S.equals("\u4EFB\u52A1"))
break;
for(int l = 0; l < d.m.length; l++)
d.m[l] = 0;
a("\u4EFB\u52A1");
break;
case -22:
if(!S.equals("\u7ED3\u675F"))
return 1;
break;
}
a(true, 1);
return