info.magnolia.cms.taglibs.util
Class ImgTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by info.magnolia.cms.taglibs.BaseContentTag
          extended by info.magnolia.cms.taglibs.util.ImgTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ImgTag
extends BaseContentTag

Writes an html img tag for the image at "nodeDataName". Also supports writing object tags for flash movies. (detected by the "swf" extension)

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
Fabrizio Giustina
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ImgTag()
           
 
Method Summary
 int doEndTag()
           
 void release()
           
 void setAltNodeDataName(String altNodeDataName)
          Name of the node data holding the alt text for the image.
 void setClass(String value)
          html pass through attribute.
 void setHeight(String value)
          html pass through attribute.
 void setId(String value)
          html pass through attribute.
 void setNodeDataName(String nodeDataName)
          the name of the nodeData containing the image path.
 void setStyle(String value)
          html pass through attribute.
 void setWidth(String value)
          html pass through attribute.
 
Methods inherited from class info.magnolia.cms.taglibs.BaseContentTag
getContentNode, getContentNodeCollectionName, getContentNodeName, getCurrentPage, getFirstMatchingNode, getFirtMatchingNode, getNodeDataName, getPath, getRepository, getUuid, isActpage, resolveNode, setActpage, setContentNode, setContentNodeCollectionName, setContentNodeName, setInherit, setPath, setRepository, setUuid
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImgTag

public ImgTag()
Method Detail

setNodeDataName

public void setNodeDataName(String nodeDataName)
the name of the nodeData containing the image path.

Overrides:
setNodeDataName in class BaseContentTag

setAltNodeDataName

public void setAltNodeDataName(String altNodeDataName)
Name of the node data holding the alt text for the image. If not set the default is nodeDataName + "Alt". The same value is added to the "title" attribute, if not null.


setHeight

public void setHeight(String value)
html pass through attribute.


setWidth

public void setWidth(String value)
html pass through attribute.


setClass

public void setClass(String value)
html pass through attribute.


setStyle

public void setStyle(String value)
html pass through attribute.


setId

public void setId(String value)
html pass through attribute.

Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException
See Also:
TagSupport.doEndTag()

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseContentTag
See Also:
TagSupport.release()


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.