private void appendRadioSpread(final Listitem listItem){
final AdvanceAssignment advanceAssignment = (AdvanceAssignment) listItem
.getValue();
final Radio reportGlobalAdvance = Util.bind(new Radio(),
new Util.Getter<Boolean>() {
@Override
public Boolean get() {
return advanceAssignment.getReportGlobalAdvance();
}
}, new Util.Setter<Boolean>() {
@Override
public void set(Boolean value) {
advanceAssignment.setReportGlobalAdvance(value);
setReportGlobalAdvance(listItem);
}
});
Listcell listCell = new Listcell();
listCell.appendChild(reportGlobalAdvance);
listItem.appendChild(listCell);
if (((AdvanceAssignment) listItem.getValue()).getReportGlobalAdvance()) {
reportGlobalAdvance.getRadiogroup().setSelectedItem(
reportGlobalAdvance);
reportGlobalAdvance.getRadiogroup().invalidate();
}
}