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

📄 h.java

📁 // pica客户端J2ME源码
💻 JAVA
字号:
// pica客户端J2ME源码,100%可运行可修改,J2ME逆向工程经典作品
// 作者:fangji999
// QQ:57979471 Email:fangji999@163.com
// 博客:http://hi.baidu.com/ccall_net
// QQ群:51719370
// 如用此源码重新改写的软件或转载,请保留本人联系方式,作品原创作者

package pica;

import javax.microedition.lcdui.*;

// Referenced classes of package pica:
//			Pica, aa, ad, j, 
//			p, q, v
//消息发送界面
public final class h extends TextBox
	implements CommandListener
{

	public String a;
	public String b;
	public String c;
	private Displayable g;
	public String d;
	private Command h;
	private Command i;
	private Command j;
	private boolean k;
	public boolean e;
	public String f;

	public h(String s, String s1, String s2, p p1, Displayable displayable, String s3)
	{
		super(s, "", 256, 0);
		e = false;
		f = null;
		int l = getMaxSize();
		a = s1;
		c = s3;
		g = displayable;
		if (s2 == null || s2.length() == 0)
			Pica.b(s1);
		setString(p1 != null ? p1.r.length() > l ? p1.r.substring(0, l) : p1.r : "");
		k = false;
		a();
	}

	public h(String s, String s1, String s2, String s3, boolean flag, Displayable displayable)
	{
		super(s, "", 500, 0);
		e = false;
		f = null;
		b = s1;
		d = s3;
		f = s2;
		e = flag;
		g = displayable;
		a();
		k = true;
	}

	private void a()
	{
		h = new Command("发送", 4, 1);
		i = new Command("取消", 2, 0);
		addCommand(h);
		addCommand(i);
		j = new Command("添加表情", 4, 2);
		addCommand(j);
		setCommandListener(this);
	}

	public final void commandAction(Command command, Displayable displayable)
	{
		String s = null;
		try
		{
			if (command == h){//if (command != h)
//				break MISSING_BLOCK_LABEL_279;
                            if ((s = getString()).length() == 0)
                            {
                                    Pica.j.setCurrent(new Alert("错误", "信息内容不能为空", null, AlertType.ERROR), this);
                                    return;
                            }
                            System.out.println("chat::"+s+":kk:"+k+":e:"+e+":b:"+b+":f:"+f);
                            if (k)//是否是群聊
                            {
                                    if (e)
                                    {
                                           
                                            Pica.f.a(false, b, "chat", null, s, null, null, f);
                                            Pica.h.a(b, d, s, null);
                                            Pica.f.n();
                                    } else
                                    {
                                            Pica.f.a(false, b, "groupchat", null, s, null, null, "");
                                            Pica.h.b(b, d, s, null);
                                            Pica.f.n();
                                    }
                            } else
                            {
                                    Pica.h.b(a, "", s, c, null);
                                    p p1;
                                    (p1 = new p(-1, a, "", "", "", s, "", 2, (String[][])null, c)).t = "";
                                    if (pica.j.a(p1))
                                            Pica.a(p1);//保存消息到存储里
                                    Pica.e.a(p1, false);//添加到界面
                                    Pica.e.n();
                                    Pica.l.a(1);
                            }
                            Pica.l.a();
                            Pica.j.setCurrent(Pica.l);
                        }
		}
		catch (Exception  e)
		{
			Pica.j.setCurrent(new Alert("错误", "发送失败", null, AlertType.ERROR), this);
                        return;
		}
		if (command == i)
		{
			Pica.l.a();
			Pica.j.setCurrent(g);
		}
		if (command == j)
		{
			Pica.l.b(new ad(this));
			Pica.j.setCurrent(Pica.l);
		}
		return;
	}
}

⌨️ 快捷键说明

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