Zimlet JavaScript API Reference - DwtPasswordField

Class DwtPasswordField


Extends DwtInputField.



Defined in: DwtPasswordField.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a password field.
Method Summary
Method Attributes Method Name and Description
 
Overrides DwtInputField getValue to not do the leading/trailing spaces trimming.
 
Shows the password.
Methods borrowed from class DwtInputField:
applySubstitution, getInputElement, getRequired, getValidationError, isValid, setHint, setInputType, setLabel, setNumberPrecision, setReadOnly, setRequired, setValidationCallback, setValidatorFunction, setValidatorRegExp, setValidNumberRange, setValidStringLengths, setValue, setVisible, validate
Methods borrowed from class DwtComposite:
addChild, cleanupSeparators, clear, dispose, getChild, getChildren, getNumChildren, getTabGroupMember, removeChild, removeChildren
Methods borrowed from class DwtControl:
addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTooltipBase, getToolTipContent, getVisibility, getVisible, getW, getX, getXW, getY, getYH, getZIndex, hasFocus, isAlertShown, isDisposed, isInitialized, isListenerRegistered, notifyListeners, preventContextMenu, preventSelection, removeAllListeners, removeControlListener, removeDisposeListener, removeListener, reparent, reparentHtmlElement, replaceElement, setBounds, setClassName, setContent, setCursor, setData, setDisplay, setDisplayState, setDragBox, setDragSource, setDropTarget, setEnabled, setEventPropagation, setFocusElement, setHandler, setHtmlElementId, setLocation, setOpacity, setPosition, setScrollStyle, setSize, setToolTipContent, setVisibility, setZIndex, showAlert, zShow
Class Detail
DwtPasswordField(params)
Creates a password field.
Parameters:
{hash} params
a hash of parameters
{DwtComposite} params.parent
the parent widget
{string} params.initialValue
the initial value of the field
{number} params.size
size of the input field (in characters)
{number} params.rows
the number of rows (more than 1 means textarea)
{boolean} params.forceMultiRow
if true, forces use of textarea even if rows == 1
{number} params.maxLen
the maximum length (in characters) of the input
{constant} params.errorIconStyle
the error icon style
{constant} params.validationStyle
the validation type
{function} params.validator
the custom validation function
{Object} params.validatorCtxtObj
the object context for validation function
{string} params.className
the CSS class
{constant} params.posStyle
the positioning style (see DwtControl)
{boolean} params.required
if true, mark as required.
{string} params.hint
a hint to display in the input field when the value is empty.
{string} params.id
an explicit ID to use for the control's DIV element
{string} params.inputId
an explicit ID to use for the control's INPUT element
Method Detail
{string} getValue()
Overrides DwtInputField getValue to not do the leading/trailing spaces trimming.
Returns:
{string} the value

setShowPassword(show)
Shows the password.
Parameters:
{boolean} show
if true, show the password

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:29 GMT-0400 (EDT)