home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Form;
- import javax.microedition.lcdui.TextField;
-
- // $FF: renamed from: t
- public class class_0 extends Form {
- // $FF: renamed from: g javax.microedition.lcdui.Command
- private static final Command field_0 = new Command("Send!", 1, 1);
- // $FF: renamed from: d javax.microedition.lcdui.Command
- private static final Command field_1 = new Command("Emoticons", 1, 2);
- // $FF: renamed from: c javax.microedition.lcdui.Command
- private static final Command field_2 = new Command("Cancel", 1, 4);
- // $FF: renamed from: b javax.microedition.lcdui.Command
- private static final Command field_3 = new Command("Exit", 7, 5);
- // $FF: renamed from: a javax.microedition.lcdui.TextField
- private TextField field_4;
- // $FF: renamed from: f y
- private y field_5;
- // $FF: renamed from: e n
- private n field_6 = new n();
-
- public class_0(y var1, ac var2) throws Exception {
- super("eMSN");
- this.field_5 = var1;
- Displayable var3 = ad.e.getCurrent();
- this.field_4 = new TextField("Message...", "", 100, 0);
- this.addCommand(field_0);
- this.addCommand(field_1);
- this.addCommand(field_2);
- this.addCommand(field_3);
- this.append(this.field_4);
- this.setCommandListener(var2);
- }
-
- // $FF: renamed from: b () void
- public void method_0() {
- this.field_4.setString("");
- }
-
- // $FF: renamed from: a () boolean
- public boolean method_1() throws Exception {
- ac var1 = ad.n;
-
- while(true) {
- Command var2 = var1.b();
- if (var2 == field_3 || ad.a.a() == 0) {
- return false;
- }
-
- if (var2 == field_2) {
- return true;
- }
-
- if (var2 == field_0) {
- this.field_5.a(">>I say: \uffff" + this.field_4.getString() + '\ufffe');
- ad.i.e(this.field_4.getString());
- this.field_4.setString("");
- return true;
- }
-
- if (var2 == field_1) {
- boolean var3 = this.method_2();
- if (!var3) {
- return false;
- }
- }
-
- ad.i.l();
- ad.i.k();
- ad.i.f();
- Thread.sleep(100L);
- }
- }
-
- // $FF: renamed from: c () boolean
- private boolean method_2() throws Exception {
- ad.a(this.field_6);
- String var2 = this.field_6.a();
- boolean var1;
- if (var2 != null) {
- this.field_4.insert(var2, this.field_4.getCaretPosition());
- var1 = true;
- } else {
- var1 = false;
- }
-
- ad.a(this);
- return var1;
- }
- }
-