⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x.java

📁 webviwer,一个基于j2me的浏览器
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 

import javax.microedition.lcdui.*;

class x extends d
    implements CommandListener
{

    private u e;
    private int d;
    private int a;
    private int g;
    private TextBox f;
    private Displayable b;
    private Display c;

    x(u u1, int i, int j, int k)
    {
        f = null;
        b = null;
        c = null;
        e = u1;
        d = i;
        a = j;
        g = k;
    }

    void a(l l1, Display display, Displayable displayable, int i, int j, boolean flag)
    {
        String s = e.d();
        int k = a;
        if(k <= 0 || k > 1024)
            k = 1024;
        f = new TextBox(null, null, k, g);
        k = f.getMaxSize();
        if(k < s.length())
            s = s.substring(0, k);
        f.setString(s);
        f.addCommand(new Command("OK", 4, 1));
        f.addCommand(new Command("Cancel", 3, 69));
        f.setCommandListener(this);
        b = displayable;
        c = display;
        display.setCurrent(f);
    }

    public void commandAction(Command command, Displayable displayable)
    {
        if(command.getCommandType() == 4)
            e.a(f.getString());
        c.setCurrent(b);
        b = null;
        f = null;
        c = null;
    }

    int a()
    {
        return d;
    }

    int b()
    {
        return 1;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -