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


java.lang.Object
   javax.servlet.jsp.tagext.SimpleTagSupport
      org.apache.beehive.netui.tags.AbstractSimpleTag

All known Subclasses:   org.apache.beehive.netui.tags.html.BindingUpdateErrors,  org.apache.beehive.netui.tags.html.Attribute,  org.apache.beehive.netui.tags.tree.TreeContent,  org.apache.beehive.netui.tags.tree.TreeLabel,  org.apache.beehive.netui.tags.tree.Tree,  org.apache.beehive.netui.tags.databinding.datagrid.GetDataGridState,  org.apache.beehive.netui.tags.javascript.ScriptBlock,  org.apache.beehive.netui.tags.tree.TreeItem,  org.apache.beehive.netui.tags.html.Behavior,  org.apache.beehive.netui.tags.html.ErrorBaseTag,  org.apache.beehive.netui.tags.tree.TreeHtmlAttribute,  org.apache.beehive.netui.tags.html.Content,  org.apache.beehive.netui.tags.databinding.datagrid.AbstractDataGridHtmlTag,  org.apache.beehive.netui.tags.databinding.datagrid.ConfigurePager,  org.apache.beehive.netui.tags.html.Exceptions,  org.apache.beehive.netui.tags.tree.TreePropertyOverride,  org.apache.beehive.netui.tags.html.FormatTag,  org.apache.beehive.netui.tags.html.Base,  org.apache.beehive.netui.tags.databinding.pageinput.DeclarePageInput,
AbstractSimpleTag
abstract public class AbstractSimpleTag extends SimpleTagSupport implements INetuiTag(Code)




Method Summary
protected  StringgetBufferBody(boolean trim)
    
protected  IScriptReportergetHtmlTag(ServletRequest req)
     This method will return the scriptReporter that is represented by the HTML tag.
final protected  StringgetIdForTagId(String tagId)
     This method will generate a real id based upon the passed in tagId.
protected  StringgetInlineError()
    
protected  PageContextgetPageContext()
     This method will attempt to cast the JspContext into a PageContext.
protected  IScriptReportergetScriptReporter()
     Return the closest ScriptReporter in the parental chain.
abstract public  StringgetTagName()
     Return the name of the tag.
protected  LocalegetUserLocale()
     This method will return the user local of the request.
protected  booleanhasErrors()
     This method will return true if there have been any errors registered on this tag.
public  voidregisterTagError(String message, Throwable e)
     This will report an error from a tag.
public  voidregisterTagError(AbstractPageError error)
    
protected  voidreportErrors()
     This method will write out the String returned by getErrorsReport to the response output stream.
final protected  StringrewriteName(String name)
     This method will rewrite the name (id) by passing it to the URL Rewritter and getting back a value.
final protected  StringsetNonEmptyValueAttribute(String attrValue)
     Filter out the empty string value and return either the value or null.
final protected  StringsetRequiredValueAttribute(String attrValue, String attrName)
     Report an error if the value of attrValue is equal to the empty string, otherwise return that value.
final protected  voidwrite(String string)
     This mehod will write the passed string to the response.



Method Detail
getBufferBody
protected String getBufferBody(boolean trim) throws JspException, IOException(Code)

Parameters:
  trim - String
throws:
  JspException -
throws:
  IOException -



getHtmlTag
protected IScriptReporter getHtmlTag(ServletRequest req)(Code)
This method will return the scriptReporter that is represented by the HTML tag. IScriptReporter



getIdForTagId
final protected String getIdForTagId(String tagId)(Code)
This method will generate a real id based upon the passed in tagId. The generated id will be constucted by searching upward for all the script containers that have a scope id set. These will form a fully qualified id.
Parameters:
  tagId - The base tagId set on a tag an id value formed by considering all of the scope id's found in the tag hierarchy.



getInlineError
protected String getInlineError()(Code)



getPageContext
protected PageContext getPageContext()(Code)
This method will attempt to cast the JspContext into a PageContext. If this fails, it will log an exception. PageContext



getScriptReporter
protected IScriptReporter getScriptReporter()(Code)
Return the closest ScriptReporter in the parental chain. Searching starts at this node an moves upward through the parental chain. a ScriptReporter or null if there is not one found.



getTagName
abstract public String getTagName()(Code)
Return the name of the tag. Used by error reporting to get the name of the tag. the name of the tag.



getUserLocale
protected Locale getUserLocale()(Code)
This method will return the user local of the request. the Locale object to use when rendering this tag



hasErrors
protected boolean hasErrors()(Code)
This method will return true if there have been any errors registered on this tag. Otherwise it returns false true if errors have been reported on this tag.



registerTagError
public void registerTagError(String message, Throwable e) throws JspException(Code)
This will report an error from a tag. The error will contain a message. If error reporting is turned off, the message will be returned and the caller should throw a JspException to report the error.
Parameters:
  message - - the message to register with the error
throws:
  javax.servlet.jsp.JspException - - if in-page error reporting is turned off this method will alwaysthrow a JspException.



registerTagError
public void registerTagError(AbstractPageError error) throws JspException(Code)



reportErrors
protected void reportErrors() throws JspException(Code)
This method will write out the String returned by getErrorsReport to the response output stream.
throws:
  JspException - if write throws an exception.
See Also:   AbstractSimpleTag.write



rewriteName
final protected String rewriteName(String name)(Code)
This method will rewrite the name (id) by passing it to the URL Rewritter and getting back a value.
Parameters:
  name - the name that will be rewritten a name that has been rewritten by the URLRewriterService.



setNonEmptyValueAttribute
final protected String setNonEmptyValueAttribute(String attrValue)(Code)
Filter out the empty string value and return either the value or null. When the value of attrValue is equal to the empty string this will return null, otherwise it will return the value of attrValue.
Parameters:
  attrValue - This is the value we will check for the empty string. either the value of attrValue or null



setRequiredValueAttribute
final protected String setRequiredValueAttribute(String attrValue, String attrName) throws JspException(Code)
Report an error if the value of attrValue is equal to the empty string, otherwise return that value. If attrValue is equal to the empty string, an error is registered and null is returned.
Parameters:
  attrValue - The value to be checked for the empty string
Parameters:
  attrName - The name of the attribute either the attrValue if it is not the empty string or null
throws:
  JspException - A JspException will be thrown if inline error reporting is turned off.



write
final protected void write(String string) throws JspException(Code)
This mehod will write the passed string to the response.
Parameters:
  string - to be written to the response.



Methods inherited from javax.servlet.jsp.tagext.SimpleTagSupport
public void doTag() throws JspException, IOException(Code)(Java Doc)
final public static JspTag findAncestorWithClass(JspTag from, Class klass)(Code)(Java Doc)
protected JspFragment getJspBody()(Code)(Java Doc)
protected JspContext getJspContext()(Code)(Java Doc)
public JspTag getParent()(Code)(Java Doc)
public void setJspBody(JspFragment jspBody)(Code)(Java Doc)
public void setJspContext(JspContext pc)(Code)(Java Doc)
public void setParent(JspTag parent)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.