Java Doc for ImageAnchorCell.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » tags » databinding » datagrid » 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.databinding.datagrid 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.beehive.netui.tags.databinding.datagrid.AbstractDataGridHtmlTag
   org.apache.beehive.netui.tags.databinding.datagrid.AbstractCell
      org.apache.beehive.netui.tags.databinding.datagrid.AbstractHtmlTableCell
         org.apache.beehive.netui.tags.databinding.datagrid.ImageAnchorCell

ImageAnchorCell
public class ImageAnchorCell extends AbstractHtmlTableCell implements IFormattable,IUrlParams(Code)

This tag is a data grid cell used to render an HTML image inside of an anchor. This tag should be used inside of a <netui-data:rows> tag when rendering a data set with the <netui-data:dataGrid> tag. The rendered output is structured as:

 <a ...><img .../>
 
If the ImageAnchorCell.setHref(String) attribute is set, the href will be rendered on the anchor. If the ImageAnchorCell.setAction(String) attribute is set, it must reference an action that is valid in the context of the current Page Flow. Only one of these two attributes may be set. The image source to render on the image tag is specified using the ImageAnchorCell.setSrc(String) attribute.

The set of JSP implicit objects available to the body include:

ImageAnchorCell.setHref(String)ImageAnchorCell.setAction(String)ImageAnchorCell.setSrc(String)org.apache.beehive.netui.databinding.datagrid.api.rendering.DataGridTagModelorg.apache.beehive.netui.script.common.IDataAccessProvider




Method Summary
public  voidaddParameter(String name, Object value, String facet)
    

Implementation of the IUrlParams interface.

public  StringgetTagName()
     The name of this tag; this value is used for error reporting.
protected  CellModelinternalGetCellModel()
     Implementation of AbstractHtmlTableCell.internalGetCellModel that exposes the org.apache.beehive.netui.databinding.datagrid.runtime.model.cell.ImageAnchorCellModel which is storing state for this tag.
protected  voidrenderDataCellContents(AbstractRenderAppender appender, String jspFragmentOutput)
     Render the contents of the HTML anchor and image.
public  voidsetAction(String action)
     Set the name of the action for the HTML anchor tag.
public  voidsetAlign(String align)
     Sets the alignment attribute for the HTML image tag.
public  voidsetAlt(String alt)
     Sets the alt text attribute for the HTML image tag.
public  voidsetAnchorTagId(String tagId)
     Set the name of the tagId for the HTML image tag..
public  voidsetAttribute(String name, String value, String facet)
    

Implementation of the org.apache.beehive.netui.tags.IAttributeConsumer interface.

public  voidsetBorder(String border)
     Sets the border size attribute for the HTML image tag.
public  voidsetCharSet(String charSet)
    
public  voidsetHeight(String height)
     Sets the image height attribute for the HTML image tag.
public  voidsetHref(String href)
     Sets the href of the HTML anchor tag.
public  voidsetHrefLang(String hreflang)
     Sets hreflang attribute for the HTML anchor tag.
public  voidsetHspace(String hspace)
     Sets the the horizontal spacing attribute for the HTML image tag.
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 for the HTML image tag.
public  voidsetLongdesc(String longdesc)
     Sets the longdesc attribute for the HTML image tag.
public  voidsetOnClick(String onClick)
     Sets the onClick JavaScript for the HTML anchor tag.
public  voidsetOnDblClick(String onDblClick)
     Sets the onDblClick JavaScript for the HTML anchor tag.
public  voidsetOnKeyDown(String onKeyDown)
     Sets the onKeyDown JavaScript for the HTML anchor tag.
public  voidsetOnKeyPress(String onKeyPress)
     Sets the onKeyPress JavaScript for the HTML anchor tag.
public  voidsetOnKeyUp(String onKeyUp)
     Sets the onKeyUp JavaScript for the HTML anchor tag.
public  voidsetOnMouseDown(String onMouseDown)
     Sets the onMouseDown JavaScript for the HTML anchor tag.
public  voidsetOnMouseMove(String onMouseMove)
     Sets the onMouseMove JavaScript for the HTML anchor tag.
public  voidsetOnMouseOut(String onMouseOut)
     Sets the onMouseOut JavaScript for the HTML anchor tag.
public  voidsetOnMouseOver(String onMouseOver)
     Sets the onMouseOver JavaScript for the HTML anchor tag.
