// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 12.08.2011 2:53:57
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 

import javax.microedition.lcdui.*;

public final class s extends Form
    implements CommandListener
{

    private s(int i, Display display, g g1, String s1, String s2, String s3, int j, 
            boolean flag)
    {
        super(s1);
        removeCommand(a_javax_microedition_lcdui_Command_fld);
        removeCommand(b_javax_microedition_lcdui_Command_fld);
        if(j == 257)
        {
            a_javax_microedition_lcdui_Command_fld = y.a(25, 4, 1);
            b_javax_microedition_lcdui_Command_fld = y.a(0, 2, 2);
            j = 2;
        } else
        if(j == 256)
        {
            a_javax_microedition_lcdui_Command_fld = y.a(18, 4, 1);
            b_javax_microedition_lcdui_Command_fld = y.a(0, 2, 2);
            j = 2;
        } else
        {
            a_javax_microedition_lcdui_Command_fld = y.a(136, 4, 1);
            b_javax_microedition_lcdui_Command_fld = y.a(137, 3, 2);
        }
        b_int_fld = i;
        a_javax_microedition_lcdui_Display_fld = display;
        a_g_fld = g1;
        if(flag)
        {
            int k = 0;
            if((j & 0x10) != 0)
                k = 3;
            if((j & 0x20) != 0)
                k |= 2;
            if((j & 0x40) != 0)
                k |= 0x10000;
            if((j & 0x80) != 0)
                k |= 4;
            a_javax_microedition_lcdui_TextField_fld = new TextField(s2, s3, a_int_static_fld, k);
            append(a_javax_microedition_lcdui_TextField_fld);
        } else
        {
            a_javax_microedition_lcdui_TextField_fld = null;
            append(s3);
        }
        switch(j & 0xf)
        {
        case 0: // '\0'
            addCommand(a_javax_microedition_lcdui_Command_fld);
            break;

        case 1: // '\001'
            addCommand(b_javax_microedition_lcdui_Command_fld);
            break;

        case 2: // '\002'
            addCommand(b_javax_microedition_lcdui_Command_fld);
            addCommand(a_javax_microedition_lcdui_Command_fld);
            break;
        }
        setCommandListener(this);
        a_javax_microedition_lcdui_Displayable_fld = display.getCurrent();
        display.setCurrent(this);
    }

    public static void a(int i, Display display, g g1, String s1, String s2, int j)
    {
        new s(i, display, g1, s1, null, s2, j, false);
    }

    public static void a(int i, Display display, g g1, String s1, String s2, String s3, int j)
    {
        new s(i, display, g1, s1, s2, s3, j, true);
    }

    public final void commandAction(Command command, Displayable displayable)
    {
        a_javax_microedition_lcdui_Display_fld.setCurrent(a_javax_microedition_lcdui_Displayable_fld);
        String s1;
        if(a_javax_microedition_lcdui_TextField_fld != null)
            s1 = a_javax_microedition_lcdui_TextField_fld.getString();
        else
            s1 = "";
        if(command == a_javax_microedition_lcdui_Command_fld)
        {
            a_g_fld.a(b_int_fld, 1, s1);
            return;
        }
        if(command == b_javax_microedition_lcdui_Command_fld)
            a_g_fld.a(b_int_fld, 2, s1);
    }

    public static int a_int_static_fld = 255;
    private Command a_javax_microedition_lcdui_Command_fld;
    private Command b_javax_microedition_lcdui_Command_fld;
    private int b_int_fld;
    public Display a_javax_microedition_lcdui_Display_fld;
    public Displayable a_javax_microedition_lcdui_Displayable_fld;
    public g a_g_fld;
    public TextField a_javax_microedition_lcdui_TextField_fld;

}