J2MEAPI快速查询手册0819新增多媒体.docx
- 文档编号:26397615
- 上传时间:2023-06-19
- 格式:DOCX
- 页数:58
- 大小:38.93KB
J2MEAPI快速查询手册0819新增多媒体.docx
《J2MEAPI快速查询手册0819新增多媒体.docx》由会员分享,可在线阅读,更多相关《J2MEAPI快速查询手册0819新增多媒体.docx(58页珍藏版)》请在冰豆网上搜索。
J2MEAPI快速查询手册0819新增多媒体
Ø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容器类:
能显示从Item派生的类
ØGameCanvas
ØGauge显示图形化的进度条
ØGraphics虚拟画笔
ØHashtableHash表二维集合;
ØHttpConnection
ØHttpsConnection
ØIOException
ØIllegalAccessException
ØIllegalArgumentException
ØIllegalMonitorStateException
ØIllegalStateException
ØIllegalThreadStateException
ØImage创建图片文件
ØImageItem显示存储在文件中的图像
ØIndexOutOfBoundsException
ØInputConnection
ØInputStream
ØInputStreamReader
ØInstantiationException
ØInteger
ØInterruptedException
ØInterruptedIOException
ØInvalidRecordIDException
ØItemForm的派生类;
Ø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
ØWriter
ClassCanvasjavax.microedition.lcdui
FieldSummary
static int
DOWN
static int
FIRE
static int
GAME_A
static int
GAME_B
static int
GAME_C
static int
GAME_D
static int
KEY_NUM0
static int
KEY_NUM1
static int
KEY_NUM2
static int
KEY_NUM3
static int
KEY_NUM4
static int
KEY_NUM5
static int
KEY_NUM6
static int
KEY_NUM7
static int
KEY_NUM8
static int
KEY_NUM9
static int
KEY_POUND
keyCodeforITU-Tkey"pound"(#).
static int
KEY_STAR
keyCodeforITU-Tkey"star"(*).
static int
LEFT
ConstantfortheLEFTgameaction.
static int
RIGHT
ConstantfortheRIGHTgameaction.
static int
UP
ConstantfortheUPgameaction.
ConstructorSummary
protected
Canvas()
MethodSummary
int
getGameAction(int keyCode)返回按键编码值对应用的游戏操作;
int
getKeyCode(int gameAction)返回游戏操作常量的案件编码值;
String
getKeyName(int keyCode)返回按键编码值对应的按键的名称,这个名称不是游戏操作的名称,而是实际按键的名称;
boolean
hasPointerEvents()响应指针拖动事件;
boolean
hasPointerMotionEvents()判断设备是否探测指针设备的按下,拖动和释放行为;
boolean
hasRepeatEvents()判断设备是否支持重复按键;
protected void
hideNotify()在应用程序管理器从屏幕删除画布后调用;
boolean
isDoubleBuffered()判断设备是否支持双缓冲器;
protected void
keyPressed(int keyCode)当按下按键时调用,通常处理按键的案件编码;
protected void
keyReleased(int keyCode)当释放按键时调用,通常处理按键的案件编码;
protected void
keyRepeated(int keyCode)当持续按下按键时调用,通常处理案件的按键编码;(不是所有设备都支持)
protectedabstract void
paint(Graphics g)把Graphics类的实例作为参数,在画布上绘制一幅图像;
protected void
pointerDragged(int x,int y)响应指针拖动事件;
protected void
pointerPressed(int x,int y)响应指针按下事件;
protected void
pointerReleased(int x,int y)响应指针释放事件;
void
repaint()重新绘制整个画布;
void
repaint(int x,int y,int width,int height)重新绘制画布的指定区域;
void
serviceRepaints()在其他优先需求之前必须处理的画笔需求;
void
setFullScreenMode(boolean mode)设置全屏模式;
protected void
showNotify()在应用程序管理显示画布之前调用;
protected void
sizeChanged(int w,int h)
ClassScreenjavax.microedition.lcdui
Methodsinheritedfromclassjavax.microedition.lcdui.Displayable
addCommand,getHeight,getTicker,getTitle,getWidth,isShown,removeCommand,setCommandListener,setTicker,setTitle,sizeChanged
Methodsinheritedfromclassjava.lang.Object
equals,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait
ClassDisplayablejavax.microedition.lcdui
MethodSummary
void
addCommand(Command cmd)将命令关联到Displayable类的实例;
int
getHeight()
Ticker
getTicker():
获得屏幕标题;
String
getTitle():
获得屏幕的滚动牌;
int
getWidth()
boolean
isShown()判断Displayable类实例是否在屏幕上显示;
void
removeCommand(Command cmd)从Displayable类的实例撤销与命令的关联;
void
setCommandListener(CommandListener l)关联CommandListener到Displayable类的实例;
void
setTicker(Ticker ticker):
设定屏幕的滚动牌;
void
setTitle(String s):
设定屏幕的标题;
protected void
sizeChanged(int w,int h)
Methodsinheritedfromclassjava.lang.Object
equals,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait
ClassAlertjavax.microedition.lcdui
FieldSummary
static Command
DISMISS_COMMAND
static int
FOREVER模式对话框;
ConstructorSummary
Alert(String title)创建Alert类的实例;
Alert(String title,String alertText,Image alertImage,AlertType alertType)
使用Image和AlertType创建Alert类的实例;
MethodSummary
void
addCommand(Command cmd)
SimilartoDisplayable.addCommand(javax.microedition.lcdui.Command),howeverwhentheapplicationfirstaddsacommandtoanAlert,DISMISS_COMMANDisimplicitlyremoved.
int
getDefaultTimeout()获得Alert类的实例的默认超时;
Image
getImage()获得Alert类的实例的图像;
Gauge
getIndicator()
GetstheactivityindicatorforthisAlert.
String
getString()获得Alert类的实例的消息;
int
getTimeout()获得Alcrt类的实例要显示的实际时间;
AlertType
getType()获得Alecrt类的实例的AlertTypc;
void
removeCommand(Command cmd)Displayable.removeCommand(javax.microedition.lcdui.Command),howeverwhentheapplicationremovesthelastcommandfromanAlert,DISMISS_COMMANDisimplicitlyadded.
void
setCommandListener(CommandListener l)Displayable.setCommandListener(javax.microedition.lcdui.CommandListener)butwiththefollowingadditionalsemantics.
void
setImage(Image img)把指定图像和Alert类的实力建立关联;
void
setIndicator(Gauge indicator)
SetsanactivityindicatoronthisAlert.
void
setString(String str)设定Alert类的实力的消息;
void
setTimeout(int time)设定Alert类的实例的显示时间;
void
setType(AlertType type)设定Alert类的实例AlertType;
Methodsinheritedfromclassjavax.microedition.lcdui.Displayable
getHeight,getTicker,getTitle,getWidth,isShown,setTicker,setTitle,sizeChanged
Methodsinheritedfromclassjava.lang.Object
equals,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait
ClassFormjavax.microedition.lcdui
ConstructorSummary
Form(String title)创建Form类的实例;
Form(String title,Item[] items)创建Form类的实例,并且把它指定的项数组加到实例上
MethodSummary
int
append(Image img)把Image类的实例添加到Form类的实例;
int
append(Item item)把Item类或其子类的实例添加到Form类的实例;
int
append(String str)把String类的实例添加到Form类的实例;
void
delete(int itemNum)根据索引从Form类的实例中删除指定Item类或其子类的实例
void
deleteAll()
Item
get(int itemNum)获得索引指定的位置处的Item类或其子类的的实例;
int
getHeight()
int
getWidth()
void
insert(int itemNum,Item item)在索引指定的位置处插入Item类或子类的实例
void
set(int itemNum,Item item)在索引指定的位置使用第二个参数引用的Item类或其子类的实例;
void
setItemStateListener(ItemStateListener iListener)将ItemStateListener和Item类或其子类的实例建立关联;
int
size()获得Form类的实例中的Item类及子类的实例数目;
Methodsinheritedfromclassjavax.microedition.lcdui.Displayable
addCommand,getTicker,getTitle,isShown,removeCommand,setCommandListener,setTicker,setTitle,sizeChanged
Methodsinheritedfromclassjava.lang.Object
equals,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait
ClassChoiceGroupjavax.microedition.lcdui
FieldSummary
Fieldsinheritedfromclassjavax.microedition.lcdui.Item
BUTTON,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,PLAIN
Fieldsinheritedfrominterfacejavax.microedition.lcdui.Choice
EXCLUSIVE,:
每次只能选择一个(单选按钮);
IMPLICIT:
每次只选择一个,这个选择自动生成一个命令事件,不使用图标菜单;
MULTIPLE:
每次可选择0或多个(复选框);
POPUP,TEXT_WRAP_DEFAULT,TEXT_WRAP_OFF,TEXT_WRAP_ON
ConstructorSummary
ChoiceGroup(String label,int choiceType)创建一个空的ChoiceGroup类的实例,实例的标题是label,实例的类型是choiceType;
ChoiceGroup(String label,int choiceType,String[] stringElements,Image[] imageElements)创建ChoiceGroup类的实例,实例的标题是label,实例的类型是choiceType,实例使用图像,并且使用string中包含的选项组成这个实例;
MethodSummary
int
append(String stringPart,Image imagePart)在choiceType类的实例中的所有选项末尾增加选项,并且设定这个选项关联的图像;
void
delete(int elementNum)根据索引数,从ChoiceGroup类的实例中删除相应的选项及其相关联的图像;
void
deleteAll()
DeletesallelementsfromthisChoiceGroup.
int
getFitPolicy()
Getstheapplication'spreferredpolicyforfittingChoiceelementcontentstotheavailablescreenspace.
Font
getFont(int elementNum)
Getstheapplication'spreferredfontforrenderingthespecified
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- J2MEAPI 快速 查询 手册 0819 新增 多媒体