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

All known Subclasses:   org.apache.beehive.netui.tags.databinding.datagrid.ImageAnchorCell,  org.apache.beehive.netui.tags.databinding.datagrid.SpanCell,  org.apache.beehive.netui.tags.databinding.datagrid.ImageCell,  org.apache.beehive.netui.tags.databinding.datagrid.TemplateCell,  org.apache.beehive.netui.tags.databinding.datagrid.AnchorCell,
AbstractHtmlTableCell
abstract public class AbstractHtmlTableCell extends AbstractCell implements IAttributeConsumer,IBehaviorConsumer(Code)

Abstract base class that supports rendering an HTML <td>. This tag should be used as the base class for all tags which render content during the data grid's DataGridTagModel.RENDER_STATE_GRID render state. Subclasses must implement the AbstractHtmlTableCell.renderDataCellContents(org.apache.beehive.netui.tags.rendering.AbstractRenderAppender,String) which will be invoked after the opening table cell tag and before the closing table cell tag.

State attributes set via the setCell* methods are added to the attribute set used when rendering the <td> tag.





Method Summary
protected  voidrenderCell(AbstractRenderAppender appender)
    

Base HTML table cell rendering functionality which opens and closes the HTML <td> tags with the correct style and attribute information.

abstract protected  voidrenderDataCellContents(AbstractRenderAppender appender, String output)
    

Abstract method implemented by subclasses in order to render a cell's content.

public  voidsetAttribute(String name, String value, String facet)
    

Base support for setting attributes on a tag via the IAttributeConsumer interface.

public  voidsetBehavior(String name, Object value, String facet)
    

Base support for setting behavior values via the IBehaviorConsumer interface.

public  voidsetCellAbbr(String abbr)
     Sets the value of the abbreviated form of the HTML table cell's content.
public  voidsetCellAlign(String align)
     Sets the horizontal alignment of the HTML table cell.
public  voidsetCellAxis(String axis)
     Sets the value of the axis attribute for the HTML table cell.
public  voidsetCellChar(String alignChar)
     Sets the value of the horizontal alignment character attribute for the HTML table cell.
public  voidsetCellCharoff(String alignCharOff)
     Sets the value of the horizontal alignment character offset attribute for the HTML table cell.
public  voidsetCellColspan(int colSpan)
     Sets the colspan attribute of the HTML table cell.
public  voidsetCellDir(String dir)
     Sets the value of the text direction attribute for the HTML table cell.
public  voidsetCellHeaders(String headers)
     Sets the value of the headers attribute for the HTML table cell.
public  voidsetCellLang(String lang)
     Sets the value of the language attribute for the HTML table cell.
public  voidsetCellOnClick(String onClick)
     Sets the onClick JavaScript event for the HTML table cell.
public  voidsetCellOnDblClick(String onDblClick)
     Sets the onDblClick javascript event for the HTML table cell.
public  voidsetCellOnKeyDown(String onKeyDown)
     Sets the onKeyDown javascript event for the HTML table cell.
public  voidsetCellOnKeyPress(String onKeyPress)
     Sets the onKeyPress javascript event for the HTML table cell.
public  voidsetCellOnKeyUp(String onKeyUp)
     Sets the onKeyUp javascript event for the HTML table cell.
public  voidsetCellOnMouseDown(String onMouseDown)
     Sets the onMouseDown javascript event for the HTML table cell.
public  voidsetCellOnMouseMove(String onMouseMove)
     Sets the onMouseMove javascript event for the HTML table cell.
public  voidsetCellOnMouseOut(String onMouseOut)
     Sets the onMouseOut javascript event for the HTML table cell.
public  voidsetCellOnMouseOver(String onMouseOver)
     Sets the onMouseOver javascript event for the HTML table cell.
public  voidsetCellOnMouseUp(String onMouseUp)
     Sets the onMouseUp javascript event for the HTML table cell.
public  voidsetCellRowspan(int rowSpan)
     Sets the rowspan attribute for the HTML table cell.
public  voidsetCellScope(String scope)
     Sets the value of the scope attribute for the HTML table cell.
public  voidsetCellStyle(String style)
     Sets the style attribute for the HTML table cell.
public  voidsetCellStyleClass(String styleClass)
     Sets the style class attribute for the HTML table cell.
public  voidsetCellTagId(String tagId)
     Set the name of the tagId for the HTML table cell.