public  voidsetOnMouseUp(String onMouseUp)
     Sets the onMouseUp JavaScript for the HTML anchor tag.
public  voidsetRel(String rel)
     Sets rel attribute for the HTML anchor tag.
public  voidsetRev(String rev)
     Sets rev attribute for the HTML anchor tag.
public  voidsetSrc(String src)
     Sets the image source URI for the HTML image tag.
public  voidsetStyle(String style)
     Sets the style of the rendered HTML anchor tag.
public  voidsetStyleClass(String styleClass)
     Sets the style class of the rendered HTML anchor tag.
public  voidsetTagId(String tagId)
     Set the name of the tagId for the HTML image tag.
public  voidsetTarget(String target)
     Sets the window target for the HTML anchor tag.
public  voidsetTargetScope(String targetScope)
     Set the target "scope" for the anchor's action.
public  voidsetTitle(String title)
     Sets the value of the title attribute for the HTML anchor tag.
public  voidsetType(String type)
     Sets type attribute for the HTML anchor tag.
public  voidsetUsemap(String usemap)
     Sets the client-side image map declaration for the HTML iage tag.
public  voidsetVspace(String vspace)
     Sets the vertical spacing around the HTML image tag.
public  voidsetWidth(String width)
     Sets the width attribute for the HTML image tag.



Method Detail
addParameter
public void addParameter(String name, Object value, String facet) throws JspException(Code)

Implementation of the IUrlParams interface. This allows this tag to accept <netui:parameter> and <netui:parameterMap> in order to add URL parameters onto the rendered anchor. For example:

 
 
 
 
will render an HTML image anchor as:
 
 


Parameters:
  name - the name of the parameter
Parameters:
  value - the value of the parameter
Parameters:
  facet - the facet for the parameter
throws:
  JspException - thrown when the facet is unsupported



getTagName
public String getTagName()(Code)
The name of this tag; this value is used for error reporting. the String name of this tag



internalGetCellModel
protected CellModel internalGetCellModel()(Code)
Implementation of AbstractHtmlTableCell.internalGetCellModel that exposes the org.apache.beehive.netui.databinding.datagrid.runtime.model.cell.ImageAnchorCellModel which is storing state for this tag. this tag's image anchor cell model



renderDataCellContents
protected void renderDataCellContents(AbstractRenderAppender appender, String jspFragmentOutput)(Code)
Render the contents of the HTML anchor and image. This method calls to an org.apache.beehive.netui.databinding.datagrid.api.rendering.CellDecorator associated with this tag. The result of renderingi is appended to the appender
Parameters:
  appender - the AbstractRenderAppender to which output should be rendered
Parameters:
  jspFragmentOutput - the result of having evaluated this tag's javax.servlet.jsp.tagext.JspFragment



setAction
public void setAction(String action) throws JspException(Code)
Set the name of the action for the HTML anchor tag. This action name must be valid given the current Page Flow.
Parameters:
  action - the name of the action to set for the anchor tag.



setAlign
public void setAlign(String align)(Code)
Sets the alignment attribute for the HTML image tag.
Parameters:
  align - the image alignment.



setAlt
public void setAlt(String alt)(Code)
Sets the alt text attribute for the HTML image tag.
Parameters:
  alt - the alt attribute.



setAnchorTagId
public void setAnchorTagId(String tagId) throws JspException(Code)
Set the name of the tagId for the HTML image tag..
Parameters:
  tagId - the the name of the tagId for the image.



setAttribute
public void setAttribute(String name, String value, String facet) throws JspException(Code)

Implementation of the org.apache.beehive.netui.tags.IAttributeConsumer interface. This allows users of this tag to extend the attribute set that is rendered by the HTML image or anchor tags. This method accepts the following facets:
Facet NameOperation
anchorAdds an attribute with the provided name and value to the attributes rendered on the <a> tag.
imageAdds an attribute with the provided name and value to the attributes rendered on the <img> tag.
This tag defaults to the setting attributes on the anchor when the facet name is unset.


Parameters:
  name - the name of the attribute
Parameters:
  value - the value of the attribute
Parameters:
  facet - the facet for the attribute
throws:
  JspException - thrown when the facet is not recognized



setBorder
public void setBorder(String border)(Code)
Sets the border size attribute for the HTML image tag.
Parameters:
  border - the border size.



setCharSet
public void setCharSet(String charSet)(Code)
Sets charset attribute for the HTML anchor tag
Parameters:
  charSet - the charset



