Java Doc for BaseBodyTag.java in  » J2EE » Sofia » com » salmonllc » jsp » 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 » J2EE » Sofia » com.salmonllc.jsp.tags 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
      javax.servlet.jsp.tagext.BodyTagSupport
         com.salmonllc.jsp.tags.BaseBodyTag

All known Subclasses:   com.salmonllc.jsp.tags.ParameterTag,  com.salmonllc.jsp.tags.InputTag,  com.salmonllc.jsp.tags.NestedTag,  com.salmonllc.jsp.tags.DivTag,  com.salmonllc.jsp.tags.NavBarTag,  com.salmonllc.jsp.tags.AppletTag,  com.salmonllc.jsp.tags.FontTag,  com.salmonllc.jsp.tags.ExpandAllTag,  com.salmonllc.jsp.tags.TreeTag,  com.salmonllc.jsp.tags.ContainerTag,  com.salmonllc.jsp.tags.DataSourceNestedTag,  com.salmonllc.jsp.tags.CookieCrumbleTag,  com.salmonllc.jsp.tags.DataSourceTag,  com.salmonllc.jsp.tags.ValidatorTag,  com.salmonllc.jsp.tags.ExpandTag,
BaseBodyTag
abstract public class BaseBodyTag extends BodyTagSupport (Code)
This tag is the ancestor of all the body tags in the library


Field Summary
final public static  intCONV_CUSTOM
    
final public static  intCONV_DONT_CONVERT
    
final public static  intCONV_INVISIBLE
    
final public static  intCONV_NONE
    
final public static  intCONV_PAGE_INVISIBLE
    
final public static  intCONV_WRAP_ALL_NESTED
    
final public static  intMODE_BOX
    
final public static  intMODE_END
    
final public static  intMODE_FOOTER
    
final public static  intMODE_GROUP_FOOTER
    
final public static  intMODE_GROUP_HEADER
    
final public static  intMODE_HEADER
    
final public static  intMODE_INITIALIZE
    
final public static  intMODE_ROW
    


Method Summary
protected  voidaddItem()
     This method will add a component to the controller.
public  voidafterInit(HtmlComponent comp)
     This method can be used by components that need to change a component after all the sub tags have been initialized.
public  voidafterInit(DataStoreBuffer comp)
     This method can be used by tags that need to change a datastore after all the sub tags have been initialized.
protected  booleanalwaysWriteContent()
    
public  voidclearBodyContent()
    
abstract public  HtmlComponentcreateComponent()
     This method must be implemented by each subclass of this tag.
public  intdoAfterBody()
    
public  intdoEndTag()
    
public  voiddoInitBody()
    
public  intdoStartTag()
    
protected  voidgenerateComponentHTML(JspWriter w)
     This method is called when necessary to generate the required html for a tag.
protected  StringgenerateFormHiddenFieldHtml()
    
public  StringgetBodyContentData(boolean clear)
    
public  BaseTagHelpergetHelper()
     This method returns the tag helper class for the custom tag.
protected  intgetMode()
     This method returns the current mode for the tag.
public  StringgetName()
     This method returns the name attribute for the tag.
public  PageContextgetPageContext()
    
abstract public  intgetTagConvertType()
     Returns the type of DreamWeaver conversion that this tag uses. Valid values are
CONV_CUSTOM : The tag handles the conversion itself in the generateHtml Method.
CONV_WRAP_ALL_NESTED : The conversion is handled by the engine, all nested tags are combined into one locked dreamweaver tag.
CONV_INVISIBLE : The start and end tag convert to locked dreamweaver tags, but don't have a conversion.
public  TagWritergetTagWriter()
     This method returns the TagWriter object for the tag.
public  StringgetVisible()
    
public  booleanhasNestedTags()
    
protected  booleanincrementMode()
     For Tags that require multiple passes to render their Html, this method should be implemented.
protected  voidinitMode()
     For tags requiring more than one pass to complete, this method should be implemented.
protected  booleanisTagOKForMode()
     The method should be overridden by a subclass to indicate if a tag is valid for a particular mode of its parent.
public  voidrelease()
     This method is part of the JSP tag lib specification.
protected  voidsetMode(int mode)
     This method should be called from the incrementMode method of a subclass when the mode should be changed.
public  voidsetName(String newName)
     This method sets the name attribute for the tag.
public  voidsetTagWriter(TagWriter writer)
    
public  voidsetVisible(String val)
    
public  StringtoString()
    
protected  voidwriteFormHiddenFields(JspWriter w)
    

Field Detail
CONV_CUSTOM
final public static int CONV_CUSTOM(Code)



CONV_DONT_CONVERT
final public static int CONV_DONT_CONVERT(Code)



CONV_INVISIBLE
final public static int CONV_INVISIBLE(Code)



CONV_NONE
final public static int CONV_NONE(Code)



CONV_PAGE_INVISIBLE
final public static int CONV_PAGE_INVISIBLE(Code)



CONV_WRAP_ALL_NESTED
final public static int CONV_WRAP_ALL_NESTED(Code)



MODE_BOX
final public static int MODE_BOX(Code)



MODE_END
final public static int MODE_END(Code)



MODE_FOOTER
final public static int MODE_FOOTER(Code)



MODE_GROUP_FOOTER
final public static int MODE_GROUP_FOOTER(Code)



MODE_GROUP_HEADER
final public static int MODE_GROUP_HEADER(Code)



MODE_HEADER
final public static int MODE_HEADER(Code)