public  voidsetCellTitle(String title)
     Sets the value of the title attribute for the HTML table cell.
public  voidsetCellValign(String align)
     Sets the value of the vertical alignment attribute for the HTML table cell.
public  voidsetFilterExpression(String filterExpression)
    

Set the filter expression with which this cell should be associated.

public  voidsetSortExpression(String sortExpression)
    

Set the sort expression with which this cell should be associated.




Method Detail
renderCell
protected void renderCell(AbstractRenderAppender appender) throws IOException, JspException(Code)

Base HTML table cell rendering functionality which opens and closes the HTML <td> tags with the correct style and attribute information. Between the table cell tags, the tag calls the AbstractHtmlTableCell.renderDataCellContents(org.apache.beehive.netui.tags.rendering.AbstractRenderAppender,String) method so that subclasses implementing this method can provide content inside of the table cell.

The style information rendered here includes the following in order:

  1. the org.apache.beehive.netui.databinding.datagrid.api.rendering.StyleModel.getDataCellFilteredClass if the cell has a filter expression and is filtered
  2. the org.apache.beehive.netui.databinding.datagrid.api.rendering.StyleModel.getDataCellSortedClass if the cell has a sort expression and is sorted
  3. the AbstractHtmlTableCell.setCellStyleClass(String) attribute if set; org.apache.beehive.netui.databinding.datagrid.api.rendering.StyleModel.getDataCellClass otherwise


Parameters:
  appender - the AbstractRenderAppender to which any output should be rendered
throws:
  IOException -
throws:
  JspException -



renderDataCellContents
abstract protected void renderDataCellContents(AbstractRenderAppender appender, String output) throws IOException, JspException(Code)

Abstract method implemented by subclasses in order to render a cell's content.


Parameters:
  appender - the AbstractRenderAppender to which any output should be rendered
Parameters:
  output - the output produced from having evaluated this tag's JspFragment
throws:
  IOException -
throws:
  JspException -



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

Base support for setting attributes on a tag via the IAttributeConsumer interface. The AbstractHtmlTableCell does not support any attributes by default. Attributes set via this interface are used to extend the HTML attributes exposed through the JSP tags themselves. This allows tag users to add arbitrary attributes to the HTML tags rendered by the data grid.


Parameters:
  name - The name of the attribute.
Parameters:
  value - The value of the attribute.
Parameters:
  facet - The name of a facet to which the attribute will be applied. This is optional.
throws:
  JspException -



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

Base support for setting behavior values via the IBehaviorConsumer interface. The AbstractHtmlTableCell does not support any attributes by default. Attributes set via this interface are used to configure internal functionality of the tags which is not exposed via JSP tag attributes.


Parameters:
  name - the name of the behavior
Parameters:
  value - the value of the behavior
Parameters:
  facet - the name of a facet of the tag to which the behavior will be applied. This is optional.
throws:
  JspException -



setCellAbbr
public void setCellAbbr(String abbr)(Code)
Sets the value of the abbreviated form of the HTML table cell's content.
Parameters:
  abbr - the abbreviation



setCellAlign
public void setCellAlign(String align)(Code)
Sets the horizontal alignment of the HTML table cell.
Parameters:
  align - the alignment



setCellAxis
public void setCellAxis(String axis)(Code)
Sets the value of the axis attribute for the HTML table cell.
Parameters:
  axis - the axis



setCellChar
public void setCellChar(String alignChar)(Code)
Sets the value of the horizontal alignment character attribute for the HTML table cell.
Parameters:
  alignChar - the horizontal alignment character



setCellCharoff
public void setCellCharoff(String alignCharOff)(Code)
Sets the value of the horizontal alignment character offset attribute for the HTML table cell.
Parameters:
  alignCharOff - the alingnment character offset



setCellColspan
public void setCellColspan(int colSpan)(Code)
Sets the colspan attribute of the HTML table cell.
Parameters:
  colSpan - the colspan



setCellDir
public void setCellDir(String dir)(Code)
Sets the value of the text direction attribute for the HTML table cell.
Parameters:
  dir - the text direction



setCellHeaders
public void setCellHeaders(String headers)(Code)
Sets the value of the headers attribute for the HTML table cell.
Parameters:
  headers - the headers



