public class PasswordRenderer extends Object implements PropertyTypeRenderer
Constructor and Description |
---|
PasswordRenderer(Integer size)
Constructor, where
renderDecryptedPassword is set to false . |
PasswordRenderer(Integer size,
boolean renderDecryptedPassword)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
doRenderDecryptedPassword()
Render decrypted password.
|
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 password.
|
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 PasswordRenderer(Integer size)
renderDecryptedPassword
is set to false
.size
- the size of the TEXT INPUT which is This attribute controls the amount of display space allocated to the text field.public PasswordRenderer(Integer size, boolean renderDecryptedPassword)
size
- the size of the TEXT INPUT which is This attribute controls the amount of display space allocated to the text field.renderDecryptedPassword
- if the password is decryptable, should the password be renderer decrypted.public Integer getSize()
public boolean doRenderDecryptedPassword()
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