javax.microedition.lcdui.Display類
方法
static Display getDisplay(MIDlet midlet) 獲取Display類的實(shí)例
Displayable getCurrent() 獲取目前Displayable類的實(shí)例
void setCurrent(Alert alert,Displayable displayable) 顯示所指定的報(bào)警對話框的實(shí)例和被指定Displayable類的實(shí)例
void setCurrent(Displayable displayable) 顯示所指定的Displayable類的實(shí)例
boolean isColor() 判斷設(shè)備是否支持彩色
int numColors() 獲取設(shè)備能用的色彩位數(shù)或灰度
void callSerial(Runnable runnable) 重繪圖后,調(diào)用Runnable類的實(shí)例
javax.microedition.lcdui.Displayable類
方法
void addCommand(Command command) 將命令關(guān)聯(lián)到Displayabel類的實(shí)例
void removecommand (Command command ) 撤消關(guān)聯(lián)
void setCommandListener (CommandListener commandlistener) 關(guān)聯(lián)CommandListener到Displayable類的實(shí)例
boolean isShown () 判斷Displayable類實(shí)例時(shí)候在屏幕上顯示
javax.microedition.lcdui.Command類
Command(String label, int commandTYPE, int priority) 創(chuàng)建Command類的實(shí)例,顯示指定的標(biāo)簽,設(shè)置指定的命令類型和優(yōu)先級
int getCommandType() 獲取命令的命令類型
String getLabel() 獲取命令的標(biāo)簽
int getPriority() 獲取命令的優(yōu)先級
javax.microedition.lcdui.CommandListener接口
方法
void commandAction(Command command,Displayable dispalyable) 處理Command類的實(shí)例
javax.microedition.lcdui.Item類
方法
String getLabel() 獲取與Item類的實(shí)例關(guān)聯(lián)的標(biāo)簽
void setLabel(String label) 為Item類的實(shí)例指定一個(gè)標(biāo)簽
javax.microedition.ItemStateListener接口
方法
void itemStateChanged (Item item) 處理Item類的實(shí)例的改變
javax.microedition.midlet.MIDlet 類
方法
abstract void destroyApp(boolean unconditional) 關(guān)閉MIDlet
abstract void pauseApp() 暫停MIDlet
abstract void startApp() 激活MIDlet
final void notify Destroyed() 請求停止MIDlet
final void notifyPause() 請求暫停MIDlet
final void notifyRequset() 請求激活MIDlet
final String getAppProperty(string key) 從JAD或JAR文件獲取屬性
javax.microedition.midlet.MIDletStateChangeException類
方法
MIDletStateChangeException 不用測試生成心得MIDletStateChangeException對象
MIDletStateChangeException(String string) 生成新的帶消息的MIDletStateChangeException對象