@Override
public void populateItem(
final Item<ICellPopulator<Attr>> item,
final String componentId,
final IModel<Attr> rowModel) {
PlainSchemaTO schema = null;
try {
schema = schemaRestClient.read(SchemaType.PLAIN, rowModel.getObject().getSchema());
} catch (Exception e) {
LOG.error("Could not read conf schema {}", rowModel.getObject().getSchema(), e);
}
AttrSchemaType type = schema == null ? null : schema.getType();
if (type == AttrSchemaType.Binary || type == AttrSchemaType.Encrypted) {
item.add(new Label(componentId, type.name()).
add(new AttributeModifier("style", "font-style:italic")));
} else {
super.populateItem(item, componentId, rowModel);
}
}
});