this.addPerson = addPerson;
}
protected void initUI() {
Msg msg = GWT.create(Msg.class);
// name
HTML title_name = new HTML(msg.name());
// contact
HTML title_contact = new HTML(msg.contact());
table.setWidget(0, 0, title_name);
table.setWidget(0, 1, txt_name);
table.setWidget(1, 0, title_contact);
table.setWidget(1, 1, txt_contact);
// detail panel
DisclosurePanel detailPanel = new DisclosurePanel(msg.detail());
Grid detailGrid = new Grid(3, 2);
// birthday
HTML title_birthday = new HTML(msg.birthday());
txt_birthday.setFormat(new DateBox.DefaultFormat(DateTimeFormat
.getFormat("yyyy/MM/dd")));
// sex
HTML title_sex = new HTML(msg.sex());
// ps
HTML title_ps = new HTML(msg.ps());
detailGrid.setWidget(0, 0, title_birthday);
detailGrid.setWidget(0, 1, txt_birthday);
detailGrid.setWidget(1, 0, title_sex);
detailGrid.setWidget(1, 1, txt_sex);