setHeight
public void setHeight(String height)(Code)
Sets the image height attribute for the HTML image tag.
Parameters:
  height - the height.



setHref
public void setHref(String href)(Code)
Sets the href of the HTML anchor tag. This attribute will accept the empty String as a legal value.
Parameters:
  href - the hyperlink URI for the anchor.



setHrefLang
public void setHrefLang(String hreflang)(Code)
Sets hreflang attribute for the HTML anchor tag.
Parameters:
  hreflang - the hreflang.



setHspace
public void setHspace(String hspace)(Code)
Sets the the horizontal spacing attribute for the HTML image tag.
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 image 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 for the HTML image tag.
Parameters:
  ismap - the image map declaration.



setLongdesc
public void setLongdesc(String longdesc)(Code)
Sets the longdesc attribute for the HTML image tag.
Parameters:
  longdesc - the longdesc attribute



setOnClick
public void setOnClick(String onClick)(Code)
Sets the onClick JavaScript for the HTML anchor tag.
Parameters:
  onClick - the onClick event.



setOnDblClick
public void setOnDblClick(String onDblClick)(Code)
Sets the onDblClick JavaScript for the HTML anchor tag.
Parameters:
  onDblClick - the onDblClick event.



setOnKeyDown
public void setOnKeyDown(String onKeyDown)(Code)
Sets the onKeyDown JavaScript for the HTML anchor tag.
Parameters:
  onKeyDown - the onKeyDown event.



setOnKeyPress
public void setOnKeyPress(String onKeyPress)(Code)
Sets the onKeyPress JavaScript for the HTML anchor tag.
Parameters:
  onKeyPress - the onKeyPress event.



setOnKeyUp
public void setOnKeyUp(String onKeyUp)(Code)
Sets the onKeyUp JavaScript for the HTML anchor tag.
Parameters:
  onKeyUp - the onKeyUp event.



setOnMouseDown
public void setOnMouseDown(String onMouseDown)(Code)
Sets the onMouseDown JavaScript for the HTML anchor tag.
Parameters:
  onMouseDown - the onMouseDown event.



setOnMouseMove
public void setOnMouseMove(String onMouseMove)(Code)
Sets the onMouseMove JavaScript for the HTML anchor tag.
Parameters:
  onMouseMove - the onMouseMove event.



setOnMouseOut
public void setOnMouseOut(String onMouseOut)(Code)
Sets the onMouseOut JavaScript for the HTML anchor tag.
Parameters:
  onMouseOut - the onMouseOut event.



setOnMouseOver
public void setOnMouseOver(String onMouseOver)(Code)
Sets the onMouseOver JavaScript for the HTML anchor tag.
Parameters:
  onMouseOver - the onMouseOver event.



setOnMouseUp
public void setOnMouseUp(String onMouseUp)(Code)
Sets the onMouseUp JavaScript for the HTML anchor tag.
Parameters:
  onMouseUp - the onMouseUp event.



setRel
public void setRel(String rel)(Code)
Sets rel attribute for the HTML anchor tag.
Parameters:
  rel - the rel attribute



setRev
public void setRev(String rev)(Code)
Sets rev attribute for the HTML anchor tag.
Parameters:
  rev - the rev attribute.



setSrc
public void setSrc(String src) throws JspException(Code)
Sets the image source URI for the HTML image tag.
Parameters:
  src - the image source URI.



setStyle
public void setStyle(String style)(Code)
Sets the style of the rendered HTML anchor tag.
Parameters:
  style - the html style.



setStyleClass
public void setStyleClass(String styleClass)(Code)
Sets the style class of the rendered HTML anchor tag.
Parameters:
  styleClass - the style class.



setTagId
public void setTagId(String tagId) throws JspException(Code)
Set the name of the tagId for the HTML image tag.
Parameters:
  tagId - the the name of the tagId for the image.



setTarget
public void setTarget(String target)(Code)
Sets the window target for the HTML anchor tag.
Parameters:
  target - the window target



setTargetScope
public void setTargetScope(String targetScope)(Code)
Set the target "scope" for the anchor's action. Multiple active page flows may exist concurrently within named scopes. This attribute selects which named scope to use. If omitted, the default scope is assumed.
Parameters:
  targetScope - the name of the target scope in which the associated action's page flow resides.



