getSourse() 与getActionCommand 区别
来源:互联网 发布:詹姆斯沃西数据 编辑:程序博客网 时间:2024/05/18 02:58
getSource()Returns:The object on which the Event initially occurred.依赖于事件对象getActionCommand()Returns the command name of the action event fired by this button. If the command name is null (default) then this method returns the label of the button. 依赖于按钮上的字符串getSource得到的组件的名称,而getActionCommand得到的是标签。如:Button bt=new Button("buttons"); 用getSource得到的是bt 而用getActionCommand得到的是:buttons
0 0
- getSourse() 与getActionCommand 区别
- getSource与getActionCommand的区别
- java getSource()和 getActionCommand()区别
- getActionCommand()用法
- JAVA事件处理中e.getSource()和e.getActionCommand()方法的区别
- JAVA事件处理中e.getSource()和e.getActionCommand()方法的区别
- java getSource()和 getActionCommand()
- 语言琐碎:getActionCommand
- java getSource()和 getActionCommand()
- 多按钮的事件相应,getActionCommand & setActionCommand篇
- &&与&区别
- ...与[]区别
- &与&&区别
- | 与 || 区别
- &与&&区别
- &与&&区别
- $@ 与 $*区别
- <!-- --> 与 <%-- --%>区别!!
- golang显示数据的类型
- 利用数组实现的堆排序
- 客户端IP返回::1的解决办法,及IP转换整形(ip2long)
- php报错信息及解决方案
- poj3624 Charm Bracelet 01背包
- getSourse() 与getActionCommand 区别
- 为RecyclerView量身打造一款流式布局
- 4274: 约素
- COO与CIO
- Java专项
- 简单的实现EditText点击实现日期选择弹框
- 逆序数 poj2299 Ultra-QuickSort
- Android中的单例模式详解
- Android 截屏以及截屏合成图片