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


java.lang.Object
   com.salmonllc.html.HtmlComponent
      com.salmonllc.jsp.JspContainer

All known Subclasses:   com.salmonllc.jsp.JspDetailForm,  com.salmonllc.jsp.JspTable,  com.salmonllc.wml.WmlOption,  com.salmonllc.jsp.JspListForm,  com.salmonllc.wml.WmlSubmit,  com.salmonllc.jsp.JspList,  com.salmonllc.jsp.JspNavBar,  com.salmonllc.jsp.JspForm,  com.salmonllc.jsp.JspRaw,  com.salmonllc.wml.WmlLink,  com.salmonllc.jsp.JspSubReportContainer,  com.salmonllc.wml.WmlGo,  com.salmonllc.jsp.JspTableRow,  com.salmonllc.jsp.JspBox,  com.salmonllc.wml.WmlCard,  com.salmonllc.jsp.JspDataTable,  com.salmonllc.jsp.JspLink,  com.salmonllc.wml.WmlDo,  com.salmonllc.jsp.JspTableCell,  com.salmonllc.jsp.JspSearchForm,  com.salmonllc.jsp.JspDisplayBox,
JspContainer
public class JspContainer extends HtmlComponent (Code)
This class is the ancestor for all JSP Container objects. It differs from HtmlContainer in that it only contains components for the purpose of processing the parameters returned from a browser. The component's generateHtml method is not called from this container, but is instead governed by the components placement in the JSP page.


Field Summary
final public static  intTYPE_COMP
    
final public static  intTYPE_FOOTER
    
final public static  intTYPE_GROUP_FOOTER
    
final public static  intTYPE_GROUP_HEADER
    
final public static  intTYPE_HEADER
    
final public static  intTYPE_ROW
    
protected  boolean_center
    
protected  boolean_enabled
    
protected  HtmlComponent_submit
    

Constructor Summary
public  JspContainer(String name, HtmlPage p)
    

Method Summary
public  voidadd(HtmlComponent comp, int type)
     Adds a component to the container.
public  voidclearSubmit()
     Clears the submit component in this container or children containers.
public  booleanexecuteEvent(int eventType)
    
public  voidgenerateHTML(PrintWriter p, int rowNo)
    
public  HtmlComponentgetComponent(int i)
     Gets a component from the container from the specified index.
public  intgetComponentCount()
     Gets the number of components in the container.
public  intgetComponentIndex(HtmlComponent comp)
    
public  intgetComponentType(int i)
    
public  intgetComponentType(HtmlComponent comp)
    
public  EnumerationgetComponents()
     This method will return a list of all components in the container.
public  JspControllergetController()
    
public  booleangetDoInit()
    
public  HtmlComponentgetSubmitComponent()
     Returns the component that submitted the page if that component is in the container or null otherwise.
public  voidinitialize()
    
public  booleanisComponentInContainer(HtmlComponent comp)
    
public  booleanprocessParms(Hashtable parms, int rowNo)
     This method will process the parms from a post for every component in the container.
 booleanreplaceComponent(HtmlComponent comp, Object compToReplace)
     Replaces a html component with another one that you pass in.
public  voidsetDoInit(boolean b)
    
public  voidsetEnabled(boolean enabled)
     Sets all the components in the container to enabled or not depending on the argument passed.
public  voidsetVisible(boolean visible)
     Sets all the components in the container to visible or not depending on the argument passed.
public  StringtoString()
    

Field Detail
TYPE_COMP
final public static int TYPE_COMP(Code)



TYPE_FOOTER
final public static int TYPE_FOOTER(Code)



TYPE_GROUP_FOOTER
final public static int TYPE_GROUP_FOOTER(Code)



TYPE_GROUP_HEADER
final public static int TYPE_GROUP_HEADER(Code)



TYPE_HEADER
final public static int TYPE_HEADER(Code)



TYPE_ROW
final public static int TYPE_ROW(Code)



_center
protected boolean _center(Code)



_enabled
protected boolean _enabled(Code)



_submit
protected HtmlComponent _submit(Code)




Constructor Detail
JspContainer
public JspContainer(String name, HtmlPage p)(Code)




Method Detail
add
public void add(HtmlComponent comp, int type)(Code)
Adds a component to the container. This method should not be called directly. It is only made public because it must be called from objects in the com.salmonllc.jsp.tags package.



clearSubmit
public void clearSubmit()(Code)
Clears the submit component in this container or children containers. The container stores which component inside it submitted a particular page for one invocation so it can route to the correct submit performed methods. Once that's done, the framework needs to clear out that value for the next page invocation. This method is used by the framework and should not be called directly.



