ConceptConfig conceptConfig = entity.getConceptConfig();
ModelContext slideNavigateModelContext = new ModelContext(
modelContext);
ViewContext slideNavigateViewContext = new ViewContext(viewContext);
slideNavigateViewContext.setWicketId("slideNavigatePanel");
Panel entitySlideNavigatePanel = new EntitySlideNavigatePanel(
slideNavigateModelContext, slideNavigateViewContext);
add(entitySlideNavigatePanel);
if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
entitySlideNavigatePanel.setVisible(false);
}
List<Panel> neighborList = new ArrayList<Panel>();
NeighborsConfig neighborsConfig = conceptConfig
.getNeighborsConfig();
for (IEntity neighborConfigEntity : neighborsConfig) {
NeighborConfig neighborConfig = (NeighborConfig) neighborConfigEntity;
if (neighborConfig.getType().equals("child")) {
String neighborCode = neighborConfig.getCode();
IDomainModel domainModel = app.getDomainModel();
IOrderedEntities childEntities = (IOrderedEntities) domainModel
.getModelMeta().getNeighborEntities(entity,
neighborCode);
ModelContext neighborModelContext = new ModelContext(
modelContext);
neighborModelContext.setContextEntities(entities);
neighborModelContext.setContextEntity(entity);
neighborModelContext.setEntities(childEntities);
ViewContext neighborViewContext = new ViewContext(
viewContext);
neighborViewContext.setWicketId("entityDisplayListPanel");
Panel entityDisplayListPanel = app.getViewMeta().getPanel(
"EntityDisplayListPanel", neighborModelContext,
neighborViewContext);
neighborList.add(entityDisplayListPanel);