| org.apache.beehive.netui.tags.html.HtmlBaseTag org.apache.beehive.netui.tags.html.AnchorBase org.apache.beehive.netui.tags.html.Anchor org.apache.beehive.netui.tags.html.ImageAnchor
ImageAnchor | public class ImageAnchor extends Anchor implements IHtmlAccessable(Code) | | Generates a URL-encoded hyperlink to a specified URI with an image
enclosed as the body. ImageAnchor provides support for image rollovers.
An imageAnchor must have one of five attributes to correctly create the hyperlink:
- action - an action invoked by clicking the hyperlink.
- href - a URL to go to
- linkName - an internal place in the page to move to
- clientAction - the action to run on the client
- tagId - the ID of the tag
- formSubmit - indicates whether or not the enclosing Form should be submitted
|
Method Summary | |
public int | doEndTag() Render the image and hyperlink. | public int | doStartTag() Insert rollover javascript. | public String | getTagName() Return the name of the Tag. | protected void | localRelease() Release any acquired resources. | public void | setAlign(String align) Sets the property to specify where to align the image. | public void | setAlt(String alt) Sets the property to specify the alt text of the image. | public void | setAttribute(String name, String value, String facet) Base support for the attribute tag. | public void | setBorder(String border) Sets the border size around the image. | public void | setHeight(String height) Sets the image height. | public void | setHspace(String hspace) Sets the the horizontal spacing around the image. | public void | setImageStyle(String imageStyle) Set the <img> style for the contained image. | public void | setImageStyleClass(String imageClass) Set the label style class for each contained Image. | public void | setIsmap(String ismap) Sets the server-side image map declaration. | public void | setLongdesc(String longdesc) Sets the property to specify a link to the the long description to supplement
the short description in the alt attribute. | public void | setRolloverImage(String rolloverImage) Sets the roll-over image of the ImageAnchor. | public void | setSrc(String src) Sets the image source URI. | public void | setUsemap(String usemap) Sets the client-side image map declaration. | public void | setVspace(String vspace) Sets the vertical spacing around the image. | public void | setWidth(String width) Sets the image width. |
doStartTag | public int doStartTag() throws JspException(Code) | | Insert rollover javascript.
Support for indexed property since Struts 1.1
throws: JspException - if a JSP exception has occurred |
getTagName | public String getTagName()(Code) | | Return the name of the Tag.
|
localRelease | protected void localRelease()(Code) | | Release any acquired resources.
|
setAlign | public void setAlign(String align)(Code) | | Sets the property to specify where to align the image.
Parameters: align - the image alignment. |
setAlt | public void setAlt(String alt)(Code) | | Sets the property to specify the alt text of the image.
Parameters: alt - the image alignment. |
setAttribute | public void setAttribute(String name, String value, String facet) throws JspException(Code) | | Base support for the attribute tag. This is overridden to prevent setting the src
attribute. ImageAnchor supports two facets, image and anchor. The default
facet is anchor, meaning if the facet is not specified, the attribute will be applied to the
<a> element. To apply an attribute to the <img> element you must specify the
image facet.
Parameters: name - The name of the attribute. This value may not be null or the empty string. Parameters: value - The value of the attribute. This may contain an expression. Parameters: facet - The name of a facet to which the attribute will be applied. This is optional. throws: JspException - A JspException may be thrown if there is an error setting the attribute. |
setBorder | public void setBorder(String border)(Code) | | Sets the border size around the image.
Parameters: border - the border size. |
setHeight | public void setHeight(String height)(Code) | | Sets the image height.
Parameters: height - the height. |
setHspace | public void setHspace(String hspace)(Code) | | Sets the the horizontal spacing around the image.
Parameters: hspace - the horizontal spacing. |
setImageStyle | public void setImageStyle(String imageStyle)(Code) | | Set the <img> style for the contained image. When the tag library is
running in legacy mode, this will override the style attribute if that is
set. If this is not set, and style is set, then it will be applied to
the image.
Parameters: imageStyle - the label style |
setImageStyleClass | public void setImageStyleClass(String imageClass)(Code) | | Set the label style class for each contained Image. When the tag library is
running in legacy mode, this will override the styleClass attribute if that is
set. If this is not set, and styleClass is set, then it will be applied to
the image.
Parameters: imageClass - the image class |
setIsmap | public void setIsmap(String ismap)(Code) | | Sets the server-side image map declaration.
Parameters: ismap - the image map declaration. |
setLongdesc | public void setLongdesc(String longdesc)(Code) | | Sets the property to specify a link to the the long description to supplement
the short description in the alt attribute.
Parameters: longdesc - the longdesc. |
setRolloverImage | public void setRolloverImage(String rolloverImage)(Code) | | Sets the roll-over image of the ImageAnchor.
Parameters: rolloverImage - the rollover image. |
setSrc | public void setSrc(String src) throws JspException(Code) | | Sets the image source URI.
Parameters: src - the image source URI. |
setUsemap | public void setUsemap(String usemap)(Code) | | Sets the client-side image map declaration.
Parameters: usemap - the map declaration. |
setVspace | public void setVspace(String vspace)(Code) | | Sets the vertical spacing around the image.
Parameters: vspace - the vertical spacing. |
setWidth | public void setWidth(String width)(Code) | | Sets the image width.
Parameters: width - the image width. |
|
|