SmartGWT 中 addMembers(...) 和 setMembers(...) 有什么区别
使用 SmartGWT 的 addMembers
与 setMembers
方法向表单布局添加组件有什么区别?
mainLayout.addMember(northLayout);
mainLayout.addMember(southLayout);
或
mainLayout.addMembers(northLayout, southLayout);
vs
mainLayout.setMembers(northLayout,southLayout);
谢谢!!
What is the difference between using SmartGWT's addMembers
vs. setMembers
methods for adding components to a form layout?
mainLayout.addMember(northLayout);
mainLayout.addMember(southLayout);
or
mainLayout.addMembers(northLayout, southLayout);
vs.
mainLayout.setMembers(northLayout,southLayout);
Thank you!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下源代码:http://www.google.com/codesearch/p?hl=en #IbhKj4VngGk/trunk/main/src/com/smartgwt/client/widgets/layout/Layout.java&q=setmembers%20package:http://smartgwt%5C.googlecode%5C.com&l=1039最后,
setMembers
为每个成员调用addMember
,并删除现有的成员Take a look at the source code: http://www.google.com/codesearch/p?hl=en#IbhKj4VngGk/trunk/main/src/com/smartgwt/client/widgets/layout/Layout.java&q=setmembers%20package:http://smartgwt%5C.googlecode%5C.com&l=1039 in the end,
setMembers
calladdMember
for each one, plus removing existing