MODE_INITIALIZE
final public static int MODE_INITIALIZE(Code)



MODE_ROW
final public static int MODE_ROW(Code)





Method Detail
addItem
protected void addItem()(Code)
This method will add a component to the controller. It is overloaded in the DataSourceTag to add a DataStoreBuffer instead



afterInit
public void afterInit(HtmlComponent comp)(Code)
This method can be used by components that need to change a component after all the sub tags have been initialized.



afterInit
public void afterInit(DataStoreBuffer comp)(Code)
This method can be used by tags that need to change a datastore after all the sub tags have been initialized.



alwaysWriteContent
protected boolean alwaysWriteContent()(Code)
Override in tags like paramater and raw that always should write body content even when initializing



clearBodyContent
public void clearBodyContent()(Code)
Clears the body content



createComponent
abstract public HtmlComponent createComponent()(Code)
This method must be implemented by each subclass of this tag. Each tag except NestedTags has an Html or Jsp Component associated with it. This method must be implemented to insure that the correct component gets created.



doAfterBody
public int doAfterBody() throws JspException(Code)
This method is part of the JSP tag library specification



doEndTag
public int doEndTag() throws JspException(Code)



doInitBody
public void doInitBody()(Code)
This method is part of the JSP Tag Library Specification



doStartTag
public int doStartTag() throws JspException(Code)
This method is part of the JSP Tag Library Specification



generateComponentHTML
protected void generateComponentHTML(JspWriter w) throws Exception(Code)
This method is called when necessary to generate the required html for a tag. It should be overridden by tags that have more Html to generate (generally tags that require several passes to complete). A tag shouldn't generate any Html itself, but should instead delagate that to the Html or JSP component within it.



generateFormHiddenFieldHtml
protected String generateFormHiddenFieldHtml()(Code)



getBodyContentData
public String getBodyContentData(boolean clear)(Code)
Returns a string with the contents of the body of this tag



getHelper
public BaseTagHelper getHelper()(Code)
This method returns the tag helper class for the custom tag.



getMode
protected int getMode()(Code)
This method returns the current mode for the tag. Modes are used for tags that require multiple passes to complete (Each mode corresponds to one type of pass).



getName
public String getName()(Code)
This method returns the name attribute for the tag.



getPageContext
public PageContext getPageContext()(Code)
This method returns the Page Context object associated with the tag



getTagConvertType
abstract public int getTagConvertType()(Code)
Returns the type of DreamWeaver conversion that this tag uses. Valid values are
CONV_CUSTOM : The tag handles the conversion itself in the generateHtml Method.
CONV_WRAP_ALL_NESTED : The conversion is handled by the engine, all nested tags are combined into one locked dreamweaver tag.
CONV_INVISIBLE : The start and end tag convert to locked dreamweaver tags, but don't have a conversion. Items in the body are processed depending on their conversion type.
CONV_PAGE_INVISIBLE : A special type used for the page tag only
CONT_DONT_CONVERT : Don't convert to Dreamweaver, always return the original tag



getTagWriter
public TagWriter getTagWriter()(Code)
This method returns the TagWriter object for the tag.



getVisible
public String getVisible()(Code)
This method returns the visible attribute for the tag



hasNestedTags
public boolean hasNestedTags()(Code)
Override this method for tags that contain NestedTags within to return true



incrementMode
protected boolean incrementMode()(Code)
For Tags that require multiple passes to render their Html, this method should be implemented. It wll be called for each mode until it returns false. Also, this method is responsible for storing the results of the tags nested within it. Once the method returns false, the generateComponentHtml method will be called and here, the stored data from the nested tags should be sent to the output stream.



initMode
protected void initMode()(Code)
For tags requiring more than one pass to complete, this method should be implemented. It should initialize the mode to whatever is the starting mode for the component and perform any other initializetion tasks.



isTagOKForMode
protected boolean isTagOKForMode()(Code)
The method should be overridden by a subclass to indicate if a tag is valid for a particular mode of its parent.



release
public void release()(Code)
This method is part of the JSP tag lib specification.



setMode
protected void setMode(int mode)(Code)
This method should be called from the incrementMode method of a subclass when the mode should be changed.



setName
public void setName(String newName)(Code)
This method sets the name attribute for the tag.



setTagWriter
public void setTagWriter(TagWriter writer)(Code)
This method is used by the com.salmonllc.jsp.engine.JspConverter class to specify the TagWriter to use for this tag



setVisible
public void setVisible(String val)(Code)
This method sets the tag's visible attribute



toString
public String toString()(Code)



writeFormHiddenFields
protected void writeFormHiddenFields(JspWriter w) throws IOException(Code)



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)

Fields inherited from javax.servlet.jsp.tagext.TagSupport
protected String id(Code)(Java Doc)
protected PageContext pageContext(Code)(Java Doc)

Methods inherited from javax.servlet.jsp.tagext.TagSupport
public int doAfterBody() throws JspException(Code)(Java Doc)
public int doEndTag() throws JspException(Code)(Java Doc)
public int doStartTag() throws JspException(Code)(Java Doc)
final public static Tag findAncestorWithClass(Tag from, Class klass)(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public Tag getParent()(Code)(Java Doc)
public Object getValue(String k)(Code)(Java Doc)
public Enumeration getValues()(Code)(Java Doc)
public void release()(Code)(Java Doc)
public void removeValue(String k)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setPageContext(PageContext pageContext)(Code)(Java Doc)
public void setParent(Tag t)(Code)(Java Doc)
public void setValue(String k, Object o)(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.