org.apache.empire.struts2.jsp.controls
Class PasswordInputControl
java.lang.Object
org.apache.empire.struts2.jsp.controls.InputControl
org.apache.empire.struts2.jsp.controls.PasswordInputControl
public class PasswordInputControl
- extends InputControl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PASSWORD_NOT_CHANGED
public static final String PASSWORD_NOT_CHANGED
- See Also:
- Constant Field Values
PasswordInputControl
public PasswordInputControl()
parseValue
protected Object parseValue(String value,
Locale locale,
Column column)
- Description copied from class:
InputControl
- this function may be overridden to parse and convert the input value
to the data type of the supplied column
- Overrides:
parseValue in class InputControl
- Parameters:
value - the value string from the requestlocale - the user localecolumn - the column for which the value is supplied
- Returns:
- the parsed value
validate
protected Object validate(Object value,
Locale locale,
Column column,
String s)
- Description copied from class:
InputControl
- this function may be overridden to validate a value that has
previously been parsed
- Overrides:
validate in class InputControl
- Parameters:
value - the parsed object valuecolumn - the column for which the value should be validateds - the unparsed value string. In case of an error this should be forwarded to the error function.
- Returns:
- the parsed value
formatValue
protected String formatValue(Object value,
InputControl.ValueInfo vi,
boolean hasError)
- Description copied from class:
InputControl
- Returns the value formated as a string
this is a simple default implementation that does no type-secific formatting
Derived classes may override formatString an provide further formmatting
see TextInputControl for details
- Overrides:
formatValue in class InputControl
- Parameters:
value - the value to be formattedvi - Meta-information about the value
- Returns:
- the formatted value
renderInput
public void renderInput(HtmlWriter writer,
InputControl.ControlInfo ci)
- Description copied from class:
InputControl
- this method renders a record value for input
- Specified by:
renderInput in class InputControl
- Parameters:
writer - the HtmlWriter for html write-outci - Object holding the value and meta-information about the value and the control
Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.