org.deltava.taglib.html
Class ImageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.deltava.taglib.html.ElementTag
          extended by org.deltava.taglib.html.ImageTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag
Direct Known Subclasses:
FlagTag, SignatureTag

public class ImageTag
extends ElementTag

An JSP Tag to generate an IMG element.

Since:
1.0
Version:
1.0
Author:
Luke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deltava.taglib.html.ElementTag
_data, _out
 
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
ImageTag()
          Creates a new Image element tag.
 
Method Summary
 int doEndTag()
          Generates this image's HTML.
 void setBorder(int border)
          Sets the border of ths image.
 void setCaption(String caption)
          Sets the alternate caption for this image.
 void setSrc(String url)
          Sets the source of this image.
 void setX(int width)
          Sets the width of ths image.
 void setY(int height)
          Sets the height of ths image.
 
Methods inherited from class org.deltava.taglib.html.ElementTag
getName, release, setClassName, setID, setNumericAttr, setPageContext, setStyle
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageTag

public ImageTag()
Creates a new Image element tag.

Method Detail

doEndTag

public int doEndTag()
             throws JspException
Generates this image's HTML.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Throws:
JspException - if an error occurs

setX

public void setX(int width)
Sets the width of ths image. This does nothing if a negative, zero or non-numeric value is passed.

Parameters:
width - the width of the image in pixels
See Also:
ElementTag.setNumericAttr(String, int, int)

setY

public void setY(int height)
Sets the height of ths image. This does nothing if a negative, zero or non-numeric value is passed.

Parameters:
height - the height of the image in pixels
See Also:
ElementTag.setNumericAttr(String, int, int)

setBorder

public void setBorder(int border)
Sets the border of ths image. This does nothing if a negative or non-numeric value is passed.

Parameters:
border - the border of the image in pixels
See Also:
ElementTag.setNumericAttr(String, int, int)

setSrc

public void setSrc(String url)
Sets the source of this image.

Parameters:
url - the location of the image

setCaption

public void setCaption(String caption)
Sets the alternate caption for this image.

Parameters:
caption - the caption for this mage


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.