public abstract class AbstractDropdownRenderer extends Object implements PropertyTypeRenderer
Constructor and Description |
---|
AbstractDropdownRenderer() |
Modifier and Type | Method and Description |
---|---|
String |
capitalizeString(String string) |
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)
This only handle a SET action of a Property.
|
String |
renderDropDown(dk.heick.properties.Property<?> property,
Enum<?>[] values,
String handleUrl,
String currentValue,
String cssClass) |
String |
renderDropDown(dk.heick.properties.Property<?> property,
String[] values,
String handleUrl,
String currentValue,
String cssClass) |
String |
renderDropDown(dk.heick.properties.Property<?> property,
String[] values,
String handleUrl,
String currentValue,
String cssClass,
Capitalization capitalization) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderWriteable
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 renderDropDown(dk.heick.properties.Property<?> property, Enum<?>[] values, String handleUrl, String currentValue, String cssClass)
public String renderDropDown(dk.heick.properties.Property<?> property, String[] values, String handleUrl, String currentValue, String cssClass)
public String renderDropDown(dk.heick.properties.Property<?> property, String[] values, String handleUrl, String currentValue, String cssClass, Capitalization capitalization)
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