p.add(new FieldLabel(name, "组名称(*)"), new VerticalLayoutData(1, -1));
p.add(new FieldLabel(radios,"组类型(*)"), new VerticalLayoutData(1, -1));
add(panel,new MarginData(5));
addButton(new TextButton("确定", new SelectHandler() {
public void onSelect(SelectEvent event) {
if (name.getValue()==null || name.getValue().trim().equals("")
|| group.getValue() == null) {
AlertMessageBox alert=new AlertMessageBox("警告", "必填项不能为空");
alert.show();
}else{
submit();
}
}
}));
addButton(new TextButton("取消", new SelectHandler() {
public void onSelect(SelectEvent event) {
NewGroupWindow.this.hide();
}
}));
}