@Override
protected FormAdapter<PeriodicSizeRotatingFileHandler> makeEditEntityDetailsForm() {
final Form<PeriodicSizeRotatingFileHandler> form = new Form<PeriodicSizeRotatingFileHandler>(type);
form.setNumColumns(2);
final FormMetaData attributes = getFormMetaData();
// add base items to form
final FormItem[][] items = new FormItem[attributes.getBaseAttributes().size()][];
int i = 0;
for (PropertyBinding attribute : attributes.getBaseAttributes()) {
if ("suffix".equals(attribute.getDetypedName())) {
items[i++] = new FormItem[] {suffixEdit};
continue;
}
items[i++] = attribute.getFormItemForEdit(this);
}
form.setFields(items);
// add grouped items to form
for (String subgroup : attributes.getGroupNames()) {
FormItem[][] groupItems = new FormItem[attributes.getGroupedAttribtes(subgroup).size()][];
int j = 0;
for (PropertyBinding attribute : attributes.getGroupedAttribtes(subgroup)) {
groupItems[j++] = attribute.getFormItemForEdit(this);
}
form.setFieldsInGroup(subgroup, groupItems);
}