Parse basic attributes and advanced attributes of Password, and present Password as described in XML files.
Function | Function description | Default value | Sample in XML |
---|---|---|---|
background | Set background color for Password | OS | <Password background="240,0,0"/> |
foreground | Set foreground color for Password | OS | <Password foreground="240,0,0"/> |
font | Set font for Password | OS | <Password font = " Arial, 10, BOLD|ITALIC"/> |
bounds | Set margin bounds(X, Y, Width, Height) for Password | OS | <Password bounds="15, 15, 466, 18"/> |
text | Set text for Password, but can’t set HTML special character directly(e.g. if you want to set ‘&’, you must set it to & ) | "" | <Password text="Test Password"/> |
enabled | If it's true, the Password is enabled; If it's false, it is disabled. | TRUE | <Password enabled="TRUE"/> |
editable | If it's true, the Password is editable; If it's false, it is non-editable. | TRUE | <Password editable="TRUE"/> |
visible | If it's true, the Password is visible; If it's false, it is invisible. | TRUE | <Password visible="TRUE"/> |
alignment | Set alignment mode, it has three values: LEFT, CENTER, and RIGHT. | LEFT | <Password alignment="CENTER"/> |
echoChar | Set Echo char for text in password textbox. but can’t set HTML special character for echoChar directly (e.g. & if you want to set ‘&’, you must set for & ) | * | <Password echochar="*"/> |
maxLength | Set maximum length of Password Text | INFINITE | <Password maxLength="10"/> |
minLength | Set minimum length of Password text | No default | <Password minLength="10"/> |
autoTab | If it is true, when text exceeds maximum length, focus will automatically jump off the Password box ; if it is false, when text exceeds maximum length, focus will not automatically jump off the Password box. | FALSE | <Password autoTab="TRUE"/> |
autoClear | When the focus is on the Password, press tab key, if it is true, text in the Password box will be automatically selected; if it is false, text in the Password box will not be selected. | FALSE | <Password autoClear="TRUE"/> |
required | If it is true, the Password box must be filled in, if it's not filled in, its background will show yellow, and you can’t submit the page. | FALSE | <Password required="TRUE"/> |
tabIndex | Define tab focus sequences. | INFINITE | <Password tabIndex="1"/> |
dataName | Get data from data layer according to the dataName. | NULL | <Password dataName="dataname"/> |
helpID | helpId is defined in myHelpContexts.xml, press shortcut key when the focus is on the Password, it will pop up help message about the Password according to the myHelpContexts.xml | NULL | <Password helpId="textId"/> |