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


javax.servlet.jsp.tagext.BodyTagSupport
   org.apache.beehive.netui.tags.AbstractClassicTag

All known Subclasses:   org.apache.beehive.netui.tags.databinding.repeater.Repeater,  org.apache.beehive.netui.tags.databinding.invoke.AbstractCallMethod,  org.apache.beehive.netui.tags.html.HtmlBaseTag,  org.apache.beehive.netui.tags.databinding.cellrepeater.CellRepeater,  org.apache.beehive.netui.tags.databinding.invoke.MethodParameter,  org.apache.beehive.netui.tags.databinding.message.Message,  org.apache.beehive.netui.tags.html.RewriteName,  org.apache.beehive.netui.tags.template.SetAttribute,  org.apache.beehive.netui.tags.databinding.message.MessageArg,  org.apache.beehive.netui.tags.template.Template,  org.apache.beehive.netui.tags.javascript.ScriptHeader,  org.apache.beehive.netui.tags.html.ConfigurePopup,  org.apache.beehive.netui.tags.html.HtmlGroupBaseTag,  org.apache.beehive.netui.tags.databinding.script.GetData,  org.apache.beehive.netui.tags.databinding.bundle.DeclareBundle,  org.apache.beehive.netui.tags.databinding.xml.SerializeXML,  org.apache.beehive.netui.tags.template.Section,  org.apache.beehive.netui.tags.html.ParameterMap,  org.apache.beehive.netui.tags.html.Parameter,  org.apache.beehive.netui.tags.html.RetrievePopupOutput,  org.apache.beehive.netui.tags.html.RewriteURL,  org.apache.beehive.netui.tags.template.IncludeSection,  org.apache.beehive.netui.tags.divpanel.DivPanel,  org.apache.beehive.netui.tags.databinding.repeater.RepeaterComponent,  org.apache.beehive.netui.tags.javascript.ScriptContainer,
AbstractClassicTag
abstract public class AbstractClassicTag extends BodyTagSupport implements INetuiTag(Code)
AbstractBaseTag is the base tag for most of the NetUI tags. This tag provides default behavior and services for NetUI tags. There following categories of services are provided by this tag:
  • Generic Services -- These are general services such as access to local, writting to the response, and writting attributes.
  • Expression Management -- This set of method provide evaluation and information about expressions. These methods allow tags to fully support expressions for attributes.
  • Naming and NamingInterceptor Services -- This set of methods will apply INameInterceptors to a name to produce the name written out. In addition, it allows the URL Rewritter service to modify names.
  • Attribute Rendering Support -- This set of routine allow tags to keep simple attributes in a map that can be written into the generated markup. There are two types of attributes, attributes that contain expression and attributes that do not contain expression supported.
  • Error Reporting -- This set of routines will report errors within the tags. In development mode errors are reported in-page.
  • JavaScript Services -- This set of routines provide simple access for JavaScript generation.


Field Summary
final public static  ListDefaultNamingChain
     This List represents the default naming chain for handling dataSource attributes.
final protected static  StringEMPTY_STRING
     String constant for the empty string.
final public static  StringNETUI_UNIQUE_CNT
     This is the name of a request scoped attribute which creates a unique id for processing a request.


Method Summary
protected  StringapplyNamingChain(String name)
     This method walks all of the naming chains and allows them to rewrite the name parameter. After the naming chain processes the name, it will be passed to rewriteName for final processing. If the naming chaing returned from getNamingChain returns null, the name will be passed to rewriteName and returned.
protected  StringgetErrorsReport()
     This method will return a String that represents all of the errors that were registered for the tag.
final protected  StringgetIdForTagId(String tagId)
     This method will generate a real id based upon the passed in tagId.
protected  ListgetNamingChain()
     Return an List which represents a chain of INameInterceptor objects.
protected  FormgetNearestForm()
     Returns the closest parent form tag, or null if there is none.
protected  intgetNextId(ServletRequest req)
     This method will generate the next unique int within the HTML tag.
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.
protected  voidlocalRelease()
     This is a method that will reinitialize all temporary state on a tag and should be called in the doEndTag method.
protected  StringqualifyAttribute(String name)
     An internal method that allows a tag to qualify the name paramater by converting it from a struts style naming convention to an explicit databinding expression.
public  voidregisterTagError(String message, Throwable e)
     This will report an error from a tag.
