Package com.aoindustries.taglib
Class AreaTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- com.aoindustries.encoding.taglib.EncodingNullTag
-
- com.aoindustries.taglib.ElementNullTag
-
- com.aoindustries.taglib.AreaTag
-
- All Implemented Interfaces:
AltAttribute
,ClassAttribute
,DataAttribute
,DirAttribute
,GlobalAttributes
,GlobalBufferedAttributes
,HrefAttribute
,HreflangAttribute
,IdAttribute
,OnclickAttribute
,OnmouseoutAttribute
,OnmouseoverAttribute
,ParamsAttribute
,RelAttribute
,StyleAttribute
,TargetAttribute
,TitleAttribute
,TypeAttribute
,DynamicAttributes
,JspTag
,SimpleTag
public class AreaTag extends ElementNullTag implements HrefAttribute, ParamsAttribute, HreflangAttribute, RelAttribute, TypeAttribute, TargetAttribute, AltAttribute, TitleAttribute, OnclickAttribute, OnmouseoverAttribute, OnmouseoutAttribute
- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static Resources
RESOURCES
-
Fields inherited from class com.aoindustries.taglib.ElementNullTag
global
-
-
Constructor Summary
Constructors Constructor Description AreaTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns)
Adds a dynamic attribute.void
addParam(String name, Object value)
Adds a parameter.protected void
doTag(Writer out)
MediaType
getOutputType()
void
setAbsolute(boolean absolute)
void
setAddLastModified(String addLastModified)
void
setAlt(Object alt)
void
setCanonical(boolean canonical)
void
setCoords(String coords)
void
setHref(String href)
void
setHreflang(Object hreflang)
void
setOnclick(Object onclick)
void
setOnmouseout(Object onmouseout)
void
setOnmouseover(Object onmouseover)
void
setRel(String rel)
void
setShape(String shape)
void
setTarget(String target)
void
setTitle(Object title)
void
setType(String type)
-
Methods inherited from class com.aoindustries.taglib.ElementNullTag
addData, getClazz, getData, getDir, getId, getStyle, setClazz, setData, setDir, setDynamicAttribute, setId, setStyle
-
Methods inherited from class com.aoindustries.encoding.taglib.EncodingNullTag
doTag, invoke, setMediaEncoderOptions, writeEncoderPrefix, writeEncoderSuffix, writePrefix, writeSuffix
-
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aoindustries.taglib.ParamsAttribute
addParam
-
-
-
-
Field Detail
-
RESOURCES
public static final Resources RESOURCES
-
-
Method Detail
-
getOutputType
public MediaType getOutputType()
- Specified by:
getOutputType
in classEncodingNullTag
-
setShape
public void setShape(String shape)
-
setCoords
public void setCoords(String coords)
-
setHref
public void setHref(String href)
- Specified by:
setHref
in interfaceHrefAttribute
-
addParam
public void addParam(String name, Object value)
Description copied from interface:ParamsAttribute
Adds a parameter.The conversion to string may be deferred, or the value may be streamed instead of being converted to a string. It is incorrect to change the state of the provided value; doing so may or may not affect the value of the resulting parameter.
Default method is for backward compatibility only. Implementations should override this version.
- Specified by:
addParam
in interfaceParamsAttribute
-
setAbsolute
public void setAbsolute(boolean absolute)
-
setCanonical
public void setCanonical(boolean canonical)
-
setAddLastModified
public void setAddLastModified(String addLastModified)
-
setHreflang
public void setHreflang(Object hreflang)
- Specified by:
setHreflang
in interfaceHreflangAttribute
-
setRel
public void setRel(String rel)
- Specified by:
setRel
in interfaceRelAttribute
-
setType
public void setType(String type)
- Specified by:
setType
in interfaceTypeAttribute
-
setTarget
public void setTarget(String target)
- Specified by:
setTarget
in interfaceTargetAttribute
-
setAlt
public void setAlt(Object alt)
- Specified by:
setAlt
in interfaceAltAttribute
-
setTitle
public void setTitle(Object title)
- Specified by:
setTitle
in interfaceTitleAttribute
-
setOnclick
public void setOnclick(Object onclick)
- Specified by:
setOnclick
in interfaceOnclickAttribute
-
setOnmouseover
public void setOnmouseover(Object onmouseover)
- Specified by:
setOnmouseover
in interfaceOnmouseoverAttribute
-
setOnmouseout
public void setOnmouseout(Object onmouseout)
- Specified by:
setOnmouseout
in interfaceOnmouseoutAttribute
-
addDynamicAttribute
protected boolean addDynamicAttribute(String uri, String localName, Object value, List<String> expectedPatterns) throws JspTagException
Description copied from class:ElementNullTag
Adds a dynamic attribute.- Overrides:
addDynamicAttribute
in classElementNullTag
- Returns:
true
when added, orfalse
when attribute not expected and has not been added.- Throws:
JspTagException
- See Also:
ParamUtils.addDynamicAttribute(java.lang.String, java.lang.String, java.lang.Object, java.util.List, com.aoindustries.taglib.ParamsAttribute)
-
doTag
protected void doTag(Writer out) throws JspException, IOException
- Overrides:
doTag
in classEncodingNullTag
- Throws:
JspException
IOException
-
-