item有哪些事件可触发

l_tiger 2005-08-17 05:10:13
如 ChoiceGroup,TextField有哪些事件可触发,MIDP 1.0
...全文
98 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
homesos 2005-08-18
  • 打赏
  • 举报
回复
ItemStateChange 这个事件比较好用滴,可试一下先
jsjjms 2005-08-18
  • 打赏
  • 举报
回复
Method Summary
void addCommand(Command cmd)
Adds a context sensitive Command to the item.
String getLabel()
Gets the label of this Item object.
int getLayout()
Gets the layout directives used for placing the item.
int getMinimumHeight()
Gets the minimum height for this Item.
int getMinimumWidth()
Gets the minimum width for this Item.
int getPreferredHeight()
Gets the preferred height of this Item.
int getPreferredWidth()
Gets the preferred width of this Item.
void notifyStateChanged()
Causes this Item's containing Form to notify the Item's ItemStateListener.
void removeCommand(Command cmd)
Removes the context sensitive command from item.
void setDefaultCommand(Command cmd)
Sets default Command for this Item.
void setItemCommandListener(ItemCommandListener l)
Sets a listener for Commands to this Item, replacing any previous ItemCommandListener.
void setLabel(String label)
Sets the label of the Item.
void setLayout(int layout)
Sets the layout directives for this item.
void setPreferredSize(int width, int height)
Sets the preferred width and height for this Item.
xueyong1203 2005-08-18
  • 打赏
  • 举报
回复
看帮助文档啊
小水晶 2005-08-18
  • 打赏
  • 举报
回复
ItemStateChange记住这个就够了
网络咖啡 2005-08-17
  • 打赏
  • 举报
回复
ItemStateChange

只有这一个了

13,100

社区成员

发帖
与我相关
我的任务
社区描述
Java J2ME
社区管理员
  • J2ME社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