public interface PropertyTypeRenderer
PropertyCollectionRenderer renders all the properties, but when the actual value of property shall be renderer it is dependant onPropertyType, hence using the registered PropertyTypeRenderer for the Property's PropertyType. AbstractPropertyCollectionHandlingServlet,
WebAction,
WebName| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.logging.Log |
getLogger()
Gets a Log for logging.
|
void |
handle(dk.heick.properties.PropertyCollection collection,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Will get the Property by the name from the FORM
WebName.PROPERTY_NAME. |
String |
renderPropertyTypeRestrictions(dk.heick.properties.Property<?> property,
String cssClass)
Rendering the property type restrictions.
|
String |
renderReadonly(dk.heick.properties.Property<?> property,
String cssClass)
Render the property value as readonly.
|
String |
renderWriteable(dk.heick.properties.Property<?> property,
String handleUrl,
String cssClass)
Render form/forms to handle editing of the propety type.
|
void handle(dk.heick.properties.PropertyCollection collection,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
WebName.PROPERTY_NAME. The value from WebName.PROPERTY_VALUE.
If no WebAction is set, WebAction.SET is assumed.collection - the property collectionrequest - the requestresponse - the responseException - if an error occures.String renderReadonly(dk.heick.properties.Property<?> property, String cssClass)
property - the propertycssClass - use to color the cell, so alternate coloring is shown.String renderWriteable(dk.heick.properties.Property<?> property, String handleUrl, String cssClass)
property - the propertyhandleUrl - the URL which called by the forms to alter properties. Usually the servlet URL for the implementation of AbstractPropertyCollectionHandlingServlet.cssClass - use to color the cell, so alternate coloring is shown.AbstractPropertyCollectionHandlingServletString renderPropertyTypeRestrictions(dk.heick.properties.Property<?> property, String cssClass)
property - the propertycssClass - use to color the cell, so alternate coloring is shown.WebUtils.renderPropertyTypeRestrictions(Property)org.apache.commons.logging.Log getLogger()
Log