锘??xml version="1.0" encoding="utf-8" standalone="yes"?>四虎影视2018在线播放alocalhost,91精品国产综合久久福利,日韩视频一区http://www.aygfsteel.com/supercrsky/category/32524.html涓撴敞浜嶫avaWeb寮鍙?/description>zh-cnTue, 24 Jun 2008 19:26:13 GMTTue, 24 Jun 2008 19:26:13 GMT60J2Me妯℃嫙鍙戦佹墜鏈虹煭淇℃祦紼?/title><link>http://www.aygfsteel.com/supercrsky/articles/210416.html</link><dc:creator>銆呬笂鍠勮嫢姘淬?/dc:creator><author>銆呬笂鍠勮嫢姘淬?/author><pubDate>Tue, 24 Jun 2008 15:24:00 GMT</pubDate><guid>http://www.aygfsteel.com/supercrsky/articles/210416.html</guid><wfw:comment>http://www.aygfsteel.com/supercrsky/comments/210416.html</wfw:comment><comments>http://www.aygfsteel.com/supercrsky/articles/210416.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/supercrsky/comments/commentRss/210416.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/supercrsky/services/trackbacks/210416.html</trackback:ping><description><![CDATA[     鎽樿: package com; import javax.microedition.lcdui.Alert; import javax.microedition.lcdui.AlertType; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.C...  <a href='http://www.aygfsteel.com/supercrsky/articles/210416.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/supercrsky/aggbug/210416.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/supercrsky/" target="_blank">銆呬笂鍠勮嫢姘淬?/a> 2008-06-24 23:24 <a href="http://www.aygfsteel.com/supercrsky/articles/210416.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎴戠殑絎竴涓狫2ME 紼嬪簭http://www.aygfsteel.com/supercrsky/articles/210027.html銆呬笂鍠勮嫢姘淬?/dc:creator>銆呬笂鍠勮嫢姘淬?/author>Mon, 23 Jun 2008 04:55:00 GMThttp://www.aygfsteel.com/supercrsky/articles/210027.htmlhttp://www.aygfsteel.com/supercrsky/comments/210027.htmlhttp://www.aygfsteel.com/supercrsky/articles/210027.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/210027.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/210027.htmlpackage com;

import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.TextBox;
import javax.microedition.lcdui.TextField;
import javax.microedition.lcdui.Ticker;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

/*******************************************************************************
 * 
 * 
@author zdw
 * 
 
*/

public class TextTest extends MIDlet implements CommandListener
{
    
// 鏂囨湰妗?/span>
    private TextBox tbx = null;
    
// 鎺у埗杈撳叆杈撳嚭鐨勭被
    private Display display = Display.getDisplay(this);
    
// 鍛戒護(hù)鑿滃崟(娓呴櫎)
    private Command clear;
    
// 寰楀埌榧犳爣浣嶇疆
    private Command getCursorPos;
    
// 杈撳叆闄愬埗
    private Command astrict;
    
// 鍙戦?/span>
    private Command send;
    
// 閫鍑?/span>
    private Command exit;

    
public TextTest()
    
{
        
// 鍒濆鍖杢extBox
        tbx = new TextBox("嫻嬭瘯鏍囬""嫻嬭瘯鍐呭"200, TextField.ANY);
        
// 璁劇疆涓哄綋鍓嶆樉紺?/span>
        display.setCurrent(tbx);
        
// 娓呴櫎鑿滃崟
        clear = new Command("娓呯┖", Command.SCREEN, 1);
        
// 鍏夋爣浣嶇疆鑿滃崟
        getCursorPos = new Command("鍏夋爣浣嶇疆", Command.SCREEN, 1);
        
// 杈撳叆闄愬埗鑿滃崟
        astrict = new Command("鍙兘杈撳叆鏁板瓧", Command.SCREEN, 1);
        
// 鍙戦佽彍鍗?/span>
        send = new Command("鍙戦?/span>", Command.SCREEN, 1);
        
// 閫鍑鴻彍鍗?/span>
        exit = new Command("閫鍑?/span>", Command.EXIT, 1);

        tbx.addCommand(clear);
        tbx.addCommand(getCursorPos);
        tbx.addCommand(astrict);
        tbx.addCommand(send);
        tbx.addCommand(exit);
        
// 娣誨姞Ticker(鏄劇ず鍦═extBox涓婃柟)
        tbx.setTicker(new Ticker("鐭俊緙栬緫鍣?/span>"));
        
// 娣誨姞浜嬩歡鐩戝惉鍣?/span>
        tbx.setCommandListener(this);
    }


    
// Alert鐨勫垵濮嬪嚱鏁?/span>
    public void initAlert()
    
{
        Alert alert 
= new Alert("鎻愮ず""鍙戦佹垚鍔?/span>"null, AlertType.INFO);
        alert.setTimeout(Alert.FOREVER);
        display.setCurrent(alert);
    }


    
// 浜嬩歡澶勭悊
    public void commandAction(Command cmd, Displayable dis)
    
{
        
if (cmd == getCursorPos)
        
{
            System.out.println(
"鍏夋爣浣嶇疆涓?" + tbx.getCaretPosition());
        }

        
if (cmd == clear)
        
{
            tbx.setString(
"");
        }

        
if (cmd.getLabel().equals("鍙兘杈撳叆鏁板瓧"))
        
{
            tbx.setConstraints(TextField.DECIMAL);
            tbx.removeCommand(astrict);
            astrict 
= new Command("鍙栨秷闄愬埗", Command.SCREEN, 1);
            tbx.addCommand(astrict);
        }

        
if (cmd.getLabel().equals("鍙栨秷闄愬埗"))
        
{
            tbx.setConstraints(TextField.ANY);
            tbx.removeCommand(astrict);
            astrict 
= new Command("鍙兘杈撳叆鏁板瓧", Command.SCREEN, 1);
            tbx.addCommand(astrict);
        }

        
if (cmd.getCommandType() == Command.EXIT)
        
{
            
this.notifyDestroyed();
        }

        
if (cmd == send)
        
{
            
this.initAlert();
        }

    }


    
protected void destroyApp(boolean arg0) throws MIDletStateChangeException
    
{

    }


    
protected void pauseApp()
    
{

    }


    
protected void startApp() throws MIDletStateChangeException
    
{

    }


}



]]>
主站蜘蛛池模板: 镇平县| 武宁县| 泸西县| 博客| 行唐县| 高清| 荆州市| 泰来县| 海原县| 岳阳市| 汽车| 泗洪县| 潮安县| 九寨沟县| 五常市| 涟源市| 中方县| 辉县市| 鹤峰县| 荆门市| 宁明县| 安乡县| 建瓯市| 白山市| 邢台市| 九寨沟县| 仁寿县| 内乡县| 玉田县| 泸溪县| 永泰县| 高雄县| 三穗县| 乌兰察布市| 左云县| 台江县| 文安县| 仪征市| 长寿区| 大埔区| 黑山县|