Eliminated web-client-config-edit-properties.xml

Fixed AWC-474 and AWC-475

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2312 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2006-02-07 15:09:27 +00:00
parent ce283a2f01
commit 9a50b7d471
11 changed files with 178 additions and 111 deletions

View File

@@ -39,6 +39,7 @@ public class PropertySheetElementReader implements ConfigElementReader
public static final String ATTR_DISPLAY_LABEL_ID = "displayLabelId";
public static final String ATTR_READ_ONLY = "readOnly";
public static final String ATTR_CONVERTER = "converter";
public static final String ATTR_SHOW_IN_EDIT_MODE = "showInEditMode";
/**
* @see org.alfresco.config.xml.elementreader.ConfigElementReader#parse(org.dom4j.Element)
@@ -69,19 +70,20 @@ public class PropertySheetElementReader implements ConfigElementReader
String labelId = item.attributeValue(ATTR_DISPLAY_LABEL_ID);
String readOnly = item.attributeValue(ATTR_READ_ONLY);
String converter = item.attributeValue(ATTR_CONVERTER);
String inEdit = item.attributeValue(ATTR_SHOW_IN_EDIT_MODE);
if (ELEMENT_SHOW_PROPERTY.equals(item.getName()))
{
// add the property to show to the custom config element
configElement.addProperty(propName, label, labelId, readOnly, converter);
configElement.addProperty(propName, label, labelId, readOnly, converter, inEdit);
}
else if (ELEMENT_SHOW_ASSOC.equals(item.getName()))
{
configElement.addAssociation(propName, label, labelId, readOnly, converter);
configElement.addAssociation(propName, label, labelId, readOnly, converter, inEdit);
}
else if (ELEMENT_SHOW_CHILD_ASSOC.equals(item.getName()))
{
configElement.addChildAssociation(propName, label, labelId, readOnly, converter);
configElement.addChildAssociation(propName, label, labelId, readOnly, converter, inEdit);
}
}
}