protected void populateItem(final ListItem<Enum<?>> item) {
final Enum<?> subcategory = item.getModelObject();
final Check<AuditLoggerName> successCheck = new Check<AuditLoggerName>("successCheck",
new Model<AuditLoggerName>(
new AuditLoggerName(category, subcategory, Result.success)), successGroup);
item.add(successCheck);
}
};
successGroup.add(successView);
ListView<Enum<?>> failureView =
new ListView<Enum<?>>("failureView", new ArrayList(category.getSubCategoryElements())) {
private static final long serialVersionUID = 4949588177564901031L;
@Override
protected void populateItem(final ListItem<Enum<?>> item) {
final Enum<?> subcategory = item.getModelObject();
final Check<AuditLoggerName> failureCheck = new Check<AuditLoggerName>("failureCheck",
new Model<AuditLoggerName>(
new AuditLoggerName(category, subcategory, Result.failure)), failureGroup);
item.add(failureCheck);
}
};
failureGroup.add(failureView);
}