java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.aoapps.encoding.taglib.EncodingBufferedTag
com.aoapps.taglib.ElementBufferedTag
- All Implemented Interfaces:
ClassAttribute
,DataAttribute
,DirAttribute
,GlobalAttributes
,GlobalBufferedAttributes
,IdAttribute
,StyleAttribute
,DynamicAttributes
,JspTag
,SimpleTag
- Direct Known Subclasses:
ATag
,FormTag
,IframeTag
,ImgTag
,InputTag
,MetaTag
,OptionTag
,ScriptTag
,SelectTag
,TextareaTag
public abstract class ElementBufferedTag
extends EncodingBufferedTag
implements GlobalBufferedAttributes, DynamicAttributes
Implements global attributes on
EncodingBufferedTag
.- Author:
- AO Industries, Inc.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the data with the provided HTML attribute name and value, replacing any attribute that already exists.protected boolean
Adds a dynamic attribute.getClazz()
Getter required.getData()
Gets the HTML data attributes or an empty map when there are none.getDir()
getId()
getStyle()
void
void
Replaces all the data with the provided HTML attribute names and values.void
void
setDynamicAttribute
(String uri, String localName, Object value) Deprecated.void
void
Methods inherited from class com.aoapps.encoding.taglib.EncodingBufferedTag
doTag, doTag, getContentType, getOutputType, getTempFileThreshold, invoke, newBufferWriter, newBufferWriter, newBufferWriter, newBufferWriter, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffix
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Field Details
-
global
-
-
Constructor Details
-
ElementBufferedTag
public ElementBufferedTag()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceGlobalAttributes
-
setId
- Specified by:
setId
in interfaceIdAttribute
-
getClazz
Description copied from interface:GlobalAttributes
Getter required. Because without it, we get the exception:Unable to find setter method for attribute: class
- Specified by:
getClazz
in interfaceGlobalAttributes
-
setClazz
- Specified by:
setClazz
in interfaceClassAttribute
-
getData
Description copied from interface:GlobalAttributes
Gets the HTML data attributes or an empty map when there are none.- Specified by:
getData
in interfaceGlobalAttributes
-
setData
Description copied from interface:GlobalBufferedAttributes
Replaces all the data with the provided HTML attribute names and values. Entries will anull
value are not added.- Specified by:
setData
in interfaceGlobalBufferedAttributes
- See Also:
-
addData
Description copied from interface:DataAttribute
Adds 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:
addData
in interfaceDataAttribute
- See Also:
-
getDir
- Specified by:
getDir
in interfaceGlobalAttributes
-
setDir
- Specified by:
setDir
in interfaceDirAttribute
-
getStyle
- Specified by:
getStyle
in interfaceGlobalAttributes
-
setStyle
- Specified by:
setStyle
in interfaceStyleAttribute
-
addDynamicAttribute
protected boolean addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns) throws JspTagException Adds a dynamic attribute.- Returns:
true
when added, orfalse
when 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:
setDynamicAttribute
in interfaceDynamicAttributes
- Throws:
JspException
- See Also:
-
addDynamicAttribute(java.lang.String, java.lang.String, java.lang.Object, java.util.List)