@Override
public void render(Row row, Object data) {
final SynchronizationInfo synchronizationInfo = (SynchronizationInfo) data;
row.setValue(data);
Groupbox groupbox = new Groupbox();
groupbox.setClosable(true);
Caption caption = new org.zkoss.zul.Caption();
caption.setLabel(synchronizationInfo.getAction());
groupbox.appendChild(caption);
row.appendChild(groupbox);
if (synchronizationInfo.isSuccessful()) {
groupbox.appendChild(new Label(_("Completed")));
} else {
Listbox listbox = new Listbox();
listbox.setModel(new SimpleListModel(synchronizationInfo
.getFailedReasons()));
groupbox.appendChild(listbox);
}
}
};
}