J2ME+中文API_第1頁
J2ME+中文API_第2頁
J2ME+中文API_第3頁
J2ME+中文API_第4頁
J2ME+中文API_第5頁
已閱讀5頁,還剩25頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、 Alert 列表; AlertType rithmeticException ArrayIndexOutOfBoundsException ArrayStoreException Boolean Byte ByteArrayInputStream ByteArrayOutputStream Calendar Canvas 畫布; Certificate CertificateException Character Choice ChoiceGroup Class ClassCastException ClassNotFoundException CommConnection Command

2、CommandListener Connection ConnectionNotFoundException Connector ContentConnection Control Controllable CustomItem DataInput DataInputStream DataOutput DataOutputStream Datagram DatagramConnection Date DateField Display Displayable Double EOFException EmptyStackException Enumeration Error Exception

3、Float Font Form 文本; GameCanvas Gauge Graphics 虛擬畫筆; Hashtable HttpConnection HttpsConnection IOException IllegalAccessException IllegalArgumentException IllegalMonitorStateException IllegalStateException IllegalThreadStateException Image ImageItem IndexOutOfBoundsException InputConnection InputStrea

4、m InputStreamReader InstantiationException Integer InterruptedException InterruptedIOException InvalidRecordIDException Item ItemCommandListener ItemStateListener Layer LayerManager List 繪制復(fù)選框; Long MIDlet MIDletStateChangeException Manager Math MediaException NegativeArraySizeException NoClassDefFo

5、undError NoSuchElementException NullPointerException NumberFormatException Object OutOfMemoryError OutputConnection OutputStream OutputStreamWriter Player PlayerListener PrintStream PushRegistry Random Reader RecordComparator RecordEnumeration RecordFilter RecordListener RecordStore RecordStoreExcep

6、tion RecordStoreFullException RecordStoreNotFoundException RecordStoreNotOpenException Runnable Runtime RuntimeException Screen SecureConnection SecurityException SecurityInfo ServerSocketConnection Short SocketConnection Spacer Sprite Stack StreamConnection StreamConnectionNotifier String StringBuf

7、fer StringIndexOutOfBoundsException StringItem System TextBox 繪制單選按鈕; TextField Thread Throwable Ticker TiledLayer TimeZone Timer TimerTask ToneControl UDPDatagramConnection UTFDataFormatException UnsupportedEncodingException Vector VirtualMachineError VolumeControl WriterClass Canvas javax.microedi

8、tion.lcduiField SummarystaticintDOWN staticintFIRE staticintGAME_A staticintGAME_B staticintGAME_C staticintGAME_D staticintKEY_NUM0 staticintKEY_NUM1 staticintKEY_NUM2 staticintKEY_NUM3staticintKEY_NUM4 staticintKEY_NUM5 staticintKEY_NUM6 staticintKEY_NUM7 staticintKEY_NUM8 staticintKEY_NUM9 static

