锘??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 GMT60- J2Me妯℃嫙鍙戦佹墜鏈虹煭淇℃祦紼?/title>http://www.aygfsteel.com/supercrsky/articles/210416.html銆呬笂鍠勮嫢姘淬?/dc:creator>銆呬笂鍠勮嫢姘淬?/author>Tue, 24 Jun 2008 15:24:00 GMThttp://www.aygfsteel.com/supercrsky/articles/210416.htmlhttp://www.aygfsteel.com/supercrsky/comments/210416.htmlhttp://www.aygfsteel.com/supercrsky/articles/210416.html#Feedback0http://www.aygfsteel.com/supercrsky/comments/commentRss/210416.htmlhttp://www.aygfsteel.com/supercrsky/services/trackbacks/210416.html闃呰鍏ㄦ枃

]]> - 鎴戠殑絎竴涓狫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.html
package 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

{

}

}

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