setCellLang
public void setCellLang(String lang)(Code)
Sets the value of the language attribute for the HTML table cell.
Parameters:
  lang - the language



setCellOnClick
public void setCellOnClick(String onClick)(Code)
Sets the onClick JavaScript event for the HTML table cell.
Parameters:
  onClick - the onClick event.



setCellOnDblClick
public void setCellOnDblClick(String onDblClick)(Code)
Sets the onDblClick javascript event for the HTML table cell.
Parameters:
  onDblClick - the onDblClick event.



setCellOnKeyDown
public void setCellOnKeyDown(String onKeyDown)(Code)
Sets the onKeyDown javascript event for the HTML table cell.
Parameters:
  onKeyDown - the onKeyDown event.



setCellOnKeyPress
public void setCellOnKeyPress(String onKeyPress)(Code)
Sets the onKeyPress javascript event for the HTML table cell.
Parameters:
  onKeyPress - the onKeyPress event.



setCellOnKeyUp
public void setCellOnKeyUp(String onKeyUp)(Code)
Sets the onKeyUp javascript event for the HTML table cell.
Parameters:
  onKeyUp - the onKeyUp event.



setCellOnMouseDown
public void setCellOnMouseDown(String onMouseDown)(Code)
Sets the onMouseDown javascript event for the HTML table cell.
Parameters:
  onMouseDown - the onMouseDown event.



setCellOnMouseMove
public void setCellOnMouseMove(String onMouseMove)(Code)
Sets the onMouseMove javascript event for the HTML table cell.
Parameters:
  onMouseMove - the onMouseMove event.



setCellOnMouseOut
public void setCellOnMouseOut(String onMouseOut)(Code)
Sets the onMouseOut javascript event for the HTML table cell.
Parameters:
  onMouseOut - the onMouseOut event.



setCellOnMouseOver
public void setCellOnMouseOver(String onMouseOver)(Code)
Sets the onMouseOver javascript event for the HTML table cell.
Parameters:
  onMouseOver - the onMouseOver event.



setCellOnMouseUp
public void setCellOnMouseUp(String onMouseUp)(Code)
Sets the onMouseUp javascript event for the HTML table cell.
Parameters:
  onMouseUp - the onMouseUp event.



setCellRowspan
public void setCellRowspan(int rowSpan)(Code)
Sets the rowspan attribute for the HTML table cell.
Parameters:
  rowSpan - the rowspan



setCellScope
public void setCellScope(String scope)(Code)
Sets the value of the scope attribute for the HTML table cell.
Parameters:
  scope - the scope



setCellStyle
public void setCellStyle(String style)(Code)
Sets the style attribute for the HTML table cell.
Parameters:
  style - the html style.



setCellStyleClass
public void setCellStyleClass(String styleClass)(Code)
Sets the style class attribute for the HTML table cell.
Parameters:
  styleClass - the html style class.



setCellTagId
public void setCellTagId(String tagId) throws JspException(Code)
Set the name of the tagId for the HTML table cell. The user is responsible for ensuring that this tag id is unique in the rendered page.
Parameters:
  tagId - the tag id



setCellTitle
public void setCellTitle(String title)(Code)
Sets the value of the title attribute for the HTML table cell.
Parameters:
  title - the title



setCellValign
public void setCellValign(String align)(Code)
Sets the value of the vertical alignment attribute for the HTML table cell.
Parameters:
  align - the vertical alignment



setFilterExpression
public void setFilterExpression(String filterExpression)(Code)

Set the filter expression with which this cell should be associated. Cells use this value to lookup any org.apache.beehive.netui.databinding.datagrid.api.filter.Filter state that may apply to this cell. Often, this value matches a HeaderCell.setFilterExpression(String) set on a header cell. It is used by data cells to render styles representing filtered data.


Parameters:
  filterExpression - the filter expressionorg.apache.beehive.netui.databinding.datagrid.api.filter.FilterHeaderCell.setFilterExpression(String)



setSortExpression
public void setSortExpression(String sortExpression)(Code)

Set the sort expression with which this cell should be associated. Cells use this value to lookup any org.apache.beehive.netui.databinding.datagrid.api.sort.Sort state that may apply to this cell. Often, this value matches a HeaderCell.setSortExpression(String) set on a header cell. It is used by data cells to render styles representing sorted data.


Parameters:
  sortExpression - the sort expression



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.