SmartGWT中addMembers(...)和setMembers(...)之间有什么区别

时间:2011-03-08 11:11:55

标签: java gwt smartgwt

使用SmartGWT的addMemberssetMembers方法将组件添加到表单布局有什么区别?

mainLayout.addMember(northLayout);
mainLayout.addMember(southLayout);

mainLayout.addMembers(northLayout, southLayout);

VS

mainLayout.setMembers(northLayout,southLayout);

谢谢!