org.loom.tags.core
Class ImgTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.AbstractTag
org.loom.tags.AbstractDecoratedTag
org.loom.tags.AbstractHtmlTag
org.loom.tags.core.ImgTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag, LoomTag, ParameterContainer
@Tag(dynamicAttributes=true,
bodyContent=SCRIPTLESS,
example="<img action=\"File\" param-file.id=\"${file.id}\"/>\n<img src=\"/foo/bar.gif\"/>")
public class ImgTag- extends AbstractHtmlTag
- implements ParameterContainer
HTML img tag.
| Methods inherited from class org.loom.tags.AbstractHtmlTag |
addCssClass, getAccesskey, getCssBuilder, getCssClass, getDir, getId, getLang, getName, getStyle, getTitle, getTranslatedTitle, identify, isCssProcessed, isIf, isTranslateTitle, printParentAttributes, renderTag, setAccesskey, setCssClass, setCssProcessed, setDir, setId, setIf, setLang, setName, setStyle, setTitle, setTranslateTitle |
| Methods inherited from class org.loom.tags.AbstractTag |
createWriterWrapper, doBody, doBufferedBody, endTag, evaluateExpression, getActionProperty, getAncestorWithClass, getBufferedBody, getExtendedAttributes, getMessagesRepository, getPageContext, getRequest, getResponse, getScopedAttribute, getWriter, initTag, removeScopedAttribute, setDynamicAttribute, setExtendedAttribute, setJspContext, setResponse, setScopedAttribute, setWriter |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImgTag
public ImgTag()
setRequest
public void setRequest(LoomServletRequest request)
- Overrides:
setRequest in class AbstractTag
doTagImpl
public void doTagImpl()
throws javax.servlet.jsp.JspException,
java.io.IOException
- Description copied from class:
AbstractTag
- The method that must be implemented by the child class
- Specified by:
doTagImpl in class AbstractTag
- Throws:
javax.servlet.jsp.JspException
java.io.IOException
setAlt
public void setAlt(java.lang.String alt)
setAlign
public void setAlign(java.lang.String align)
setLongdesc
public void setLongdesc(java.lang.String longdesc)
setUsemap
public void setUsemap(java.lang.String usemap)
setVspace
public void setVspace(java.lang.String vspace)
setAction
@Attribute
public void setAction(java.lang.String action)
- The action this link points to. Either this or src must be specified
setEvent
@Attribute
public void setEvent(java.lang.String event)
- The event this link points to. If action is specified but event is not, the
default event will be assumed. If the action does not define a default event,
an exception will be thrown.
Either action/event or src must be set.
setMapping
@Attribute
public void setMapping(java.lang.String mapping)
- The mapping as
action.event. This method is equivalent to
setting action and event separately.
setSrc
@Attribute
public void setSrc(java.lang.String src)
- HTML attribute
The target url. Either this or the action / event pair must be set.
addParameter
public ImgTag addParameter(java.lang.String name,
java.lang.Object value)
- Description copied from interface:
ParameterContainer
- Adds a parameter to the resulting url
- Specified by:
addParameter in interface ParameterContainer
- Parameters:
name - the name of the parametervalue - the value of the parameter
- Returns:
- the same instance of ParameterContainer, to allow nested calls.
isTranslateAlt
public boolean isTranslateAlt()
setTranslateAlt
public void setTranslateAlt(boolean translateAlt)
getUrlBuilder
public UrlBuilder getUrlBuilder()