org.apache.struts.taglib.html

Class ImageTag

Known Direct Subclasses:
NestedImageTag

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 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
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, doDisabled, doReadonly, errorKey, errorStyle, errorStyleClass, errorStyleId, 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

Constructor Summary

ImageTag()

Method Summary

String
getAlign()
Deprecated. Align attribute is deprecated in HTML 4.x.
String
getBorder()
protected String
getElementOpen()
Render the opening element.
String
getPage()
String
getPageKey()
String
getSrc()
String
getSrcKey()
protected void
prepareButtonAttributes(StringBuffer results)
Render the button attributes
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
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, getDefaultValue, getElementOpen, getProperty, getValue, prepareButtonAttributes, prepareName, prepareValue, release, setProperty, setValue

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

doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexValue, 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, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, release, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, 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.

src

protected String src
The URL of this image.

srcKey

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

Constructor Details

ImageTag

public ImageTag()

Method Details

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.
Overrides:
getElementOpen in interface SubmitTag
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)
            throws JspException
Render the button attributes
Overrides:
prepareButtonAttributes in interface SubmitTag
Parameters:
results - The StringBuffer that output will be appended to.

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)

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-2007 - The Apache Software Foundation