public class RangeRenderer extends Object implements PropertyTypeRenderer
Constructor and Description |
---|
RangeRenderer(Integer size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.logging.Log |
getLogger()
Gets a Log for logging.
|
Integer |
getSize()
Size of HTML Input text box.
|
void |
handle(dk.heick.properties.PropertyCollection collection,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This only handle a SET action of a new range.
|
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 RangeRenderer(Integer size)
size
- the size of the TEXT INPUT which is This attribute controls the amount of display space allocated to the text field.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