Class AutoComplete
java.lang.Object
com.webfirmframework.wffweb.tag.core.AbstractTagBase
com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
com.webfirmframework.wffweb.tag.html.attribute.core.AbstractValueSetAttribute
com.webfirmframework.wffweb.tag.html.html5.attribute.AutoComplete
- All Implemented Interfaces:
TagBase
,InputAttributable
,Serializable
,Cloneable
autocomplete
attribute for the element.
This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are: off: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry. on: The browser is allowed to automatically complete the value based on values that the user has entered during previous uses, however on does not provide any further information about what kind of data the user might be expected to enter. name: Full name honorific-prefix: Prefix or title (e.g. "Mr.", "Ms.", "Dr.", "Mlle") given-name (first name) additional-name family-name honorific-suffix: Suffix (e.g. "Jr.", "B.Sc.", "MBASW", "II") nickname email username new-password: A new password (e.g. when creating an account or changing a password) current-password organization-title: Job title (e.g. "Software Engineer", "Senior Vice President", "Deputy Managing Director") organization street-address address-line1, address-line2, address-line3, address-level4, address-level3, address-level2, address-level1 country country-name postal-code cc-name: Full name as given on the payment instrument cc-given-name cc-additional-name cc-family-name cc-number: Code identifying the payment instrument (e.g. the credit card number) cc-exp: Expiration date of the payment instrument cc-exp-month cc-exp-year cc-csc: Security code for the payment instrument cc-type: Type of payment instrument (e.g. Visa) transaction-currency transaction-amount language: Preferred language; Valid BCP 47 language tag bday bday-day bday-month bday-year sex: Gender identity (e.g. Female, Fa'afafine); Free-form text, no newlines tel url: Home page or other Web page corresponding to the company, person, address, or contact information in the other fields associated with this field photo: Photograph, icon, or other image corresponding to the company, person, address, or contact information in the other fields associated with this fieldIf the autocomplete attribute is not specified on an input element, then the browser uses the autocomplete attribute value of the
<input>
element's
form owner. The form owner is either the form element that this
<input>
element is a descendant of, or the form element whose id is
specified by the form attribute of the input element. For more information,
see the autocomplete attribute in <form>
.
The autocomplete attribute also controls whether Firefox will, unlike other
browsers, persist the dynamic disabled state and (if applicable) dynamic
checkedness of an <input>
across page loads. The persistence feature
is enabled by default. Setting the value of the autocomplete attribute to off
disables this feature; this works even when the autocomplete attribute would
normally not apply to the <input>
by virtue of its type. See bug
654072.
For most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+)
setting the autocomplete attribute will not prevent a browser's password
manager from asking the user if they want to store login (username and
password) fields and, if they agree, from autofilling the login the next time
the user visits the page. See The autocomplete attribute and login fields.- Since:
- 1.0.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Middle namestatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
birthdaystatic final String
static final String
static final String
static final String
static final String
Security code for the payment instrument.static final String
Expiration date of the payment instrument.static final String
static final String
static final String
static final String
static final String
Full name as given on the payment instrument.static final String
Code identifying the payment instrument (e.g.static final String
Type of payment instrument (e.g.static final String
static final String
static final String
static final String
static final String
Last namestatic final String
the field describes a fax machine's contact detailsstatic final String
First namestatic final String
the field is for contacting someone at their residencestatic final String
Prefix or title (e.g.static final String
Suffix (e.g.static final String
URL representing an instant messaging protocol endpoint (for example, "aim:goim?screenname=example" or "xmpp:fred@example.net")static final String
Preferred language; a valid BCP 47 language tag.static final String
the field is for contacting someone regardless of locationstatic final String
Eg:- Full namestatic final String
A new password (e.g.static final String
static final String
static final String
static final String
static final String
Job title (e.g.static final String
the field describes a pager's or beeper's contact detailsstatic final String
Photograph, icon, or other image corresponding to the company, person, address, or contact information in the other fields associated with this field.static final String
static final String
Gender identity (e.g.static final String
static final String
full telephone number, including country codestatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Home page or other Web page corresponding to the company, person, address, or contact information in the other fields associated with this field.static final String
static final String
the field is for contacting someone at their workplace -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds the value to the lastvoid
addValues
(Collection<String> values) adds the values to the lastgetValue()
gets the value of this attributeprotected void
init()
invokes only once per objectvoid
removeValue
(String value) removes the valuevoid
removeValues
(Collection<String> values) removes the valuesvoid
sets the value for this attributevoid
sets the value for this attributeMethods inherited from class com.webfirmframework.wffweb.tag.html.attribute.core.AbstractValueSetAttribute
addAllToAttributeValueSet, contains, containsAll, getAttributeValue, replaceAllInAttributeValueSet, replaceAllInAttributeValueSet, setAttributeValue, setAttributeValue
Methods inherited from class com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
addAllToAttributeValueMap, addAllToAttributeValueSet, addAllToAttributeValueSet, addToAttributeValueMap, addToAttributeValueSet, addValueChangeListener, beforePrintStructure, beforePrintStructureCompressedByIndex, beforeWffPrintStructure, getAttributeName, getAttributeValueMap, getAttributeValueSet, getBinaryStructureCompressedByIndex, getBinaryStructureCompressedByIndex, getCharset, getOwnerTag, getOwnerTags, getPrintStructure, getPrintStructure, getReadLocks, getValueChangeListeners, getWffPrintStructure, getWriteLocks, lockAndGetReadLocks, lockAndGetReadLocksWithAttrLock, lockAndGetWriteLocks, lockAndGetWriteLocksWithAttrLock, removeAllFromAttributeValueMap, removeAllFromAttributeValueSet, removeAllFromAttributeValueSet, removeFromAttributeValueMap, removeFromAttributeValueMap, removeFromAttributeValueMapByKeys, removeFromAttributeValueSet, removeValueChangeListener, replaceAllInAttributeValueSet, replaceAllInAttributeValueSet, setAttributeName, setAttributeValueMap, setAttributeValueSet, setCharset, setModified, setModifiedLockless, setOwnerTag, setPreIndexedAttribute, toCompressedBytesByIndex, toCompressedBytesByIndex, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString, toWffString, unsetOwnerTag
Methods inherited from class com.webfirmframework.wffweb.tag.core.AbstractTagBase
equals, getData, hashCode, isModified, isRebuild, setData, setRebuild
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.webfirmframework.wffweb.tag.core.TagBase
toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString
-
Field Details
-
ON
- See Also:
-
OFF
- See Also:
-
NAME
Eg:- Full name- See Also:
-
HONORIFIC_PREFIX
Prefix or title (e.g. "Mr.", "Ms.", "Dr.", "Mlle").- See Also:
-
GIVEN_NAME
First name- See Also:
-
ADDITIONAL_NAME
Middle name- See Also:
-
FAMILY_NAME
Last name- See Also:
-
HONORIFIC_SUFFIX
Suffix (e.g. "Jr.", "B.Sc.", "MBASW", "II").- See Also:
-
NICKNAME
- See Also:
-
EMAIL
- See Also:
-
USERNAME
- See Also:
-
NEW_PASSWORD
A new password (e.g. when creating an account or changing a password).- See Also:
-
CURRENT_PASSWORD
- See Also:
-
ORGANIZATION_TITLE
Job title (e.g. "Software Engineer", "Senior Vice President", "Deputy Managing Director").- See Also:
-
ORGANIZATION
- See Also:
-
STREET_ADDRESS
- See Also:
-
ADDRESS_LINE1
- See Also:
-
ADDRESS_LINE2
- See Also:
-
ADDRESS_LINE3
- See Also:
-
ADDRESS_LEVEL4
- See Also:
-
ADDRESS_LEVEL3
- See Also:
-
ADDRESS_LEVEL2
- See Also:
-
ADDRESS_LEVEL1
- See Also:
-
COUNTRY
- See Also:
-
COUNTRY_NAME
- See Also:
-
POSTAL_CODE
- See Also:
-
CC_NAME
Full name as given on the payment instrument.- See Also:
-
CC_GIVEN_NAME
- See Also:
-
CC_ADDITIONAL_NAME
- See Also:
-
CC_FAMILY_NAME
- See Also:
-
CC_NUMBER
Code identifying the payment instrument (e.g. the credit card number).- See Also:
-
CC_EXP
Expiration date of the payment instrument.- See Also:
-
CC_EXP_MONTH
- See Also:
-
CC_EXP_YEAR
- See Also:
-
CC_CSC
Security code for the payment instrument.- See Also:
-
CC_TYPE
Type of payment instrument (e.g. Visa).- See Also:
-
TRANSACTION_CURRENCY
- See Also:
-
TRANSACTION_AMOUNT
- See Also:
-
LANGUAGE
Preferred language; a valid BCP 47 language tag.- See Also:
-
BDAY
birthday- See Also:
-
BDAY_DAY
- See Also:
-
BDAY_MONTH
- See Also:
-
BDAY_YEAR
- See Also:
-
SEX
Gender identity (e.g. Female, Fa'afafine), free-form text, no newlines.- See Also:
-
TEL
full telephone number, including country code- See Also:
-
TEL_COUNTRY_CODE
- See Also:
-
TEL_NATIONAL
- See Also:
-
TEL_AREA_CODE
- See Also:
-
TEL_LOCAL
- See Also:
-
TEL_LOCAL_PREFIX
- See Also:
-
TEL_LOCAL_SUFFIX
- See Also:
-
TEL_EXTENSION
- See Also:
-
URL
Home page or other Web page corresponding to the company, person, address, or contact information in the other fields associated with this field.- See Also:
-
PHOTO
Photograph, icon, or other image corresponding to the company, person, address, or contact information in the other fields associated with this field.- See Also:
-
IMPP
URL representing an instant messaging protocol endpoint (for example, "aim:goim?screenname=example" or "xmpp:fred@example.net")- See Also:
-
HOME
the field is for contacting someone at their residence- See Also:
-
WORK
the field is for contacting someone at their workplace- See Also:
-
MOBILE
the field is for contacting someone regardless of location- See Also:
-
FAX
the field describes a fax machine's contact details- See Also:
-
PAGER
the field describes a pager's or beeper's contact details- See Also:
-
-
Constructor Details
-
AutoComplete
public AutoComplete()- Since:
- 2.1.15
-
AutoComplete
- Parameters:
value
- the value for the attribute. The value string can contain values separated by space.- Since:
- 1.0.0
-
AutoComplete
- Parameters:
values
- the value for the attribute. The value string can contain values separated by space.- Since:
- 2.1.15
-
-
Method Details
-
removeValue
removes the value- Parameters:
value
-- Since:
- 2.1.15
-
removeValues
removes the values- Parameters:
values
-- Since:
- 2.1.15
-
addValues
adds the values to the last- Parameters:
values
-- Since:
- 2.1.15
-
addValue
adds the value to the last- Parameters:
value
-- Since:
- 2.1.15
-
setValue
sets the value for this attribute- Parameters:
value
- the value for the attribute.- Since:
- 1.0.0
-
setValue
sets the value for this attribute- Parameters:
updateClient
- true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.attributeValue
- the value for the attribute.- Since:
- 2.1.15
-
getValue
gets the value of this attribute- Returns:
- the value of the attribute
- Since:
- 1.0.0
-
getValueSet
- Returns:
- a new copy of set of values
- Since:
- 2.1.15
-
init
protected void init()invokes only once per object- Since:
- 1.0.0
-