setTitle
public void setTitle(String title)(Code)
Sets the value of the title attribute for the HTML anchor tag.
Parameters:
  title - the title



setType
public void setType(String type)(Code)
Sets type attribute for the HTML anchor tag.
Parameters:
  type - the type



setUsemap
public void setUsemap(String usemap)(Code)
Sets the client-side image map declaration for the HTML iage tag.
Parameters:
  usemap - the map declaration.



setVspace
public void setVspace(String vspace)(Code)
Sets the vertical spacing around the HTML image tag.
Parameters:
  vspace - the vertical spacing.



setWidth
public void setWidth(String width)(Code)
Sets the width attribute for the HTML image tag.
Parameters:
  width - the image width.



Methods inherited from org.apache.beehive.netui.tags.databinding.datagrid.AbstractHtmlTableCell
protected void renderCell(AbstractRenderAppender appender) throws IOException, JspException(Code)(Java Doc)
abstract protected void renderDataCellContents(AbstractRenderAppender appender, String output) throws IOException, JspException(Code)(Java Doc)
public void setAttribute(String name, String value, String facet) throws JspException(Code)(Java Doc)
public void setBehavior(String name, Object value, String facet) throws JspException(Code)(Java Doc)
public void setCellAbbr(String abbr)(Code)(Java Doc)
public void setCellAlign(String align)(Code)(Java Doc)
public void setCellAxis(String axis)(Code)(Java Doc)
public void setCellChar(String alignChar)(Code)(Java Doc)
public void setCellCharoff(String alignCharOff)(Code)(Java Doc)
public void setCellColspan(int colSpan)(Code)(Java Doc)
public void setCellDir(String dir)(Code)(Java Doc)
public void setCellHeaders(String headers)(Code)(Java Doc)
public void setCellLang(String lang)(Code)(Java Doc)
public void setCellOnClick(String onClick)(Code)(Java Doc)
public void setCellOnDblClick(String onDblClick)(Code)(Java Doc)
public void setCellOnKeyDown(String onKeyDown)(Code)(Java Doc)
public void setCellOnKeyPress(String onKeyPress)(Code)(Java Doc)
public void setCellOnKeyUp(String onKeyUp)(Code)(Java Doc)
public void setCellOnMouseDown(String onMouseDown)(Code)(Java Doc)
public void setCellOnMouseMove(String onMouseMove)(Code)(Java Doc)
public void setCellOnMouseOut(String onMouseOut)(Code)(Java Doc)
public void setCellOnMouseOver(String onMouseOver)(Code)(Java Doc)
public void setCellOnMouseUp(String onMouseUp)(Code)(Java Doc)
public void setCellRowspan(int rowSpan)(Code)(Java Doc)
public void setCellScope(String scope)(Code)(Java Doc)
public void setCellStyle(String style)(Code)(Java Doc)
public void setCellStyleClass(String styleClass)(Code)(Java Doc)
public void setCellTagId(String tagId) throws JspException(Code)(Java Doc)
public void setCellTitle(String title)(Code)(Java Doc)
public void setCellValign(String align)(Code)(Java Doc)
public void setFilterExpression(String filterExpression)(Code)(Java Doc)
public void setSortExpression(String sortExpression)(Code)(Java Doc)

Methods inherited from org.apache.beehive.netui.tags.databinding.datagrid.AbstractCell
public void addFormatter(Formatter formatter)(Code)(Java Doc)
final protected void addStateAttribute(AbstractHtmlState state, String name, String value) throws JspException(Code)(Java Doc)
protected void applyAttributes() throws JspException(Code)(Java Doc)
public void doTag() throws JspException, IOException(Code)(Java Doc)
public void formatterHasError()(Code)(Java Doc)
abstract protected CellModel internalGetCellModel()(Code)(Java Doc)
abstract protected void renderCell(AbstractRenderAppender appender) throws IOException, JspException(Code)(Java Doc)
protected void renderEmptyCell(AbstractRenderAppender appender)(Code)(Java Doc)

Methods inherited from org.apache.beehive.netui.tags.databinding.datagrid.AbstractDataGridHtmlTag
final protected void applyIndexedTagId(AbstractHtmlState state, String tagId) throws JspException(Code)(Java Doc)
final protected void applyTagId(AbstractHtmlState state, String tagId) throws JspException(Code)(Java Doc)
final protected DataGridTagModel lookupDataGridTagModel()(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)

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