org.apache.struts.taglib.html

Class ImageTag

Known Direct Subclasses:
NestedImageTag

public class ImageTag
extends SubmitTag

Tag for input fields of type "image".

Version:
$Revision: 1.25 $ $Date: 2002/11/16 06:05:21 $

Author:
Oleg V Alexeev

Field Summary

protected String
align
The alignment for this image.
protected String
border
The border size around the image.
protected String
page
The module-relative URI of the image.
protected String
pageKey
The message resources key of the module-relative URI of the image.
protected String
property
The name attribute for the image button.
protected String
src
The URL of this image.
protected String
srcKey
The message resources key for the URL of this image.

Fields inherited from class org.apache.struts.taglib.html.SubmitTag

messages, property, text, value

Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag

accesskey, alt, altKey, bundle, defaultLocale, disabled, indexed, locale, log, loopTagStatusClass, loopTagStatusGetIndex, loopTagSupportClass, loopTagSupportGetStatus, messages, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, readonly, style, styleClass, styleId, tabindex, title, titleKey, triedJstlInit, triedJstlSuccess

Method Summary

int
doEndTag()
Process the end of this tag.
int
doStartTag()
Process the start of this tag.
String
getAlign()
Deprecated. Align attribute is deprecated in HTML 4.x.
String
getBorder()
String
getPage()
String
getPageKey()
String
getProperty()
Return the property.
String
getSrc()
String
getSrcKey()
void
release()
Release any acquired resources.
void
setAlign(String align)
Deprecated. Align attribute is deprecated in HTML 4.x.
void
setBorder(String border)
void
setPage(String page)
void
setPageKey(String pageKey)
void
setProperty(String property)
Set the property name.
void
setSrc(String src)
void
setSrcKey(String srcKey)
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.

Methods inherited from class org.apache.struts.taglib.html.SubmitTag

doAfterBody, doEndTag, doStartTag, getProperty, getValue, release, setProperty, setValue

Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag

getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getIndexed, getJstlLoopIndex, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, release, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey

Field Details

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.


property

protected String property
The name attribute for the image button.


src

protected String src
The URL of this image.


srcKey

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

Method Details

doEndTag

public int doEndTag()
            throws JspException
Process the end of this tag. [Indexed property since Struts 1.1]
Overrides:
doEndTag in interface SubmitTag


doStartTag

public int doStartTag()
            throws JspException
Process the start of this tag.
Overrides:
doStartTag in interface SubmitTag


getAlign

public String getAlign()

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


getBorder

public String getBorder()


getPage

public String getPage()


getPageKey

public String getPageKey()


getProperty

public String getProperty()
Return the property.
Overrides:
getProperty in interface SubmitTag


getSrc

public String getSrc()


getSrcKey

public String getSrcKey()


release

public void release()
Release any acquired resources.
Overrides:
release in interface SubmitTag


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)


setProperty

public void setProperty(String property)
Set the property name.
Overrides:
setProperty in interface SubmitTag

Parameters:
property - The property name


setSrc

public void setSrc(String src)


setSrcKey

public void setSrcKey(String srcKey)


src

protected String src()
            throws JspException
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.


Copyright B) 2000-2005 - Apache Software Foundation