public class Password extends Text
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
PASSWORD
The pattern used to create the html for a password form field.
|
private static long |
serialVersionUID
The class' serialization version id.
|
PARAM
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
Password(java.lang.String name)
Constructs a new instance of
Password using the supplied
parameters. |
Password(java.lang.String name,
int size)
Constructs a new instance of
Password using the supplied
parameters. |
Password(java.lang.String name,
int size,
int maxlen)
Constructs a new instance of
Password using the supplied
parameters. |
Password(java.lang.String name,
int size,
int maxlen,
java.lang.String value)
Constructs a new instance of
Password using the supplied
parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the given object to this object and determines if the two are
equal.
|
java.lang.String |
toHTML()
Returns a formatted html string for the password's current attribute
values.
|
formatAttr, getMaxLength, getOnChange, getReadOnly, getSize, getValue, setMaxLength, setOnChange, setReadOnly, setSize, setValue, setValueHS
getDisabled, getId, getName, getOnBlur, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseOut, getOnMouseOver, getStyleCls, getStyleStr, setDisabled, setId, setName, setOnBlur, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseOut, setOnMouseOver, setStyleCls, setStyleStr
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
private static final java.lang.String PASSWORD
public Password(java.lang.String name)
Password
using the supplied
parameters. Defaults the text size to "1", the maximum length to "1" and
the text value to an empty string.name
- (String) The form field name for the password.public Password(java.lang.String name, int size)
Password
using the supplied
parameters. Defaults the maximum length to the given size and the text
value to an empty string.name
- (String) The form field name for the password.size
- (int) The number of visible characters for the password.public Password(java.lang.String name, int size, int maxlen)
Password
using the supplied
parameters. Defaults the text value to an empty string.name
- (String) The form field name for the password.size
- (int) The number of visible characters for the password.maxlen
- (int) The maximum number of characters that can be
entered into the field.public Password(java.lang.String name, int size, int maxlen, java.lang.String value)
Password
using the supplied
parameters.name
- (String) The form field name for the password.size
- (int) The number of visible characters for the password.maxlen
- (int) The maximum number of characters that can be
entered into the field.value
- (String) The value returned for entered text.public boolean equals(java.lang.Object obj)
equals
in Text
.equals
in class Text
obj
- (Object) The object to compare with this object.true
if the specified object is equal to
this object, otherwise false
.Text.equals(java.lang.Object)
public java.lang.String toHTML()
toHTML
in Text
.toHTML
in class Text
Text.toHTML()