home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Collision / collision.jar / ColldemoSl45$TextDisplay.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-06-20  |  1.8 KB  |  54 lines

  1. import javax.microedition.lcdui.Command;
  2. import javax.microedition.lcdui.CommandListener;
  3. import javax.microedition.lcdui.Display;
  4. import javax.microedition.lcdui.Displayable;
  5. import javax.microedition.lcdui.Form;
  6.  
  7. class ColldemoSl45$TextDisplay extends Form implements CommandListener {
  8.    public static final int VALID = 0;
  9.    public static final int INVALID = 1;
  10.    private Display display;
  11.    private Displayable nextDisp;
  12.    private Command exitCommand;
  13.    private int index;
  14.    private int command;
  15.    // $FF: renamed from: Id int
  16.    private int field_0;
  17.    // $FF: synthetic field
  18.    private final ColldemoSl45 this$0;
  19.  
  20.    public ColldemoSl45$TextDisplay(ColldemoSl45 var1, Display var2, Displayable var3, String var4) {
  21.       super("Help");
  22.       this.this$0 = var1;
  23.       this.exitCommand = new Command("Done", 4, 1);
  24.       this.display = var2;
  25.       this.nextDisp = var3;
  26.       ((Displayable)this).addCommand(this.exitCommand);
  27.       this.index = ((Form)this).append(var4);
  28.       this.index = -1;
  29.       this.field_0 = 1;
  30.    }
  31.  
  32.    public void setText(String var1) {
  33.    }
  34.  
  35.    public void showMe() {
  36.       ((Displayable)this).setCommandListener(this);
  37.       this.display.setCurrent(this);
  38.    }
  39.  
  40.    public void commandAction(Command var1, Displayable var2) {
  41.       int var3;
  42.       if (this.field_0 != -1) {
  43.          var3 = ColldemoSl45.access$000(this.this$0).validateAction(var1.getCommandType(), this.field_0, (String)null);
  44.       } else {
  45.          var3 = 0;
  46.       }
  47.  
  48.       if (var3 == 0) {
  49.          this.display.setCurrent(this.nextDisp);
  50.       }
  51.  
  52.    }
  53. }
  54.