




已阅读5页,还剩28页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
J2ME API笔记 Alert 列表; AlertType rithmeticException ArrayIndexOutOfBoundsException ArrayStoreException Boolean Byte ByteArrayInputStream ByteArrayOutputStream Calendar Canvas 画布; Certificate CertificateException Character Choice ChoiceGroup Class ClassCastException ClassNotFoundException CommConnection Command CommandListener Connection ConnectionNotFoundException Connector ContentConnection Control Controllable CustomItem DataInput DataInputStream DataOutput DataOutputStream Datagram DatagramConnection Date DateField Display Displayable Double EOFException EmptyStackException Enumeration Error Exception Float Font Form 文本; GameCanvas Gauge Graphics 虚拟画笔; Hashtable HttpConnection HttpsConnection IOException IllegalAccessException IllegalArgumentException IllegalMonitorStateException IllegalStateException IllegalThreadStateException Image ImageItem IndexOutOfBoundsException InputConnection InputStream InputStreamReader InstantiationException Integer InterruptedException InterruptedIOException InvalidRecordIDException Item ItemCommandListener ItemStateListener Layer LayerManager List 绘制复选框; Long MIDlet MIDletStateChangeException Manager Math MediaException NegativeArraySizeException NoClassDefFoundError NoSuchElementException NullPointerException NumberFormatException Object OutOfMemoryError OutputConnection OutputStream OutputStreamWriter Player PlayerListener PrintStream PushRegistry Random Reader RecordComparator RecordEnumeration RecordFilter RecordListener RecordStore RecordStoreException RecordStoreFullException RecordStoreNotFoundException RecordStoreNotOpenException Runnable Runtime RuntimeException Screen SecureConnection SecurityException SecurityInfo ServerSocketConnection Short SocketConnection Spacer Sprite Stack StreamConnection StreamConnectionNotifier String StringBuffer StringIndexOutOfBoundsException StringItem System TextBox 绘制单选按钮; TextField Thread Throwable Ticker TiledLayer TimeZone Timer TimerTask ToneControl UDPDatagramConnection UTFDataFormatException UnsupportedEncodingException Vector VirtualMachineError VolumeControl WriterClass Canvas javax.microedition.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 staticintKEY_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 object.Method SummaryintgetGameAction(intkeyCode) 返回按键编码值对应用的游戏操作;intgetKeyCode(intgameAction) 返回游戏操作常量的案件编码值;StringgetKeyName(intkeyCode) 返回按键编码值对应的按键的名称,这个名称不是游戏操作的名称,而是实际按键的名称;booleanhasPointerEvents() 响应指针拖动事件;booleanhasPointerMotionEvents() 判断设备是否探测指针设备的按下,拖动和释放行为;booleanhasRepeatEvents() 判断设备是否支持重复按键;protected voidhideNotify() 在应用程序管理器从屏幕删除画布后调用;booleanisDoubleBuffered() 判断设备是否支持双缓冲器;protected voidkeyPressed(intkeyCode) 当按下按键时调用,通常处理按键的案件编码;protected voidkeyReleased(intkeyCode) 当释放按键时调用,通常处理按键的案件编码;protected voidkeyRepeated(intkeyCode) 当持续按下按键时调用,通常处理案件的按键编码; (不是所有设备都支持)protected abstract voidpaint(Graphicsg) 把Graphics类的实例作为参数,在画布上绘制一幅图像;protected voidpointerDragged(intx, inty) 响应指针拖动事件;protected voidpointerPressed(intx, inty) 响应指针按下事件;protected voidpointerReleased(intx, inty) 响应指针释放事件;voidrepaint() 重新绘制整个画布;voidrepaint(intx, inty, intwidth, intheight) 重新绘制画布的指定区域;voidserviceRepaints() 在其他优先需求之前必须处理的画笔需求;voidsetFullScreenMode(booleanmode) Controls whether the Canvas is in full-screen mode or in normal tected voidshowNotify() 在应用程序管理显示画布之前调用;protected voidsizeChanged(intw, inth) Called when the drawable area of the Canvas has been changed.Class Screen javax.microedition.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, 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(): 获得屏幕标题;StringgetTitle() :获得屏幕的滚动牌;intgetWidth() Gets 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 Displayable, replacing any previous CommandListener.voidsetTicker(Tickerticker):设定屏幕的滚动牌;voidsetTitle(Strings):设定屏幕的标题;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.Objectequals, 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 the user dismisses it.Constructor SummaryAlert(Stringtitle) 创建Alert类的实例;Alert(Stringtitle, StringalertText, ImagealertImage, AlertTypealertType) 使用Image和AlertType创建Alert类的实例;Method SummaryvoidaddCommand(Commandcmd) Similar to Displayable.addCommand(javax.microedition.lcdui.Command), however when the application first adds a command to an Alert, DISMISS_COMMAND is implicitly getDefaultTimeout() 获得Alert类的实例的默认超时;ImagegetImage() 获得Alert类的实例的图像;GaugegetIndicator() Gets the activity indicator for this Alert.StringgetString() 获得Alert类的实例的消息;intgetTimeout() 获得Alcrt类的实例要显示的实际时间;AlertTypegetType() 获得Alecrt类的实例的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(javax.microedition.lcdui.CommandListener) but with the following additional semantics.voidsetImage(Imageimg) 把指定图像和Alert类的实力建立关联;voidsetIndicator(Gaugeindicator) Sets an activity indicator on this Alert.voidsetString(Stringstr) 设定Alert类的实力的消息;voidsetTimeout(inttime) 设定Alert类的实例的显示时间;voidsetType(AlertTypetype) 设定Alert类的实例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, waitClass Form javax.microedition.lcduiConstructor SummaryForm(Stringtitle) 创建Form类的实例;Form(Stringtitle, Itemitems) 创建Form类的实例,并且把它指定的项数组加到实例上Method Summaryintappend(Imageimg) 把Image类的实例添加到Form类的实例;intappend(Itemitem) 把Item类或其子类的实例添加到Form类的实例;intappend(Stringstr) 把String类的实例添加到Form类的实例;voiddelete(intitemNum) 根据索引从Form类的实例中删除指定Item类或其子类的实例voiddeleteAll() Itemget(intitemNum) 获得索引指定的位置处的Item类或其子类的的实例;intgetHeight() intgetWidth() voidinsert(intitemNum, Itemitem) 在索引指定的位置处插入Item类或子类的实例voidset(intitemNum, Itemitem) 在索引指定的位置使用第二个参数引用的Item类或其子类的实例;voidsetItemStateListener(ItemStateListeneriListener) 将ItemStateListener和Item类或其子类的实例建立关联;intsize() 获得Form类的实例中的Item类及子类的实例数目;Methods inherited from class javax.microedition.lcdui.DisplayableaddCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChangedMethods inherited from class java.lang.Objectequals, getClass, 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_NEWLINE_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, intchoiceType) 创建一个空的ChoiceGroup类的实例,实例的标题是label,实例的类型是choiceType;ChoiceGroup(Stringlabel, intchoiceType, StringstringElements, ImageimageElements) 创建ChoiceGroup类的实例,实例的标题是label,实例的类型是choiceType,实例使用图像,并且使用string中包含的选项组成这个实例;Method Summaryintappend(StringstringPart, ImageimagePart) 在choiceType类的实例中的所有选项末尾增加选项,并且设定这个选项关联的图像;voiddelete(intelementNum) 根据索引数,从ChoiceGroup类的实例中删除相应的选项及其相关联的图像;voiddeleteAll() Deletes all elements from this ChoiceGgetFitPolicy() Gets the applications preferred policy for fitting Choice element contents to the available screen space.FontgetFont(intelementNum) Gets the applications preferred font for rendering the specified element of this Choice.ImagegetImage(intelementNum) 获得索引数标记的选项关联的图像;intgetSelectedFlags(booleanselectedArray_return) 获得选项的选择状态,并把状态存储在一个数组selectedArray_return中;intgetSelectedIndex() 获得被选择的选项关联的索引数;StringgetString(intelementNum) 获得索引数标记的选项关联的字符串;voidinsert(intelementNum, StringstringPart, ImageimagePart) 在索引数标记的选项前,插入一个又string和image指定的选项到ChoiceGroup类的实例中;booleanisSelected(intelementNum)判断用户是否选择了索引数标识的选项;voidset(intelementNum, StringstringPart, ImageimagePart) 使用string和image指定的选项替代索引数标记的选项;voidsetFitPolicy(intfitPolicy) Sets the applications 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) 使用数组中存储的状态设定选项的选择状态;voidsetSelectedIndex(intelementNum, booleanselected) 设定索引鼠标及的选项的选择状态,或者被选择(true),或者不被选择(false);intsize() 获得ChoiceGroup类的实例中选项的数目;Methods inherited from class javax.microedition.lcdui.ItemaddCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, 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 information (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_CENTER, 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) 创建包含指定标签、使用特定模式的DateField类的实例;DateField(Stringlabel, intmode, TimeZonetimeZone) 创建包含指定标签、使用特定模式和时区的DateFild类的实例;Method SummaryDategetDate() 从DateField类的实例中获得日期/时间;intgetInputMode() 获得DateField类的实例的收入模式;voidsetDate(Datedate) 从DateField类的实例设定日期;voidsetInputMode(intmode) 使用一个不同的模式替换已有的日期域的模式;Methods inherited from class javax.microedition.lcdui.ItemaddCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout, setPreferredSizeMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, 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 Gauge 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.staticintINDEFINITE 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_NEWLINE_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 maximum and initial values.Method SummaryvoidaddCommand(Commandcmd) Adds a context sensitive Command to the getMaxValue() 获得guage的最大值;intgetValue() 获得gauge的当前值;booleanisInteractive() 判断guage是否是交互式的;voidsetDefaultCommand(Commandcmd) Sets default Command for this Item.voidsetItemCommandListener(ItemCommandListenerl) 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) 设定guage的最大值;voidsetPreferredSize(intwidth, intheight) Sets the preferred width and height for this Item.voidsetValue(intvalue) 为gauge设定一个新值;Methods inherited from class javax.microedition.lcdui.ItemgetLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommandMethods inherited from 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, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAINConstructor SummaryStringItem(Stringlabel, Stringtext) 创建StringItem类的实例,其中,lable是一个说明StringItem类的标签,text是在屏幕上显示的文本;StringItem(Stringlabel, Stringtext, intappearanceMode) Creates a new StringItem object with the given label, textual content, and appearance mode.Method SummaryintgetAppearanceMode() FontgetFont() StringgetText() 获得StringItem类的实例的文本部分;voidsetFont(Fontfont) Sets the applications preferred font for rendering this StringItem.voidsetPreferredSize(intwidth, intheight) Sets the preferred width and height for this Item.voidsetText(Stringtext) 替换StringItem类的实例的文本部分;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 Summarystaticin
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 会计全球化 时机已经成熟
- 六一兔子活动方案
- 医学人文考试试题及答案
- 六一幼儿园美劳活动方案
- 医学骨科考试试题及答案
- 六一森林王国活动方案
- 六一活动亲子课活动方案
- 六一活动回访活动方案
- 六一活动特价课活动方案
- 六一活动送礼物活动方案
- 第四章婴儿期的心理发展
- GB/T 19139-2012油井水泥试验方法
- 2023年浙江大学形势与政策题库
- 铁道概论试题及答案重要
- 空间几何中的平行与垂直 新高考 数学 一轮复习专项提升 精讲精练
- 镁合金片状、带状或条状,含镁>50%MSDS危险化学品安全技术说明书
- 大班语言《蓝盒子》课件
- 动物解剖学之 泌尿系统课件
- 幼儿园大班社会:《京剧》 课件
- 红茶加工技术培训教学课件
- 商业运营委托管理合同模板
评论
0/150
提交评论