public class Point2DRenderer extends Object implements PropertyTypeRenderer
Constructor and Description |
---|
Point2DRenderer() |
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.
|
public void handle(dk.heick.properties.PropertyCollection collection, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
PropertyTypeRenderer
WebName.PROPERTY_NAME
. The value from WebName.PROPERTY_VALUE
.
If no WebAction is set, WebAction.SET
is assumed.handle
in interface PropertyTypeRenderer
collection
- the property collectionrequest
- the requestresponse
- the responseException
- if an error occures.public String renderReadonly(dk.heick.properties.Property<?> property, String cssClass)
PropertyTypeRenderer
renderReadonly
in interface PropertyTypeRenderer
property
- the propertycssClass
- use to color the cell, so alternate coloring is shown.public String renderWriteable(dk.heick.properties.Property<?> property, String handleUrl, String cssClass)
PropertyTypeRenderer
renderWriteable
in interface PropertyTypeRenderer
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.AbstractPropertyCollectionHandlingServlet
public String renderPropertyTypeRestrictions(dk.heick.properties.Property<?> property, String cssClass)
PropertyTypeRenderer
renderPropertyTypeRestrictions
in interface PropertyTypeRenderer
property
- the propertycssClass
- use to color the cell, so alternate coloring is shown.WebUtils.renderPropertyTypeRestrictions(Property)
public org.apache.commons.logging.Log getLogger()
PropertyTypeRenderer
getLogger
in interface PropertyTypeRenderer
Log