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

All known Subclasses:   org.apache.beehive.netui.tags.databinding.datagrid.HeaderCell,  org.apache.beehive.netui.tags.databinding.datagrid.AbstractHtmlTableCell,
AbstractCell
abstract public class AbstractCell extends AbstractDataGridHtmlTag (Code)

Abstract base class for JSP tags that render data grid cells. This class provides support to subclasses in several areas:

  • formatting -- this class accepts instances of Formatter which can optionally be used by a subclass to perform formatting on content that is written to a rendered page
  • applying attributes
  • applying state attributes to AbstractHtmlState instances used by subclasses.





Method Summary
public  voidaddFormatter(Formatter formatter)
     Add a Formatter .
final protected  voidaddStateAttribute(AbstractHtmlState state, String name, String value)
    

Add an HTML state attribute to a AbstractHtmlState object.

protected  voidapplyAttributes()
     Utility method invoked during tag rendering.
public  voiddoTag()
    

This method implements the rendering process for data grid cells.

public  voidformatterHasError()
     Indicate that a formatter has reported an error so the formatter should output it's body text.
abstract protected  CellModelinternalGetCellModel()
    

Abstract method implemented by subclasses.

abstract protected  voidrenderCell(AbstractRenderAppender appender)
    

Abstract method implemented by subclasses to perform cell-specific rendering.

protected  voidrenderEmptyCell(AbstractRenderAppender appender)
     Utility method usable by subclasses that renders an HTML   to represent an empty HTML table cell.



Method Detail
addFormatter
public void addFormatter(Formatter formatter)(Code)
Add a Formatter . Subclasses can optionally use the support formatting; formatters are added to the CellModel associated with an instance of the subclass.
Parameters:
  formatter - the formatter to add



addStateAttribute
final protected void addStateAttribute(AbstractHtmlState state, String name, String value) throws JspException(Code)

Add an HTML state attribute to a AbstractHtmlState object. This method performs checks on common attributes and sets their values on the state object or throws an exception.

For the HTML tags it is not legal to set the id or name attributes. In addition, the base tag does not allow facets to be set. If the attribute is legal it will be added to the general expression map stored in the AbstractHtmlState of the tag.


Parameters:
  state - the state object to which attributes are appliedn
Parameters:
  name - the name of an attribute
Parameters:
  value - the value of the attribute
throws:
  JspException - when an error occurs setting the attribute on the state object



applyAttributes
protected void applyAttributes() throws JspException(Code)
Utility method invoked during tag rendering. Subclasses should place attribute validation logic here.
throws:
  JspException - if application of attributes fails



doTag
public void doTag() throws JspException, IOException(Code)

This method implements the rendering process for data grid cells. When the data grid's rendering state is not DataGridTagModel.RENDER_STATE_START , this tag processes its body. The tag performs the following steps in order:

  1. The tag invokes its AbstractCell.applyAttributes() method to allow subclasses to apply attributes to their CellModel instances at a well known time. Any errors in attribute checking should be thrown here.
  2. The tag adds the CellModel associated with the data grid to the javax.servlet.jsp.JspContext under the key cellModel.
  3. Rendering is performed by invoking AbstractCell.renderCell(org.apache.beehive.netui.tags.rendering.AbstractRenderAppender) . If content is rendered when the body of the tag is rendered, it is written to the output stream.
  4. The tag removes the CellModel instance. If an exception is thrown after the CellModel is added to the javax.servlet.jsp.JspContext , it the cell model will still be removed from the JspContext.


throws:
  JspException -
throws:
  IOException -



formatterHasError
public void formatterHasError()(Code)
Indicate that a formatter has reported an error so the formatter should output it's body text.



internalGetCellModel
abstract protected CellModel internalGetCellModel()(Code)

Abstract method implemented by subclasses. Implementers should return the CellModel associated with the UI that is being rendered by the JSP tag.

the cell's CellModel



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

Abstract method implemented by subclasses to perform cell-specific rendering.


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



renderEmptyCell
protected void renderEmptyCell(AbstractRenderAppender appender)(Code)
Utility method usable by subclasses that renders an HTML   to represent an empty HTML table cell.
Parameters:
  appender - the AbstractRenderAppender to which any output should be rendered



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.