public  voidregisterTagError(AbstractPageError error)
     This will report an error from a tag.
protected  intreportAndExit(int returnValue)
     This is a simple routine which will call the error reporter if there is an error and then call local release before returning the returnValue. This is a very common code sequence in the Classic Tags so we provide this routine.
Parameters:
  returnValue - The value that will be returned.
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.

Field Detail
DefaultNamingChain
final public static List DefaultNamingChain(Code)
This List represents the default naming chain for handling dataSource attributes. The list is a read-only list which may be used by any dataSource implementation.



EMPTY_STRING
final protected static String EMPTY_STRING(Code)
String constant for the empty string.



NETUI_UNIQUE_CNT
final public static String NETUI_UNIQUE_CNT(Code)
This is the name of a request scoped attribute which creates a unique id for processing a request.





Method Detail
applyNamingChain
protected String applyNamingChain(String name) throws JspException(Code)
This method walks all of the naming chains and allows them to rewrite the name parameter. After the naming chain processes the name, it will be passed to rewriteName for final processing. If the naming chaing returned from getNamingChain returns null, the name will be passed to rewriteName and returned. If there is an ExpressionEvaluationException thrown by a INameInterceptor, the error will be registered with the tag and null will be returned.
Parameters:
  name - the name to rewrite the name after it was passed to all INameInterceptors in the naming chain.
See Also:   AbstractClassicTag.rewriteName
See Also:   org.apache.beehive.netui.tags.naming.INameInterceptor



getErrorsReport
protected String getErrorsReport()(Code)
This method will return a String that represents all of the errors that were registered for the tag. This method assumes that there are errors in the tag and asserts this is true. Code will typically call hasErrors before calling this method. A String that contains all of the errors registered on this tag.



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.



getNamingChain
protected List getNamingChain()(Code)
Return an List which represents a chain of INameInterceptor objects. This method by default returns null and should be overridden by objects that support naming. an List that will contain INameInterceptor objects.



getNearestForm
protected Form getNearestForm()(Code)
Returns the closest parent form tag, or null if there is none.



getNextId
protected int getNextId(ServletRequest req)(Code)
This method will generate the next unique int within the HTML tag.
Parameters:
  req - the Request the next unique integer for this request.



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.



localRelease
protected void localRelease()(Code)
This is a method that will reinitialize all temporary state on a tag and should be called in the doEndTag method.



qualifyAttribute
protected String qualifyAttribute(String name) throws JspException(Code)
An internal method that allows a tag to qualify the name paramater by converting it from a struts style naming convention to an explicit databinding expression. The qualified name will be returned. This method may report an error if there is an error in the expression.
Parameters:
  name - the name to be qualified the name which has been qualified
throws:
  JspException - throws a JspException if in-page error reporting is turned off.
See Also:   org.apache.beehive.netui.tags.naming.FormDataNameInterceptor



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:
  JspException - - if in-page error reporting is turned off this method will alwaysthrow a JspException.



registerTagError
public void registerTagError(AbstractPageError error) throws JspException(Code)
This will report an error from a tag. The error must be be an AbstractPageError.
Parameters:
  error - The AbstractPageError to add to the error list.
throws:
  JspException - - if in-page error reporting is turned off this method will alwaysthrow a JspException.



reportAndExit
protected int reportAndExit(int returnValue) throws JspException(Code)
This is a simple routine which will call the error reporter if there is an error and then call local release before returning the returnValue. This is a very common code sequence in the Classic Tags so we provide this routine.
Parameters:
  returnValue - The value that will be returned. returnValue is always returned.
throws:
  JspException -



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:   AbstractClassicTag.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)(Code)
This mehod will write the passed string to the response.
Parameters:
  string - to be written to the response.



Fields inherited from javax.servlet.jsp.tagext.BodyTagSupport
protected BodyContent bodyContent(Code)(Java Doc)

Methods inherited from javax.servlet.jsp.tagext.BodyTagSupport
public int doAfterBody() throws JspException(Code)(Java Doc)
public int doEndTag() throws JspException(Code)(Java Doc)
public void doInitBody() throws JspException(Code)(Java Doc)
public int doStartTag() throws JspException(Code)(Java Doc)
public BodyContent getBodyContent()(Code)(Java Doc)
public JspWriter getPreviousOut()(Code)(Java Doc)
public void release()(Code)(Java Doc)
public void setBodyContent(BodyContent b)(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.