"slide")) {
// Do not absorb the context parent properties when
// the parent is displayed as a slide.
continue;
}
PropertiesConfig parentConceptPropertiesConfig = parentConceptConfig
.getPropertiesConfig();
for (IEntity parentPropertyConfigEntity : parentConceptPropertiesConfig) {
PropertyConfig parentConceptPropertyConfig = (PropertyConfig) parentPropertyConfigEntity;
if (parentConceptPropertyConfig.isEssential()) {
IEntity parentEntity = entity
.getNeighborEntity(neighborConfig
.getCode());
if (parentEntity != null) {
String parentCode = parentEntity
.getConceptConfig().getCode();
String parentPropertyKey = parentCode
+ "."
+ parentConceptPropertyConfig
.getCode();
String parentPropertyName = getLocalizer()
.getString(parentPropertyKey, this);
Label parentPropertyNameLabel = new Label(
"propertyName", parentPropertyName);
PropertyNameLabelValuePanelPair propertyNameLabelValuePanelPair = new PropertyNameLabelValuePanelPair();
propertyNameLabelValuePanelPair
.setPropertyNameLabel(parentPropertyNameLabel);
ModelContext parentModelContext = new ModelContext(
modelContext);
parentModelContext.setEntity(parentEntity);
parentModelContext
.setPropertyConfig(parentConceptPropertyConfig);
ViewContext parentViewContext = new ViewContext(
viewContext);
parentViewContext.setWicketId("valuePanel");
Panel parentPropertyPanel;
if (parentConceptPropertyConfig
.getPropertyClass().equals(
"java.net.URL")
|| parentConceptPropertyConfig
.getPropertyClass()
.equals(
"org.dmlite.type.email.Email")) {
parentPropertyPanel = new ExternalLinkPanel(
parentModelContext,
parentViewContext);
} else {
parentPropertyPanel = new LabelPanel(
parentModelContext,
parentViewContext);
} // if
if (!app.isNeighborDisplayAllowed(
getAppSession(), neighborConfig)) {
parentPropertyPanel.setVisible(false);
} else if (!app.isPropertyDisplayAllowed(
getAppSession(),
parentConceptPropertyConfig)) {
parentPropertyPanel.setVisible(false);
}
propertyNameLabelValuePanelPair
.setPropertyValuePanel(parentPropertyPanel);
propertyNameLabelValuePanelPairs
.add(propertyNameLabelValuePanelPair);
} // if
} // if
} // for
} // if
} // if
} // for
PropertiesConfig propertiesConfig = conceptConfig
.getPropertiesConfig();
for (IEntity propertyConfigEntity : propertiesConfig) {
PropertyConfig propertyConfig = (PropertyConfig) propertyConfigEntity;
if (!propertyConfig.isReference()) {
String propertyKey = conceptCode + "."