executeEvent
public boolean executeEvent(int eventType) throws Exception(Code)



generateHTML
public void generateHTML(PrintWriter p, int rowNo) throws java.lang.Exception(Code)



getComponent
public HtmlComponent getComponent(int i)(Code)
Gets a component from the container from the specified index.



getComponentCount
public int getComponentCount()(Code)
Gets the number of components in the container.



getComponentIndex
public int getComponentIndex(HtmlComponent comp)(Code)
Returns the index of the component in the container



getComponentType
public int getComponentType(int i)(Code)
Gets the type of component at the specified index valid return values are TYPE_COMP, TYPE_ROW, TYPE_HEADER, TYPE_FOOTER, TYPE_GROUP_FOOTER, TYPE_GROUP_HEADER



getComponentType
public int getComponentType(HtmlComponent comp)(Code)
Gets the type of component assuming the component is in the container, otherwise it returns -1 valid return values are TYPE_COMP, TYPE_ROW, TYPE_HEADER, TYPE_FOOTER, TYPE_GROUP_FOOTER, TYPE_GROUP_HEADER



getComponents
public Enumeration getComponents()(Code)
This method will return a list of all components in the container.



getController
public JspController getController()(Code)
Returns the controller this container is in



getDoInit
public boolean getDoInit()(Code)
Framework method, do not call directly



getSubmitComponent
public HtmlComponent getSubmitComponent()(Code)
Returns the component that submitted the page if that component is in the container or null otherwise. - HtmlComponent



initialize
public void initialize()(Code)
override in sub classes to allow for controller logic to be attached to the container



isComponentInContainer
public boolean isComponentInContainer(HtmlComponent comp)(Code)
Returns true if the component is in this container



processParms
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)
This method will process the parms from a post for every component in the container.



replaceComponent
boolean replaceComponent(HtmlComponent comp, Object compToReplace)(Code)
Replaces a html component with another one that you pass in.
Parameters:
  comp - com.salmonllc.html.HtmlComponent - conponent that you would like to be in the container after the replace operation
Parameters:
  compToReplace - Object - a handle to the component to replace ( this is the one that should be replaced after the call to this method ) boolean



setDoInit
public void setDoInit(boolean b)(Code)
Framework method, do not call directly



setEnabled
public void setEnabled(boolean enabled)(Code)
Sets all the components in the container to enabled or not depending on the argument passed.



setVisible
public void setVisible(boolean visible)(Code)
Sets all the components in the container to visible or not depending on the argument passed.



toString
public String toString()(Code)
Creates a String representation of the contents of the JspContainer - contents of container as a string representation



Fields inherited from com.salmonllc.html.HtmlComponent
final public static int DISABLED_ATTRIBUTE_USE_NEVER(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_ON_SUPPORTED_BROWSERS(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_SYSTEM_DEFAULT(Code)(Java Doc)
final public static int EVENT_NONE(Code)(Java Doc)
final public static int EVENT_OTHER(Code)(Java Doc)
final public static int EVENT_SUBMIT(Code)(Java Doc)
protected String _class(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
protected HtmlComponent _parent(Code)(Java Doc)
protected boolean _visible(Code)(Java Doc)
final protected static boolean debug(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlComponent
public void doBinding() throws Exception(Code)(Java Doc)
public String encodeURL(String url)(Code)(Java Doc)
public StringBuffer encodeURL(StringBuffer url)(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public static String fixSpecialHTMLCharacters(String input)(Code)(Java Doc)
abstract public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
protected String generateImageURL()(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDataSource()(Code)(Java Doc)
public int getFormIndex()(Code)(Java Doc)
public String getFormString()(Code)(Java Doc)
public String getFullName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HtmlPage getPage()(Code)(Java Doc)
public HtmlComponent getParent()(Code)(Java Doc)
protected String getPortletNameSpace()(Code)(Java Doc)
protected String getSiteMapEntryName(String url)(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public int getUseDisabledAttribute()(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public boolean getVisible(boolean checkParents)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setClassName(String sClass)(Code)(Java Doc)
public void setDataSource(String dataSource)(Code)(Java Doc)
public void setFormIndex(int formIndex)(Code)(Java Doc)
public void setGenerateNewline(boolean enable)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPage(HtmlPage p)(Code)(Java Doc)
public void setParent(HtmlComponent parent)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setUseDisabledAttribute(int i)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String translateSiteMapURL(String url)(Code)(Java Doc)
protected boolean useDisabledAttribute()(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.