java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
com.aoapps.encoding.taglib.EncodingNullTag
com.aoapps.taglib.ElementNullTag
- All Implemented Interfaces:
ClassAttribute,DataAttribute,DirAttribute,GlobalAttributes,GlobalBufferedAttributes,IdAttribute,StyleAttribute,DynamicAttributes,JspTag,SimpleTag
public abstract class ElementNullTag
extends EncodingNullTag
implements GlobalBufferedAttributes, DynamicAttributes
Implements global attributes on
EncodingNullTag.- Author:
- AO Industries, Inc.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the data with the provided HTML attribute name and value, replacing any attribute that already exists.protected booleanAdds a dynamic attribute.getClazz()Getter required.getData()Gets the HTML data attributes or an empty map when there are none.getDir()getId()getStyle()voidvoidReplaces all the data with the provided HTML attribute names and values.voidvoidsetDynamicAttribute(String uri, String localName, Object value) Deprecated.voidvoidMethods inherited from class com.aoapps.encoding.taglib.EncodingNullTag
doTag, doTag, getOutputType, invoke, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffixMethods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Field Details
-
global
-
-
Constructor Details
-
ElementNullTag
public ElementNullTag()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceGlobalAttributes
-
setId
- Specified by:
setIdin interfaceIdAttribute
-
getClazz
Description copied from interface:GlobalAttributesGetter required. Because without it, we get the exception:Unable to find setter method for attribute: class
- Specified by:
getClazzin interfaceGlobalAttributes
-
setClazz
- Specified by:
setClazzin interfaceClassAttribute
-
getData
Description copied from interface:GlobalAttributesGets the HTML data attributes or an empty map when there are none.- Specified by:
getDatain interfaceGlobalAttributes
-
setData
Description copied from interface:GlobalBufferedAttributesReplaces all the data with the provided HTML attribute names and values. Entries will anullvalue are not added.- Specified by:
setDatain interfaceGlobalBufferedAttributes- See Also:
-
addData
Description copied from interface:DataAttributeAdds the data with the provided HTML attribute name and value, replacing any attribute that already exists. When value isnull, will remove an existing attribute.- Specified by:
addDatain interfaceDataAttribute- See Also:
-
getDir
- Specified by:
getDirin interfaceGlobalAttributes
-
setDir
- Specified by:
setDirin interfaceDirAttribute
-
getStyle
- Specified by:
getStylein interfaceGlobalAttributes
-
setStyle
- Specified by:
setStylein interfaceStyleAttribute
-
addDynamicAttribute
protected boolean addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns) throws JspTagException Adds a dynamic attribute.- Returns:
truewhen added, orfalsewhen attribute not expected and has not been added.- Throws:
JspTagException- See Also:
-
setDynamicAttribute
@Deprecated public void setDynamicAttribute(String uri, String localName, Object value) throws JspException Deprecated.You should probably be implementing inaddDynamicAttribute(java.lang.String, java.lang.String, java.lang.Object, java.util.List)Sets a dynamic attribute.- Specified by:
setDynamicAttributein interfaceDynamicAttributes- Throws:
JspException- See Also:
-

addDynamicAttribute(java.lang.String, java.lang.String, java.lang.Object, java.util.List)