super(viewContext.getWicketId());
try {
App app = viewContext.getApp();
IEntities entities = modelContext.getEntities();
ConceptConfig conceptConfig = entities.getConceptConfig();
// Table title
String conceptsKey = conceptConfig.getEntitiesCode();
String conceptsName = getLocalizer().getString(conceptsKey, this);
add(new Label("conceptsName", conceptsName));
// Absorbed parent essential property names
List<String> parentEssentialPropertyNames = new ArrayList<String>();
List<String> parentEssentialPropertyCodes = entities
.getConceptConfig().getParentCodeEssentialPropertyCodes();
String parentPropertyName;
for (String parentPropertyKey : parentEssentialPropertyCodes) {
parentPropertyName = getLocalizer().getString(
parentPropertyKey, this);
parentEssentialPropertyNames.add(parentPropertyName);
}
// Concept essential property names
List<String> conceptEssentialPropertyNames = new ArrayList<String>();
List<String> conceptEssentiaPropertyCodes = entities
.getConceptConfig().getConceptCodeEssentialPropertyCodes();
String conceptPropertyName;
for (String conceptPropertyKey : conceptEssentiaPropertyCodes) {
conceptPropertyName = getLocalizer().getString(
conceptPropertyKey, this);
conceptEssentialPropertyNames.add(conceptPropertyName);
}
List<String> essentialPropertyNames = parentEssentialPropertyNames;
essentialPropertyNames.addAll(conceptEssentialPropertyNames);
add(new PropertyNameLabelListView("propertyNameLabelListView",
essentialPropertyNames));
// Neighbor empty labels
List<String> childNeighborNames = conceptConfig
.getChildNeighborNames();
add(new NeighborEmptyNameLabelListView(
"neighborEmptyNameLabelListViewHead", childNeighborNames));
ModelContext entityDisplayTableListModelContext = new ModelContext(