9、intKEY_POUND keyCode for ITU-T key pound (#).staticintKEY_STAR keyCode for ITU-T key star (*).staticintLEFT Constant for the LEFT game action.staticintRIGHT Constant for the RIGHT game action.staticintUP Constant for the UP game action.Constructor Summaryprotected Canvas() Constructs a new Canvas ob

10、ject.Method SummaryintgetGameAction(intkeyCode) 返回按鍵編碼值對應(yīng)用的游戲操作;intgetKeyCode(intgameAction) 返回游戲操作常量的案件編碼值;StringgetKeyName(intkeyCode) 返回按鍵編碼值對應(yīng)的按鍵的名稱,這個(gè)名稱不是游戲操作的名稱,而是實(shí)際按鍵的名稱;booleanhasPointerEvents() 響應(yīng)指針拖動(dòng)事件;booleanhasPointerMotionEvents() 判斷設(shè)備是否探測指針設(shè)備的按下,拖動(dòng)和釋放行為;booleanhasRepeatEvents() 判斷設(shè)備是否支

11、持重復(fù)按鍵;protected voidhideNotify() 在應(yīng)用程序管理器從屏幕刪除畫布后調(diào)用;booleanisDoubleBuffered() 判斷設(shè)備是否支持雙緩沖器;protected voidkeyPressed(intkeyCode) 當(dāng)按下按鍵時(shí)調(diào)用,通常處理按鍵的案件編碼;protected voidkeyReleased(intkeyCode) 當(dāng)釋放按鍵時(shí)調(diào)用,通常處理按鍵的案件編碼;protected voidkeyRepeated(intkeyCode) 當(dāng)持續(xù)按下按鍵時(shí)調(diào)用,通常處理案件的按鍵編碼; (不是所有設(shè)備都支持)protected abstract

12、voidpaint(Graphicsg) 把Graphics類的實(shí)例作為參數(shù),在畫布上繪制一幅圖像;protected voidpointerDragged(intx, inty) 響應(yīng)指針拖動(dòng)事件;protected voidpointerPressed(intx, inty) 響應(yīng)指針按下事件;protected voidpointerReleased(intx, inty) 響應(yīng)指針釋放事件;voidrepaint() 重新繪制整個(gè)畫布;voidrepaint(intx, inty, intwidth, intheight) 重新繪制畫布的指定區(qū)域;voidserviceRepaints

13、() 在其他優(yōu)先需求之前必須處理的畫筆需求;voidsetFullScreenMode(booleanmode) Controls whether the Canvas is in full-screen mode or in normal tected voidshowNotify() 在應(yīng)用程序管理顯示畫布之前調(diào)用;protected voidsizeChanged(intw, inth) Called when the drawable area of the Canvas has been changed.Class Screen javax.microedition.

14、lcduiMethods inherited from class javax.microedition.lcdui.DisplayableaddCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChangedMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString

15、, wait, wait, waitClass Displayable javax.microedition.lcduiMethod SummaryvoidaddCommand(Commandcmd) Adds a command to the DgetHeight() Gets the height in pixels of the displayable area available to the application.TickergetTicker(): 獲得屏幕標(biāo)題;StringgetTitle() :獲得屏幕的滾動(dòng)牌;intgetWidth() Gets

16、 the width in pixels of the displayable area available to the application.booleanisShown() Checks if the Displayable is actually visible on the display.voidremoveCommand(Commandcmd) Removes a command from the Displayable.voidsetCommandListener(CommandListenerl) Sets a listener for Commands to this D

17、isplayable, replacing any previous CommandListener.voidsetTicker(Tickerticker):設(shè)定屏幕的滾動(dòng)牌;voidsetTitle(Strings):設(shè)定屏幕的標(biāo)題;protected voidsizeChanged(intw, inth) The implementation calls this method when the available area of the Displayable has been changed.Methods inherited from class java.lang.Objecteq

18、uals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitClass Alert javax.microedition.lcduiField SummarystaticCommandDISMISS_COMMAND A Command delivered to a listener to indicate that the Alert has been dismissed.staticintFOREVER FOREVER indicates that an Alert is kept visible until

19、the user dismisses it.Constructor SummaryAlert(Stringtitle) 創(chuàng)建Alert類的實(shí)例;Alert(Stringtitle, StringalertText, ImagealertImage, AlertTypealertType) 使用Image和AlertType創(chuàng)建Alert類的實(shí)例;Method SummaryvoidaddCommand(Commandcmd) Similar to Displayable.addCommand(javax.microedition.lcdui.Command), however when the

20、 application first adds a command to an Alert, DISMISS_COMMAND is implicitly getDefaultTimeout() 獲得Alert類的實(shí)例的默認(rèn)超時(shí);ImagegetImage() 獲得Alert類的實(shí)例的圖像;GaugegetIndicator() Gets the activity indicator for this Alert.StringgetString() 獲得Alert類的實(shí)例的消息;intgetTimeout() 獲得Alcrt類的實(shí)例要顯示的實(shí)際時(shí)間;AlertTypeget

21、Type() 獲得Alecrt類的實(shí)例的AlertTypc;voidremoveCommand(Commandcmd) Displayable.removeCommand(javax.microedition.lcdui.Command), however when the application removes the last command from an Alert, DISMISS_COMMAND is implicitly added.voidsetCommandListener(CommandListenerl) Displayable.setCommandListener(ja

22、vax.microedition.lcdui.CommandListener) but with the following additional semantics.voidsetImage(Imageimg) 把指定圖像和Alert類的實(shí)力建立關(guān)聯(lián);voidsetIndicator(Gaugeindicator) Sets an activity indicator on this Alert.voidsetString(Stringstr) 設(shè)定Alert類的實(shí)力的消息;voidsetTimeout(inttime) 設(shè)定Alert類的實(shí)例的顯示時(shí)間;voidsetType(AlertT

23、ypetype) 設(shè)定Alert類的實(shí)例AlertType;Methods inherited from class javax.microedition.lcdui.DisplayablegetHeight, getTicker, getTitle, getWidth, isShown, setTicker, setTitle, sizeChangedMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitClas

24、s Form javax.microedition.lcduiConstructor SummaryForm(Stringtitle) 創(chuàng)建Form類的實(shí)例;Form(Stringtitle, Itemitems) 創(chuàng)建Form類的實(shí)例,并且把它指定的項(xiàng)數(shù)組加到實(shí)例上Method Summaryintappend(Imageimg) 把Image類的實(shí)例添加到Form類的實(shí)例;intappend(Itemitem) 把Item類或其子類的實(shí)例添加到Form類的實(shí)例;intappend(Stringstr) 把String類的實(shí)例添加到Form類的實(shí)例;voiddelete(intitemNum

25、) 根據(jù)索引從Form類的實(shí)例中刪除指定Item類或其子類的實(shí)例voiddeleteAll() Itemget(intitemNum) 獲得索引指定的位置處的Item類或其子類的的實(shí)例;intgetHeight() intgetWidth() voidinsert(intitemNum, Itemitem) 在索引指定的位置處插入Item類或子類的實(shí)例voidset(intitemNum, Itemitem) 在索引指定的位置使用第二個(gè)參數(shù)引用的Item類或其子類的實(shí)例;voidsetItemStateListener(ItemStateListeneriListener) 將ItemStat

26、eListener和Item類或其子類的實(shí)例建立關(guān)聯(lián);intsize() 獲得Form類的實(shí)例中的Item類及子類的實(shí)例數(shù)目;Methods inherited from class javax.microedition.lcdui.DisplayableaddCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChangedMethods inherited from class java.lang.Objectequals, getClass,

27、hashCode, notify, notifyAll, toString, wait, wait, waitClass ChoiceGroup javax.microedition.lcduiField SummaryFields inherited from class javax.microedition.lcdui.ItemBUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_N

28、EWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAINFields inherited from interface javax.microedition.lcdui.ChoiceEXCLUSIVE, IMPLICIT, MULTIPLE, POPUP, TEXT_WRAP_DEFAULT, TEXT_WRAP_OFF, TEXT_WRAP_ONConstructor SummaryChoiceGroup(Stringlabel,

29、intchoiceType) 創(chuàng)建一個(gè)空的ChoiceGroup類的實(shí)例,實(shí)例的標(biāo)題是label,實(shí)例的類型是choiceType;ChoiceGroup(Stringlabel, intchoiceType, StringstringElements, ImageimageElements) 創(chuàng)建ChoiceGroup類的實(shí)例,實(shí)例的標(biāo)題是label,實(shí)例的類型是choiceType,實(shí)例使用圖像,并且使用string中包含的選項(xiàng)組成這個(gè)實(shí)例;Method Summaryintappend(StringstringPart, ImageimagePart) 在choiceType類的實(shí)例中的

30、所有選項(xiàng)末尾增加選項(xiàng),并且設(shè)定這個(gè)選項(xiàng)關(guān)聯(lián)的圖像;voiddelete(intelementNum) 根據(jù)索引數(shù),從ChoiceGroup類的實(shí)例中刪除相應(yīng)的選項(xiàng)及其相關(guān)聯(lián)的圖像;voiddeleteAll() Deletes all elements from this ChoiceGgetFitPolicy() Gets the applications preferred policy for fitting Choice element contents to the available screen space.FontgetFont(intelementNum) G

31、ets the applications preferred font for rendering the specified element of this Choice.ImagegetImage(intelementNum) 獲得索引數(shù)標(biāo)記的選項(xiàng)關(guān)聯(lián)的圖像;intgetSelectedFlags(booleanselectedArray_return) 獲得選項(xiàng)的選擇狀態(tài),并把狀態(tài)存儲(chǔ)在一個(gè)數(shù)組selectedArray_return中;intgetSelectedIndex() 獲得被選擇的選項(xiàng)關(guān)聯(lián)的索引數(shù);StringgetString(intelementNum) 獲得索引數(shù)標(biāo)記的

32、選項(xiàng)關(guān)聯(lián)的字符串;voidinsert(intelementNum, StringstringPart, ImageimagePart) 在索引數(shù)標(biāo)記的選項(xiàng)前,插入一個(gè)又string和image指定的選項(xiàng)到ChoiceGroup類的實(shí)例中;booleanisSelected(intelementNum)判斷用戶是否選擇了索引數(shù)標(biāo)識的選項(xiàng);voidset(intelementNum, StringstringPart, ImageimagePart) 使用string和image指定的選項(xiàng)替代索引數(shù)標(biāo)記的選項(xiàng);voidsetFitPolicy(intfitPolicy) Sets the app

33、lications preferred policy for fitting Choice element contents to the available screen space.voidsetFont(intelementNum, Fontfont) Sets the applications preferred font for rendering the specified element of this Choice.voidsetSelectedFlags(booleanselectedArray) 使用數(shù)組中存儲(chǔ)的狀態(tài)設(shè)定選項(xiàng)的選擇狀態(tài);voidsetSelectedInde

34、x(intelementNum, booleanselected) 設(shè)定索引鼠標(biāo)及的選項(xiàng)的選擇狀態(tài),或者被選擇(true),或者不被選擇(false);intsize() 獲得ChoiceGroup類的實(shí)例中選項(xiàng)的數(shù)目;Methods inherited from class javax.microedition.lcdui.ItemaddCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, remov

35、eCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout, setPreferredSizeMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitClass DateField javax.microedition.lcduiField SummarystaticintDATE Input mode for date infor

36、mation (day, month, year).staticintDATE_TIME Input mode for date (day, month, year) and time (minutes, hours) information.staticintTIME Input mode for time information (hours and minutes).Fields inherited from class javax.microedition.lcdui.ItemBUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENT

37、ER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAINConstructor SummaryDateField(Stringlabel, intmode) 創(chuàng)建包含指定標(biāo)簽、使用特定模式的DateField類的實(shí)例;DateField(Stringlabel, intmode,

38、TimeZonetimeZone) 創(chuàng)建包含指定標(biāo)簽、使用特定模式和時(shí)區(qū)的DateFild類的實(shí)例;Method SummaryDategetDate() 從DateField類的實(shí)例中獲得日期/時(shí)間;intgetInputMode() 獲得DateField類的實(shí)例的收入模式;voidsetDate(Datedate) 從DateField類的實(shí)例設(shè)定日期;voidsetInputMode(intmode) 使用一個(gè)不同的模式替換已有的日期域的模式;Methods inherited from class javax.microedition.lcdui.ItemaddCommand, ge

39、tLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout, setPreferredSizeMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll,

40、toString, wait, wait, waitClass Gauge javax.microedition.lcduiField SummarystaticintCONTINUOUS_IDLE The value representing the continuous-idle state of a non-interactive Gauge with indefinite range.staticintCONTINUOUS_RUNNING The value representing the continuous-running state of a non-interactive G

41、auge with indefinite range.staticintINCREMENTAL_IDLE The value representing the incremental-idle state of a non-interactive Gauge with indefinite range.staticintINCREMENTAL_UPDATING The value representing the incremental-updating state of a non-interactive Gauge with indefinite range.staticintINDEFI

42、NITE A special value used for the maximum value in order to indicate that the Gauge has indefinite range.Fields inherited from class javax.microedition.lcdui.ItemBUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLIN

43、E_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAINConstructor SummaryGauge(Stringlabel, booleaninteractive, intmaxValue, intinitialValue) Creates a new Gauge object with the given label, in interactive or non-interactive mode, with the given maxi

44、mum and initial values.Method SummaryvoidaddCommand(Commandcmd) Adds a context sensitive Command to the getMaxValue() 獲得guage的最大值;intgetValue() 獲得gauge的當(dāng)前值;booleanisInteractive() 判斷guage是否是交互式的;voidsetDefaultCommand(Commandcmd) Sets default Command for this Item.voidsetItemCommandListener(It

45、emCommandListenerl) Sets a listener for Commands to this Item, replacing any previous ItemCommandListener.voidsetLabel(Stringlabel) Sets the label of the Item.voidsetLayout(intlayout) Sets the layout directives for this item.voidsetMaxValue(intmaxValue) 設(shè)定guage的最大值;voidsetPreferredSize(intwidth, int

46、height) Sets the preferred width and height for this Item.voidsetValue(intvalue) 為gauge設(shè)定一個(gè)新值;Methods inherited from class javax.microedition.lcdui.ItemgetLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommandMethods inherited fr

47、om class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitClass StringItem javax.microedition.lcduiField SummaryFields inherited from class javax.microedition.lcdui.ItemBUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, L

48、AYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAINConstructor SummaryStringItem(Stringlabel, Stringtext) 創(chuàng)建StringItem類的實(shí)例,其中,lable是一個(gè)說明StringItem類的標(biāo)簽,text是在屏幕上顯示的文本;StringItem(Stringlabel, Stringtext

49、, intappearanceMode) Creates a new StringItem object with the given label, textual content, and appearance mode.Method SummaryintgetAppearanceMode() FontgetFont() StringgetText() 獲得StringItem類的實(shí)例的文本部分;voidsetFont(Fontfont) Sets the applications preferred font for rendering this StringItem.voidsetPre

50、ferredSize(intwidth, intheight) Sets the preferred width and height for this Item.voidsetText(Stringtext) 替換StringItem類的實(shí)例的文本部分;Methods inherited from class javax.microedition.lcdui.ItemaddCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayoutMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitClass TextField javax.microedition.lcduiField SummarystaticintANY The use

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論