progressui.java

来自「手机获取网页源代码」· Java 代码 · 共 40 行

JAVA
40
字号
/*
 * ProgressUI.java
 *
 * Created on 2006年9月6日, 上午12:48
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.j2me.networld.connection;

import javax.microedition.lcdui.*;

/**
 *
 * @author DONGHOME
 */
public class ProgressUI extends Form
        implements ProgressListener
{
    private Gauge gauge = null;

    /** Creates a new instance of ProgressUI */
    public ProgressUI(String title)
    {
        super(title);
    }

    public void init()
    {
        gauge = new Gauge("Reading data, please wait...", false, 100, 0);
        this.append(gauge);
    }

    public void onProgress(int percent)
    {
        gauge.setValue(percent);
    }
}

⌨️ 快捷键说明

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