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

📄 v.java

📁 // pica客户端J2ME源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
	{
		switch (C)
		{
		default:
			break;

		case 0: // '\0'
			c.b();
			return;

		case 1: // '\001'
			if (g > 0)
			{
				g--;
				if (g < F)
				{
					F--;
					return;
				}
			} else
			{
				g = D - 1;
				F = D - E;
				return;
			}
			break;

		case 2: // '\002'
			if (h <= 0)
				break;
			h--;
			if (h < M)
				M--;
			break;
		}
	}

	private void d()
	{
		switch (C)
		{
		default:
			break;

		case 0: // '\0'
			c.c();
			return;

		case 1: // '\001'
			if (g < D - 1)
			{
				g++;
				if (g >= F + E)
				{
					F++;
					return;
				}
			} else
			{
				g = 0;
				F = 0;
				return;
			}
			break;

		case 2: // '\002'
			if (h >= K - 1)
				break;
			h++;
			if (h >= M + L)
				M++;
			break;
		}
	}

	private void e()
	{
		if ((c instanceof d) && ((d)c).i())
		{
			((d)c).j();
			return;
		}
		switch (C)
		{
		case 0: // '\0'
			if (Pica.Z || Pica.ac || Pica.aa || Pica.ab || Pica.ad)
			{
				if (Pica.ad)
				{
					if (c instanceof d)
						return;
					c.j();
				}
				return;
			}
			B = d.indexOf(c);
			if (B > 0)
			{
				B--;
				a(B);
				return;
			}
			break;

		case 1: // '\001'
			C = 0;
			k();
			return;

		case 2: // '\002'
			C = 1;
			l();
			break;
		}
	}

	private void f()
	{
		if ((c instanceof d) && ((d)c).i())
		{
			((d)c).k();
			return;
		}
//label0:
		switch (C)
		{
		case 2: // '\002'
		default:
			break;

		case 0: // '\0'
			if (Pica.Z || Pica.ac || Pica.aa || Pica.ab || Pica.ad)
			{
				if (Pica.ad)
				{
					if (c instanceof d)
						return;
					c.k();
				}
				return;
			}
			B = d.indexOf(c);
			if (B < d.size() - 1)
			{
				B++;
				a(B);
				return;
			}
			break;

		case 1: // '\001'
			int i1 = g;
			do
			{
				if (i1 >= D)
					break;// label0;
				x x1;
				if ((x1 = (x)f.elementAt(i1)).b)
				{
					C = 2;
					h = 0;
					K = x1.c.length;
					g = i1;
					if (g >= F + E)
						F = g >= D - 4 ? D - 4 : g;
					n();
					return;
				}
				i1++;
			} while (true);
		}
	}

	private void g()
	{
		if ((c instanceof d) && ((d)c).i())
		{
			((d)c).a(false);
			return;
		}
		D = f.size();
		if (D == 0)
			return;
		if (D == 1)
		{
			c.a(((x)f.elementAt(0)).a);
			return;
		}
		if (D > 1 && C == 0)
		{
			C = 1;
			g = 0;
			c.h();
			m();
			return;
		}
		if (C == 1)
		{
			x x1;
			if ((x1 = (x)f.elementAt(g)).b)
			{
				C = 2;
				h = 0;
				K = x1.c.length;
				n();
			} else
			{
				C = 0;
				k();
				c.a(x1.a);
			}
			return;
		}
		if (C == 2)
		{
			String s1 = P[h];
			i = h;
			j();
			c.a(s1);
		}
	}

	private void h()
	{
		if ((c instanceof d) && ((d)c).i())
		{
			((d)c).a(false);
			return;
		}
		if (C > 0)
		{
			j();
			return;
		}
		if (e.length() > 0)
			c.a(e);
	}

	private void i()
	{
		if (C == 0)
		{
			c.d();
			return;
		}
		if (C == 1)
		{
			x x1;
			if ((x1 = (x)f.elementAt(g)).b)
			{
				C = 2;
				h = 0;
				K = x1.c.length;
				n();
			} else
			{
				C = 0;
				k();
				c.a(x1.a);
			}
			return;
		}
		if (C == 2)
		{
			String s1 = P[h];
			i = h;
			j();
			c.a(s1);
		}
	}

	public final void b(int i1)
	{
		c.h();
		D = f.size();
		g = i1;
		m();
		x x1 = (x)f.elementAt(g);
		K = x1.c.length;
		h = 0;
		C = 2;
		n();
	}

	public final void a(String s1)
	{
		f.addElement(new x(this, s1));
	}

	public final void a(String s1, String as[])
	{
		x x1;
		(x1 = new x(this, s1)).a(as);
		f.addElement(x1);
	}

	public final void a(int i1, String s1, String as[])
	{
		x x1 = new x(this, s1);
		if (as != null && as.length > 0)
			x1.a(as);
		f.setElementAt(x1, i1);
	}

	private void j()
	{
		C = 0;
		if (h >= 0)
			l();
		if (g >= 0)
			k();
	}

	private void k()
	{
		g = -1;
		F = 0;
		E = 0;
		D = 0;
		H = 0;
		G = 0;
	}

	private void l()
	{
		h = -1;
		M = 0;
		L = 0;
		K = 0;
		O = 0;
		N = 0;
		P = null;
	}

	private void m()
	{
		if (D < 4)
			E = D;
		else
			E = 4;
		H = k * E + 9;
		int i1 = 0;
		for (int j1 = 0; j1 < D; j1++)
		{
			int k1 = Pica.q.stringWidth(((x)f.elementAt(j1)).a);
			if (i1 < k1)
				i1 = k1;
		}

		if (i1 < 40)
			i1 = 40;
		G = i1 + 10;
		I = 0;
		J = b - j - H - 2;
	}

	private void n()
	{
		x x1 = (x)f.elementAt(g);
		K = x1.c.length;
		if (K < 4)
			L = K;
		else
			L = 4;
		O = k * L + 9;
		P = null;
		P = x1.c;
		int i1 = 0;
		for (int j1 = 0; j1 < K; j1++)
		{
			int k1 = Pica.q.stringWidth(P[j1]);
			if (i1 < k1)
				i1 = k1;
		}

		N = i1 + 8;
		Q = G - 15;
		R = b - j - k * (E - (g - F)) - 15;
		if (R > b - j - O - 3)
			R = b - j - O - 3;
	}

	private static void o()
	{
		Pica.aH++;
		if (Pica.aH > 4)
			Pica.aH = 1;
		String s1 = "";
		switch (Pica.aH)
		{
		case 1: // '\001'
			Pica.aK = true;
			Pica.aL = false;
			Pica.aI = 10;
			s1 = "快速模式";
			break;

		case 2: // '\002'
			Pica.aK = true;
			Pica.aL = false;
			Pica.aI = 20;
			s1 = "普通模式";
			break;

		case 3: // '\003'
			Pica.aK = true;
			Pica.aL = false;
			Pica.aI = 60;
			s1 = "省电模式";
			break;

		case 4: // '\004'
			Pica.aK = false;
			Pica.aL = true;
			Pica.aI = Pica.aJ[0];
			s1 = "智能模式";
			break;
		}
		String s2 = null;
		if (Pica.aH < 4)
			s2 = "网络连接已更改为" + s1 + "\n每" + Pica.aI + "秒连接一次服务器。";
		else
			s2 = "网络连接已更改为智能连接模式。";
		pica.w.al("提示", s2, null, 3);
	}

	private static void p()
	{
//		w.k = !w.k;
                w.kbb=false;
		pica.w.p();
		if (w.kbb)
		{
			pica.w.a("已打开新信息提示音!", 2000, Pica.l);
			return;
		} else
		{
			pica.w.a("已关闭新信息提示音!", 2000, Pica.l);
			return;
		}
	}

	private void q()
	{
		t = aa[0];
		u = aa[1];
		v = aa[2];
		wii = aa[3];
		x = aa[4];
		y = aa[5];
		z = aa[6];
	}

	private void r()
	{
		V = true;
		W[0] = "左软键";
		W[1] = "右软键";
		W[2] = "上方向键";
		W[3] = "下方向键";
		W[4] = "左方向键";
		W[5] = "右方向键";
		W[6] = "导航中键";
	}

	private void s() 
	{
		V = false;
		X = 0;
		Y.m();
		Y = null;
		Z = null;
		for (int i1 = 0; i1 < W.length; i1++)
			W[i1] = null;

		q();
                    try {
                        v();
                    } catch (RecordStoreNotOpenException ex) {
                        ex.printStackTrace();
                    } catch (RecordStoreException ex) {
                        ex.printStackTrace();
                    }
		pica.w.e();
	}

	private void t()
	{
		Y = new d("按键设置", (byte)23);
		r();
		a(Y);
	}

	private void a(d d1)
	{
		d1.b(Z);
		Z = null;
		Z = new k("请按照提示按下相应的按键:请按" + W[X], null, (byte)1);
		d1.a(Z);
		d1.a();
		Pica.l.b(d1);
	}

	private void u() 
	{
		RecordStore recordstore;
		Exception exception;
		recordstore = null;
		try
		{
			if ((recordstore = RecordStore.openRecordStore("key", false)) != null && recordstore.getNumRecords() > 0)
			{
				byte abyte0[] = recordstore.getRecord(1);
				DataInputStream datainputstream = new DataInputStream(new ByteArrayInputStream(abyte0));
				for (int i1 = 0; i1 < aa.length; i1++)
					aa[i1] = datainputstream.readInt();

				q();
			}
		}
		catch (Exception  e)
		{
			if (recordstore != null)
                        try {
                            recordstore.closeRecordStore();
                        } catch (RecordStoreNotOpenException ex) {
                            ex.printStackTrace();
                        } catch (RecordStoreException ex) {
                            ex.printStackTrace();
                        }
			return;
		}
		finally
		{
			if (recordstore == null) 
                            return;
                        //goto _L0; else goto _L0
 		}
//		if (recordstore != null)
//			try
//			{
//				recordstore.closeRecordStore();
//			}
//			catch (Exception  e) { }
//		return;
//		try
//		{
//			recordstore.closeRecordStore();
//		}
//		catch (Exception  e) { }
//		throw exception;
	}

	private void v() throws RecordStoreNotOpenException, RecordStoreException
	{
		RecordStore recordstore;
		Exception exception;
		recordstore = null;
		try
		{
			try
			{
				RecordStore.deleteRecordStore("key");
			}
			catch (Exception  e) { }
			if ((recordstore = RecordStore.openRecordStore("key", true)).getNumRecords() > 0)
			{
				recordstore.closeRecordStore();
				RecordStore.deleteRecordStore("key");
				recordstore = RecordStore.openRecordStore("key", true);
			}
			ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
			DataOutputStream dataoutputstream = new DataOutputStream(bytearrayoutputstream);
			for (int i1 = 0; i1 < aa.length; i1++)
				dataoutputstream.writeInt(aa[i1]);

			byte abyte0[] = bytearrayoutputstream.toByteArray();
			recordstore.addRecord(abyte0, 0, abyte0.length);
		}
		catch (Exception  e)
		{
			if (recordstore != null)
				//try
				//{
					recordstore.closeRecordStore();
				//}
				//catch (Exception e) { }
			return;
		}
		finally
		{
			if (recordstore == null)
                            return;
                            //goto _L0; else goto _L0
 		}
//		if (recordstore != null)
//			try
//			{
//				recordstore.closeRecordStore();
//			}
//			catch (Exception  e) { }
//		return;
//		try
//		{
//			recordstore.closeRecordStore();
//		}
//		catch (Exception  e) { }
//		throw exception;
	}

	protected final void keyReleased(int i1)
	{
		if ((c instanceof d) && ((d)c).i())
		{
			((d)c).l();
			return;
		} else
		{
			return;
		}
	}

	static 
	{
		j = Pica.r + 2;
		k = Pica.r + 4;
		l = Pica.r + 2;
		m = l + 22;
		n = j;
	}
}

⌨️ 快捷键说明

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