Java Doc for AnchorCell.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.AnchorCell

AnchorCell
public class AnchorCell extends AbstractHtmlTableCell implements IFormattable,IUrlParams,IHtmlCore,IHtmlEvents,IHtmlI18n(Code)

Data grid cell used to render an HTML anchor. This tag should be used inside of a <netui-data:rows> tag when rendering a data set with the <netui-data:dataGrid> tag. An AnchorCell is used to render an HTML <a> tag. The rendered href is provided with either the action or href attributes. If an action is provided, the action must exist inside of the 'current' Page Flow with which the JSP is associated. If the href is provided, the anchor will use this value as its rendered href. For example:

 <netui-data:anchorCell href="foo.jsp" value="Go To Foo"/>
 
will render:
 <a href="foo.jsp">Go To Foo</a>
 

The AnchorCell tag can also accept NetUI parameter tags that implement the IUrlParams interface. When these tags are contained inside of this tag, they add URL parameters onto the rendered href. For example:

 
 
 
 
will render:
 <a href="foo.jsp?paramKey=paramValue">Go To Foo</a>
 

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

IUrlParamsorg.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.

protected  voidapplyAttributes()
    

Interanl method overriding the AbstractHtmlTableCell.applyAttributes method to handle setting attributes on the AnchorCellModel associated with an instance of this tag.

public  StringgetTagName()
     The name of this tag; this value is used for error reporting.
protected  CellModelinternalGetCellModel()
     Implementation of AbstractHtmlTableCell.internalGetCellModel that exposes the AnchorCellModel which is storing state for the tag's anchor.
protected  voidrenderDataCellContents(AbstractRenderAppender appender, String jspFragmentOutput)
     Render the contents of the HTML anchor.
public  voidsetAccessKey(char accessKey)
     Sets the accessKey attribute value.
public  voidsetAction(String action)
     Set the name of the action for the HTML anchor.
public  voidsetAttribute(String name, String value, String facet)
    

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

public  voidsetCharset(String charSet)
     Sets charset attribute for the HTML anchor.
public  voidsetDir(String dir)
     Sets the dir attribute for the HTML anchor.
public  voidsetHref(String href)
     Sets the href of the HTML anchor.
public  voidsetHrefLang(String hreflang)
     Sets hreflang attribute for the anchor.
public  voidsetLang(String lang)
     Sets the lang attribute for the HTML anchor.
public  voidsetOnBlur(String onblur)
     Sets the onBlur JavaScript event for the HTML anchor.
public  voidsetOnClick(String onClick)
     Sets the onClick JavaScript event for the HTML anchor.
public  voidsetOnDblClick(String onDblClick)
     Sets the onDblClick JavaScript event for the HTML anchor.
public  voidsetOnFocus(String onfocus)
     Sets the onFocus JavaScript event for the HTML anchor.
public  voidsetOnKeyDown(String onKeyDown)
     Sets the onKeyDown JavaScript event for the HTML anchor.
public  voidsetOnKeyPress(String onKeyPress)
     Sets the onKeyPress JavaScript event for the HTML anchor.
public  voidsetOnKeyUp(String onKeyUp)
     Sets the onKeyUp JavaScript event for the HTML anchor.
public  voidsetOnMouseDown(String onMouseDown)
     Sets the onMouseDown JavaScript event for the HTML anchor.
public  voidsetOnMouseMove(String onMouseMove)
     Sets the onMouseMove JavaScript event for the HTML anchor.
public  voidsetOnMouseOut(String onMouseOut)
     Sets the onMouseOut JavaScript event for the HTML anchor.
public  voidsetOnMouseOver(String onMouseOver)
     Sets the onMouseOver JavaScript event for the HTML anchor.
public  voidsetOnMouseUp(String onMouseUp)
     Sets the onMouseUp JavaScript event for the HTML anchor.
public  voidsetRel(String rel)
     Sets rel attribute for the HTML anchor.
public  voidsetRev(String rev)
     Sets rev attribute for the HTML anchor.
public  voidsetStyle(String style)
     Sets the style of the HTML anchor.
public  voidsetStyleClass(String styleClass)
     Sets the style class of the HTML anchor.
public  voidsetTabindex(int tabindex)
     Sets the tabIndex of the rendered html tag.
public  voidsetTagId(String tagId)
    

Set the name of the tagId for the HTML anchor.

public  voidsetTarget(String target)
     Sets the window target for the HTML anchor.
public  voidsetTargetScope(String targetScope)
     Set the target "scope" for the anchor's action.
public  voidsetTitle(String title)
    
public  voidsetType(String type)
     Sets type attribute for the HTML anchor.
public  voidsetValue(Object value)
     The text displayed for the HTML anchor.



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 anchor as:
 JspException -  thrown when the facet is unsupported



applyAttributes
protected void applyAttributes() throws JspException(Code)

Interanl method overriding the AbstractHtmlTableCell.applyAttributes method to handle setting attributes on the AnchorCellModel associated with an instance of this tag.


throws:
  JspException - when an error occurs applying attributes to the cell model.



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 AnchorCellModel which is storing state for the tag's anchor. this tag's anchor cell model



renderDataCellContents
protected void renderDataCellContents(AbstractRenderAppender appender, String jspFragmentOutput)(Code)
Render the contents of the HTML anchor. 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



setAccessKey
public void setAccessKey(char accessKey)(Code)
Sets the accessKey attribute value. This should key value of the keyboard navigation key. It is recommended not to use the following values because there are often used by browsers A, C, E, F, G, H, V, left arrow, and right arrow.
Parameters:
  accessKey - the accessKey value.



setAction
public void setAction(String action) throws JspException(Code)
Set the name of the action for the HTML anchor. The action method must be in the Page Flow with which the containing JSP is associated.
Parameters:
  action - the name of the action to set for the Area.



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 the anchorCell tag to extend the attribute set that is rendered by the HTML anchor. 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.
The AnchorCell 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



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



setDir
public void setDir(String dir)(Code)
Sets the dir attribute for the HTML anchor.
Parameters:
  dir -



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



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



setLang
public void setLang(String lang)(Code)
Sets the lang attribute for the HTML anchor.
Parameters:
  lang -



setOnBlur
public void setOnBlur(String onblur)(Code)
Sets the onBlur JavaScript event for the HTML anchor.
Parameters:
  onblur - the onBlur event.



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



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



setOnFocus
public void setOnFocus(String onfocus)(Code)
Sets the onFocus JavaScript event for the HTML anchor.
Parameters:
  onfocus - the onFocus event.



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



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



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



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



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



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



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



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



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



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



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



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



setTabindex
public void setTabindex(int tabindex)(Code)
Sets the tabIndex of the rendered html tag.
Parameters:
  tabindex - the tab index.



setTagId
public void setTagId(String tagId) throws JspException(Code)

Set the name of the tagId for the HTML anchor. The provided tagId will have the index of the current row added as a suffix in order to keep the anchor tagIds unique in the page.


Parameters:
  tagId - the the tagId for the HTML anchor.



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



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
Parameters:
  title - the title attribute



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



setValue
public void setValue(Object value)(Code)
The text displayed for the HTML anchor.
Parameters:
  value - the text displayed for the HTML anchor



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.