// 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 agent.JAgent;
import java.util.TimerTask;
import javax.microedition.lcdui.*;

public final class q extends TimerTask
{

    public q(int i)
    {
        a_long_fld = 0L;
        a_int_fld = i;
    }

    public q(int i, TextBox textbox)
    {
        this(i);
        a_javax_microedition_lcdui_TextBox_fld = textbox;
        b = textbox.size();
    }

    public final void run()
    {
        switch(a_int_fld)
        {
        case 3: // '\003'
        case 4: // '\004'
        case 5: // '\005'
        case 7: // '\007'
        default:
            break;

        case 1: // '\001'
            h h1 = h.b();
            o.a.a(h1);
            o.b = System.currentTimeMillis();
            if(JAgent.a.getCurrent() == y.c_ad_static_fld)
            {
                y.b();
                return;
            }
            if(JAgent.a.getCurrent() == y.e)
            {
                y.e.a(y.a.b, y.a(y.a));
                y.e.b();
                return;
            }
            break;

        case 2: // '\002'
            x.a().repaint();
            return;

        case 6: // '\006'
            long l = System.currentTimeMillis();
            int i = a_javax_microedition_lcdui_TextBox_fld.size();
            if(l - a_long_fld > 10000L && b != i)
            {
                y.c_java_lang_String_static_fld = a_javax_microedition_lcdui_TextBox_fld.getString();
                h h2 = h.c(y.a.a);
                o.a.a(h2);
                a_long_fld = l;
            }
            b = i;
            return;

        case 8: // '\b'
            ad.d();
            return;

        case 9: // '\t'
            x.d();
            break;
        }
    }

    private int a_int_fld;
    private long a_long_fld;
    private TextBox a_javax_microedition_lcdui_TextBox_fld;
    private int b;
}