Java Doc for ImageAnchor.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » tags » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.tags.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  intdoEndTag()
     Render the image and hyperlink.
public  intdoStartTag()
     Insert rollover javascript.
public  StringgetTagName()
     Return the name of the Tag.
protected  voidlocalRelease()
     Release any acquired resources.
public  voidsetAlign(String align)
     Sets the property to specify where to align the image.
public  voidsetAlt(String alt)
     Sets the property to specify the alt text of the image.
public  voidsetAttribute(String name, String value, String facet)
     Base support for the attribute tag.
public  voidsetBorder(String border)
     Sets the border size around the image.
public  voidsetHeight(String height)
     Sets the image height.
public  voidsetHspace(String hspace)
     Sets the the horizontal spacing around the image.
public  voidsetImageStyle(String imageStyle)
     Set the <img> style for the contained image.
public  voidsetImageStyleClass(String imageClass)
     Set the label style class for each contained Image.
public  voidsetIsmap(String ismap)
     Sets the server-side image map declaration.
public  voidsetLongdesc(String longdesc)
     Sets the property to specify a link to the the long description to supplement the short description in the alt attribute.
public  voidsetRolloverImage(String rolloverImage)
     Sets the roll-over image of the ImageAnchor.
public  voidsetSrc(String src)
     Sets the image source URI.
public  voidsetUsemap(String usemap)
     Sets the client-side image map declaration.
public  voidsetVspace(String vspace)
     Sets the vertical spacing around the image.
public  voidsetWidth(String width)
     Sets the image width.



Method Detail
doEndTag
public int doEndTag() throws JspException(Code)
Render the image and hyperlink.
throws:
  JspException - if a JSP exception has occurred



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.



Methods inherited from org.apache.beehive.netui.tags.html.Anchor
public int doAfterBody() throws JspException(Code)(Java Doc)
public int doEndTag() throws JspException(Code)(Java Doc)
public int doStartTag() throws JspException(Code)(Java Doc)
public AbstractHtmlState getState()(Code)(Java Doc)
public String getTagName()(Code)(Java Doc)
public void setCharSet(String charSet)(Code)(Java Doc)
public void setClientAction(String action) throws JspException(Code)(Java Doc)
public void setHrefLang(String hreflang)(Code)(Java Doc)
public void setLinkName(String linkName) throws JspException(Code)(Java Doc)
public void setOnClick(String onclick)(Code)(Java Doc)
public void setRel(String rel)(Code)(Java Doc)
public void setRev(String rev)(Code)(Java Doc)
public void setTarget(String target)(Code)(Java Doc)
public void setType(String type)(Code)(Java Doc)
public void setValue(String value)(Code)(Java Doc)

Fields inherited from org.apache.beehive.netui.tags.html.AnchorBase
final protected static String REQUIRED_ATTR(Code)(Java Doc)
protected String _clientAction(Code)(Java Doc)
protected String _linkName(Code)(Java Doc)
protected AnchorTag.State _state(Code)(Java Doc)

Methods inherited from org.apache.beehive.netui.tags.html.AnchorBase
public void addParameter(String name, Object value, String facet) throws JspException(Code)(Java Doc)
final protected boolean createAnchorBeginTag(HttpServletRequest request, ByRef scriptRef, TagRenderingBase trb, AbstractRenderAppender writer, String requiredAttrs) throws JspException(Code)(Java Doc)
public PopupSupport getPopupSupport()(Code)(Java Doc)
protected void localRelease()(Code)(Java Doc)
public void setAccessKey(char accessKey)(Code)(Java Doc)
public void setAction(String action) throws JspException(Code)(Java Doc)
public void setAttribute(String name, String value, String facet) throws JspException(Code)(Java Doc)
public void setCoords(String coords)(Code)(Java Doc)
public void setDisableSecondClick(boolean disableSecondClick)(Code)(Java Doc)
public void setFormSubmit(boolean formSubmit)(Code)(Java Doc)
public void setHref(String href) throws JspException(Code)(Java Doc)
public void setLocation(String location)(Code)(Java Doc)
public void setOnBlur(String onblur)(Code)(Java Doc)
public void setOnFocus(String onfocus)(Code)(Java Doc)
public void setPopup(boolean popup)(Code)(Java Doc)
public void setShape(String shape)(Code)(Java Doc)
public void setTabindex(int tabindex)(Code)(Java Doc)
public void setTargetScope(String targetScope)(Code)(Java Doc)

Methods inherited from org.apache.beehive.netui.tags.html.HtmlBaseTag
protected String getJavaScriptAttribute(String name)(Code)(Java Doc)
public String getOnClick()(Code)(Java Doc)
abstract protected AbstractHtmlState getState()(Code)(Java Doc)
public String getTagId()(Code)(Java Doc)
protected void localRelease()(Code)(Java Doc)
protected String renderDefaultNameAndId(HttpServletRequest request, AbstractHtmlState state, String id, String name)(Code)(Java Doc)
final protected String renderNameAndId(HttpServletRequest request, AbstractHtmlState state, Form parentForm)(Code)(Java Doc)
public void setAttribute(String name, String value, String facet) throws JspException(Code)(Java Doc)
public void setDir(String dir)(Code)(Java Doc)
public void setLang(String lang)(Code)(Java Doc)
public void setOnClick(String onclick)(Code)(Java Doc)
public void setOnDblClick(String ondblclick)(Code)(Java Doc)
public void setOnKeyDown(String onkeydown)(Code)(Java Doc)
public void setOnKeyPress(String onkeypress)(Code)(Java Doc)
public void setOnKeyUp(String onkeyup)(Code)(Java Doc)
public void setOnMouseDown(String onmousedown)(Code)(Java Doc)
public void setOnMouseMove(String onmousemove)(Code)(Java Doc)
public void setOnMouseOut(String onmouseout)(Code)(Java Doc)
public void setOnMouseOver(String onmouseover)(Code)(Java Doc)
public void setOnMouseUp(String onmouseup)(Code)(Java Doc)
protected void setStateAttribute(String name, String value, AbstractHtmlState tsh) throws JspException(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public void setStyleClass(String styleClass)(Code)(Java Doc)
public void setTagId(String tagId) throws JspException(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.