"java.net.URL")
|| parentConceptPropertyConfig
.getPropertyClass()
.equals(
"org.dmlite.type.email.Email")) {
parentPropertyValuePanel = new ExternalLinkPanel(
parentModelContext,
parentViewContext);
} else {
parentPropertyValuePanel = new LabelPanel(
parentModelContext,
parentViewContext);
}
if (!app.isNeighborDisplayAllowed(
getAppSession(), neighborConfig)) {
parentPropertyNameLabel.setVisible(false);
parentPropertyValuePanel.setVisible(false);
} else if (!app.isPropertyDisplayAllowed(
getAppSession(),
parentConceptPropertyConfig)) {
parentPropertyNameLabel.setVisible(false);
parentPropertyValuePanel.setVisible(false);
}
propertyNameLabelValuePanelPair
.setPropertyValuePanel(parentPropertyValuePanel);
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 = conceptConfig.getCode() + "."
+ propertyConfig.getCode();
String propertyName = getLocalizer().getString(propertyKey,
this);
Label propertyNameLabel = new Label("propertyName",
propertyName);
PropertyNameLabelValuePanelPair propertyNameLabelValuePanelPair = new PropertyNameLabelValuePanelPair();
propertyNameLabelValuePanelPair
.setPropertyNameLabel(propertyNameLabel);
entityContext.setPropertyConfig(propertyConfig);
ViewContext propertiesViewContext = new ViewContext(
viewContext);
propertiesViewContext.setWicketId("valuePanel");
Panel propertyValuePanel;
if (propertyConfig.getPropertyClass()
.equals("java.net.URL")
|| propertyConfig.getPropertyClass().equals(
"org.dmlite.type.email.Email")) {
propertyValuePanel = new ExternalLinkPanel(entityContext,
propertiesViewContext);
} else if (propertyConfig.getPropertyClass().equals(
"java.lang.String")
&& propertyConfig.isValidateType()
&& (propertyConfig.getValidationType().equals(
"java.net.URL") || propertyConfig
.getValidationType().equals(
"org.dmlite.type.email.Email"))) {
propertyValuePanel = new ExternalLinkPanel(entityContext,
propertiesViewContext);
} else if (propertyConfig.getPropertyClass().equals(
"java.lang.Boolean")) {
propertyValuePanel = new CheckBoxPanel(entityContext,