home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 64 / CDPRO64.iso / UTILIDADES / java / emsn / eMSN.jar / q.class (.txt) < prev    next >
Encoding:
Java Class File  |  2005-09-24  |  1.4 KB  |  53 lines

  1. import javax.microedition.lcdui.Command;
  2. import javax.microedition.lcdui.Displayable;
  3. import javax.microedition.lcdui.Form;
  4. import javax.microedition.lcdui.StringItem;
  5.  
  6. // $FF: renamed from: q
  7. public class class_0 extends Form {
  8.    // $FF: renamed from: a javax.microedition.lcdui.Command
  9.    private static final Command field_0 = new Command("Yes", 4, 1);
  10.    // $FF: renamed from: c javax.microedition.lcdui.Command
  11.    private static final Command field_1 = new Command("No", 3, 1);
  12.    // $FF: renamed from: b javax.microedition.lcdui.Displayable
  13.    private final Displayable field_2;
  14.    // $FF: renamed from: d javax.microedition.lcdui.StringItem
  15.    public StringItem field_3;
  16.  
  17.    public class_0(String var1) throws Exception {
  18.       super("eMSN");
  19.       this.addCommand(field_0);
  20.       this.addCommand(field_1);
  21.       this.field_3 = new StringItem("", var1);
  22.       this.append(this.field_3);
  23.       this.field_2 = ad.e.getCurrent();
  24.       this.setCommandListener(ad.n);
  25.       ad.a(this);
  26.    }
  27.  
  28.    // $FF: renamed from: a () void
  29.    private void method_0() {
  30.       ad.a(this.field_2);
  31.    }
  32.  
  33.    // $FF: renamed from: b () boolean
  34.    public boolean method_1() throws Exception {
  35.       ac var1 = ad.n;
  36.  
  37.       while(true) {
  38.          Command var2 = var1.b();
  39.          if (var2 == field_1) {
  40.             this.method_0();
  41.             return false;
  42.          }
  43.  
  44.          if (var2 == field_0) {
  45.             this.method_0();
  46.             return true;
  47.          }
  48.  
  49.          Thread.sleep(200L);
  50.       }
  51.    }
  52. }
  53.