乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      j2me模板大家都分享一下吧

       偶爾瘋狂 2011-07-18
      java進(jìn)度條實(shí)例模板
      Java code
      import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Displayable; import javax.microedition.lcdui.Form; import javax.microedition.lcdui.Gauge; public class GaugeUI extends Form implements CommandListener { private static final int MAX = 8; private static final int LEVELS = 8; int current = 0; Gauge gauge; Command stopCommand; boolean stop; boolean stopped; /** Creates a new instance of GaugeObserverUI */ public GaugeUI() { super(""); // 創(chuàng)建一個(gè)進(jìn)度條 gauge = new Gauge("", false, MAX, 0); stopCommand = new Command("停止", Command.STOP, 10); addCommand(stopCommand); append(gauge); setCommandListener(this); } // 初時(shí)化進(jìn)度條 public void init(String note, boolean stop) { gauge.setValue(0); setNote(note); setStop(stop); stopped = false; } // 進(jìn)度條標(biāo)題 public void setNote(String note) { setTitle(note); } // 是否停止 public boolean isStop() { return stop; } // 設(shè)置進(jìn)度條停止 public void setStop(boolean stop) { this.stop = stop; } // 是否已停止 public boolean isStopped() { return stopped; } // 更新進(jìn)度條 public void updateGauge() { current = (current + 1) % LEVELS; gauge.setValue(current * MAX / LEVELS); } // 處理監(jiān)聽(tīng) public void commandAction(Command c, Displayable d) { if (c == stopCommand) { stopped = true; stop(); } } // 停止時(shí)事件處理 public void stop() { } }

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類(lèi)似文章 更多