您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 经营企划 > Java ME 中文帮助文档
J2MEAPI笔记SuiF第1页共37页Alert显示一个包含消息的对话框AlertTyperithmeticExceptionArrayIndexOutOfBoundsExceptionArrayStoreExceptionBooleanByteByteArrayInputStreamByteArrayOutputStreamCalendar日历;Canvas画布CertificateCertificateExceptionCharacterChoiceChoiceGroup单选框与复选框ClassClassCastExceptionClassNotFoundExceptionCommConnectionCommand命令;CommandListenerConnectionConnectionNotFoundExceptionConnectorContentConnectionControlControllableCustomItemDataInputDataInputStreamDataOutputDataOutputStreamDatagramDatagramConnectionDateDateField接收日期的输入DisplayDisplayableDoubleEOFExceptionEmptyStackExceptionEnumerationErrorJ2MEAPI笔记SuiF第2页共37页ExceptionFloatFontForm容器类:能显示从Item派生的类GameCanvasGauge显示图形化的进度条Graphics虚拟画笔HashtableHash表二维集合;HttpConnectionHttpsConnectionIOExceptionIllegalAccessExceptionIllegalArgumentExceptionIllegalMonitorStateExceptionIllegalStateExceptionIllegalThreadStateExceptionImage创建图片文件ImageItem显示存储在文件中的图像IndexOutOfBoundsExceptionInputConnectionInputStreamInputStreamReaderInstantiationExceptionIntegerInterruptedExceptionInterruptedIOExceptionInvalidRecordIDExceptionItemForm的派生类;ItemCommandListenerItemStateListenerLayer图层父类LayerManager图层管理List显示一个条目如菜单LongMIDletMIDletStateChangeExceptionManagerMathMediaExceptionNegativeArraySizeExceptionNoClassDefFoundErrorNoSuchElementExceptionNullPointerExceptionNumberFormatExceptionJ2MEAPI笔记SuiF第3页共37页ObjectOutOfMemoryErrorOutputConnectionOutputStreamOutputStreamWriterPlayerPlayerListenerPrintStreamPushRegistryRandomReaderRecordComparatorRecordEnumerationRecordFilterRecordListenerRecordStoreRecordStoreExceptionRecordStoreFullExceptionRecordStoreNotFoundExceptionRecordStoreNotOpenExceptionRunnableRuntimeRuntimeExceptionScreenSecureConnectionSecurityExceptionSecurityInfoServerSocketConnectionShortSocketConnectionSpacerSprite角色(精灵)图层;StackStreamConnectionStreamConnectionNotifierStringStringBufferStringIndexOutOfBoundsExceptionStringItem在屏幕上显示文字SystemTextBox在屏幕上显示多行文本TextField接收文本的输入ThreadThrowableJ2MEAPI笔记SuiF第4页共37页Ticker屏幕上横向滚动文本TiledLayer地图图层;TimeZone时区;TimerTimerTask定时器;ToneControlUDPDatagramConnectionUTFDataFormatExceptionUnsupportedEncodingExceptionVector一级集合;VirtualMachineErrorVolumeControlWriterClassCanvasjavax.microedition.lcduiFieldSummarystaticintDOWNstaticintFIREstaticintGAME_AstaticintGAME_BstaticintGAME_CstaticintGAME_DstaticintKEY_NUM0staticintKEY_NUM1staticintKEY_NUM2staticintKEY_NUM3staticintKEY_NUM4staticintKEY_NUM5staticintKEY_NUM6staticintKEY_NUM7staticintKEY_NUM8staticintKEY_NUM9staticintKEY_POUNDJ2MEAPI笔记SuiF第5页共37页keyCodeforITU-Tkeypound(#).staticintKEY_STARkeyCodeforITU-Tkeystar(*).staticintLEFTConstantfortheLEFTgameaction.staticintRIGHTConstantfortheRIGHTgameaction.staticintUPConstantfortheUPgameaction.ConstructorSummaryprotectedCanvas()MethodSummaryintgetGameAction(intkeyCode)返回按键编码值对应用的游戏操作;intgetKeyCode(intgameAction)返回游戏操作常量的案件编码值;StringgetKeyName(intkeyCode)返回按键编码值对应的按键的名称,这个名称不是游戏操作的名称,而是实际按键的名称;booleanhasPointerEvents()响应指针拖动事件;booleanhasPointerMotionEvents()判断设备是否探测指针设备的按下,拖动和释放行为;booleanhasRepeatEvents()判断设备是否支持重复按键;protectedvoidhideNotify()在应用程序管理器从屏幕删除画布后调用;booleanisDoubleBuffered()判断设备是否支持双缓冲器;protectedvoidkeyPressed(intkeyCode)当按下按键时调用,通常处理按键的案件编码;protectedvoidkeyReleased(intkeyCode)当释放按键时调用,通常处理按键的案件编码;protectedvoidkeyRepeated(intkeyCode)当持续按下按键时调用,通常处理案件的按键编码;(不是所有设备都支持)protectedabstractvoidpaint(Graphicsg)把Graphics类的实例作为参数,在画布上绘制一幅图像;protectedvoidpointerDragged(intx,inty)响应指针拖动事件;protectedvoidpointerPressed(intx,inty)响应指针按下事件;protectedvoidpointerReleased(intx,inty)响应指针释放事件;voidrepaint()重新绘制整个画布;voidrepaint(intx,inty,intwidth,intheight)重新绘制画布的指定区域;voidserviceRepaints()在其他优先需求之前必须处理的画笔需求;voidsetFullScreenMode(booleanmode)设置全屏模式;J2MEAPI笔记SuiF第6页共37页protectedvoidshowNotify()在应用程序管理显示画布之前调用;protectedvoidsizeChanged(intw,inth)ClassScreenjavax.microedition.lcduiMethodsinheritedfromclassjavax.microedition.lcdui.DisplayableaddCommand,getHeight,getTicker,getTitle,getWidth,isShown,removeCommand,setCommandListener,setTicker,setTitle,sizeChangedMethodsinheritedfromclassjava.lang.Objectequals,getClass,hashCode,notify,notifyAll,toString,wait,wait,waitClassDisplayablejavax.microedition.lcduiMethodSummaryvoidaddCommand(Commandcmd)将命令关联到Displayable类的实例;intgetHeight()TickergetTicker():获得屏幕标题;StringgetTitle():获得屏幕的滚动牌;intgetWidth()booleanisShown()判断Displayable类实例是否在屏幕上显示;voidremoveCommand(Commandcmd)从Displayable类的实例撤销与命令的关联;voidsetCommandListener(CommandListenerl)关联CommandListener到Displayable类的实例;voidsetTicker(Tickerticker):设定屏幕的滚动牌;voidsetTitle(Strings):设定屏幕的标题;protectedvoidsizeChanged(intw,inth)Methodsinheritedfromclassjava.lang.Objectequals,getClass,hashCode,notify,notifyAll,toString,wait,wait,waitJ2MEAPI笔记SuiF第7页共37页ClassAlertjavax.microedition.lcduiFieldSummarystaticCommandDISMISS_COMMANDstaticintFOREVER模式对话框;ConstructorSummaryAlert(Stringtitle)创建Alert类的实例;Alert(Stringtitle,StringalertText,ImagealertImage,AlertTypealertType)使用Ima
本文标题:Java ME 中文帮助文档
链接地址:https://www.777doc.com/doc-6404891 .html