// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 12.08.2011 2:53:58
// 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 z extends ad
    implements CommandListener
{

    public z(int i, Display display, y y1, String s, String as[], int ai[], int j)
    {
        super(s);
        for(int k = 0; k < as.length; k++)
            if(ai != null)
                a(ai[k], as[k], k);
            else
                b(as[k], k);

        super.a(false);
        a_int_fld = i;
        a_javax_microedition_lcdui_Display_fld = display;
        a_y_fld = y1;
        setCommandListener(this);
        a(y.a(0, 2, 1));
        b(y.a(2, 4, 1));
        a(j);
        a_javax_microedition_lcdui_Displayable_fld = display.getCurrent();
        display.setCurrent(this);
        return;
        JVM INSTR dup ;
        Exception exception;
        exception;
        printStackTrace();
    }

    public final void commandAction(Command command, Displayable displayable)
    {
        a_javax_microedition_lcdui_Display_fld.setCurrent(a_javax_microedition_lcdui_Displayable_fld);
        if(command.getCommandType() == 2)
            a_y_fld.a(a_int_fld, 2, -1);
        if(command.getCommandType() == 4)
        {
            int i = a();
            a_y_fld.a(a_int_fld, 1, i);
        }
    }

    private int a_int_fld;
    private Display a_javax_microedition_lcdui_Display_fld;
    private y a_y_fld;
    private Displayable a_javax_microedition_lcdui_Displayable_fld;
}