org.apache.struts.taglib.html

Class ImageTag

public class ImageTag extends SubmitTag

Tag for input fields of type "image".

Version: $Rev: 164927 $ $Date: 2005-04-27 01:41:05 +0100 (Wed, 27 Apr 2005) $

Field Summary
protected Stringalign
The alignment for this image.
protected Stringborder
The border size around the image.
protected Stringpage
The module-relative URI of the image.
protected StringpageKey
The message resources key of the module-relative URI of the image.
protected Stringsrc
The URL of this image.
protected StringsrcKey
The message resources key for the URL of this image.
Constructor Summary
ImageTag()
Method Summary
StringgetAlign()
StringgetBorder()
protected StringgetElementOpen()
Render the opening element.
StringgetPage()
StringgetPageKey()
StringgetSrc()
StringgetSrcKey()
protected voidprepareButtonAttributes(StringBuffer results)
Render the button attributes
voidrelease()
Release any acquired resources.
voidsetAlign(String align)
voidsetBorder(String border)
voidsetPage(String page)
voidsetPageKey(String pageKey)
voidsetSrc(String src)
voidsetSrcKey(String srcKey)
protected Stringsrc()
Return the base source URL that will be rendered in the src property for this generated element, or null if there is no such URL.

Field Detail

align

protected String align
The alignment for this image.

border

protected String border
The border size around the image.

page

protected String page
The module-relative URI of the image.

pageKey

protected String pageKey
The message resources key of the module-relative URI of the image.

src

protected String src
The URL of this image.

srcKey

protected String srcKey
The message resources key for the URL of this image.

Constructor Detail

ImageTag

public ImageTag()

Method Detail

getAlign

public String getAlign()

Deprecated: Align attribute is deprecated in HTML 4.x.

getBorder

public String getBorder()

getElementOpen

protected String getElementOpen()
Render the opening element.

Returns: The opening part of the element.

getPage

public String getPage()

getPageKey

public String getPageKey()

getSrc

public String getSrc()

getSrcKey

public String getSrcKey()

prepareButtonAttributes

protected void prepareButtonAttributes(StringBuffer results)
Render the button attributes

Parameters: results The StringBuffer that output will be appended to.

release

public void release()
Release any acquired resources.

setAlign

public void setAlign(String align)

Deprecated: Align attribute is deprecated in HTML 4.x.

setBorder

public void setBorder(String border)

setPage

public void setPage(String page)

setPageKey

public void setPageKey(String pageKey)

setSrc

public void setSrc(String src)

setSrcKey

public void setSrcKey(String srcKey)

src

protected String src()
Return the base source URL that will be rendered in the src property for this generated element, or null if there is no such URL.

Throws: JspException if an error occurs

Copyright © 2000-2008 - The Apache Software Foundation