Class AbstractValueSetAttribute
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
- All Implemented Interfaces:
TagBase
,Serializable
,Cloneable
- Direct Known Subclasses:
AutoComplete
,ClassAttribute
,Headers
,Rel
- Since:
- 2.1.15
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAllToAttributeValueSet
(String... attrValues) boolean
Checks if the value is a part of this attribute value.boolean
containsAll
(Collection<String> values) Checks if the values are part of this attribute value.protected void
replaceAllInAttributeValueSet
(boolean updateClient, String... attrValues) Removes all values from the attributeValueSet and adds the given attribute values.protected void
replaceAllInAttributeValueSet
(String... attrValues) Removes all values from the attributeValueSet and adds the given attribute values.protected void
setAttributeValue
(boolean updateClient, String value) sets the value for this attributeprotected void
setAttributeValue
(String value) sets the value for this attributeMethods 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
-
Constructor Details
-
AbstractValueSetAttribute
public AbstractValueSetAttribute()
-
-
Method Details
-
setAttributeValue
sets the value for this attribute- Overrides:
setAttributeValue
in classAbstractAttribute
- 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.value
- the value for the attribute.- Since:
- 2.1.15
-
setAttributeValue
sets the value for this attribute- Overrides:
setAttributeValue
in classAbstractAttribute
- Parameters:
value
- the value for the attribute.- Since:
- 2.1.15
-
contains
Checks if the value is a part of this attribute value.- Parameters:
value
- the value to be checked- Returns:
- true if the given value is contained in the value string of this attribute.
- Since:
- 2.1.15
-
containsAll
Checks if the values are part of this attribute value.- Parameters:
values
- the values to be checked- Returns:
- true if the given values are contained in the value string of this attribute.
- Since:
- 2.1.15
-
getAttributeValue
- Overrides:
getAttributeValue
in classAbstractAttribute
- Returns:
- the attributeValue
-
addAllToAttributeValueSet
- Parameters:
attrValues
-- Since:
- 2.1.15
-
replaceAllInAttributeValueSet
Removes all values from the attributeValueSet and adds the given attribute values.- Parameters:
attrValues
-- Since:
- 3.0.1
-
replaceAllInAttributeValueSet
Removes all values from the attributeValueSet and adds the given attribute values.- Parameters:
updateClient
-attrValues
-- Since:
- 3.0.1
-