{
final List<FieldWrapper> oldFields = getDetailFields();
final DetailFieldDefinition[] fields = new DetailFieldDefinition[detailFields.size()];
for (int i = 0; i < detailFields.size(); i++)
{
final FieldWrapper fieldWrapper = detailFields.get(i);
fields[i] = (DetailFieldDefinition) fieldWrapper.getFieldDefinition();
}
getEditorModel().getReportSpec().setDetailFieldDefinitions(fields);
this.firePropertyChange(DETAIL_FIELDS_PROPERTY_NAME, oldFields, detailFields);