public class HourIntervalsRenderer extends Object implements PropertyTypeRenderer
Constructor and Description |
---|
HourIntervalsRenderer(Integer size) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.logging.Log |
getLogger()
Gets a Log for logging.
|
Integer |
getSize() |
void |
handle(dk.heick.properties.PropertyCollection collection,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This handles many actions on the HourIntervalsRenderer, which is a list of HourPeriod's.
|
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 HourIntervalsRenderer(Integer size)
public Integer getSize()
public void handle(dk.heick.properties.PropertyCollection collection, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
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