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


org.apache.beehive.netui.tags.html.HtmlBaseTag
   org.apache.beehive.netui.tags.html.Form

Form
public class Form extends HtmlBaseTag implements IUrlParams(Code)
This tag represents an input form, associated with a bean whose properties correspond to the various fields of the form. org.apache.beehive.netui.pageflow.annotations.Jpf.Action @Jpf.Actionorg.apache.beehive.netui.pageflow.annotations.Jpf.Action.useFormBean useFormBean




Method Summary
public  voidaddParameter(String name, Object value, String facet)
     Adds a URL parameter to the generated hyperlink.
public  voidaddTagID(String tagID, String name)
     Adds a tagId and name to the Form's focusMap.
public  intdoAfterBody()
     Save the body content of the Form.
public  intdoEndTag()
     Render the end of this form.
public  intdoStartTag()
     Render the beginning of this form.
public  StringgetAction()
     Return the action of the Form.
 StringgetActionUrl()
     Get the generated action URL, based on the action attribute.
public  StringgetLocation()
     Return the value of the location.
public  StringgetRealFormId()
     This method will return the real id that will be written out by the form.
protected  AbstractHtmlStategetState()
     This method will return the state associated with the tag.
public  StringgetTagName()
     Return the name of the Tag.
public  voidinsureRealId()
     This method will insure that a real id is written out even if a tagId is not set for the form.
public  booleanisFocusSet()
     Get the focus flag. true if the focus has been set.
protected  voidlocalRelease()
     Release any acquired resources.
public  voidsetAction(String action)
     Set the name of the action for the Form.
public  voidsetAttribute(String name, String value, String facet)
     Base support for the attribute tag.
public  voidsetBeanName(String name)
     Set the attribute key under which our associated bean is stored.
public  voidsetBeanScope(String scope)
     Sets the scope (request or session) under which the associated bean is stored.
public  voidsetBeanType(String type)
     Sets the Java class name of the bean to be created, if necessary.
public  voidsetEnctype(String enctype)
     Set the content encoding to be used on a post submit.
public  voidsetFocus(String focus)
     Set the name of the field to receive focus.
public  voidsetGenJavaScriptFormSubmit(boolean formSubmit)
     Generate the JavaScript which will submit a form.
public  voidsetLocation(String location)
     Set the location hash to append to the url.
public  voidsetMethod(String method)
     Set the request method used ("get" or "post") when submitting this form.
public  voidsetOnReset(String onReset)
     Sets the onReset javascript event.
public  voidsetOnSubmit(String onSubmit)
     Sets the onSubmit javascript event.
public  voidsetTarget(String target)
     Sets the window target.
public  voidsetTargetScope(String targetScope)
     Set the target "scope" for the form's action.



Method Detail
addParameter
public void addParameter(String name, Object value, String facet) throws JspException(Code)
Adds a URL parameter to the generated hyperlink.
Parameters:
  name - the name of the parameter to be added.
Parameters:
  value - the value of the parameter to be added (a String or String[]).
Parameters:
  facet -



addTagID
public void addTagID(String tagID, String name)(Code)
Adds a tagId and name to the Form's focusMap.
Parameters:
  tagID - the tagID of a child tag.
Parameters:
  name - the name of a child tag.



doAfterBody
public int doAfterBody() throws JspException(Code)
Save the body content of the Form.
throws:
  JspException - if a JSP exception has occurred



doEndTag
public int doEndTag() throws JspException(Code)
Render the end of this form.
throws:
  JspException - if a JSP exception has occurred



doStartTag
public int doStartTag() throws JspException(Code)
Render the beginning of this form.
throws:
  JspException - if a JSP exception has occurred



getAction
public String getAction()(Code)
Return the action of the Form. a String representing the action name of the Form.



getActionUrl
String getActionUrl()(Code)
Get the generated action URL, based on the action attribute.



getLocation
public String getLocation()(Code)
Return the value of the location. The value of the location.



getRealFormId
public String getRealFormId()(Code)
This method will return the real id that will be written out by the form. This is either the current state qualified tagId or the _realName if tagId is not specified. the value of the id attribute written by the form.



getState
protected AbstractHtmlState getState()(Code)
This method will return the state associated with the tag. This is used by this base class to access the individual state objects created by the tags. a subclass of the AbstractHtmlState class.



getTagName
public String getTagName()(Code)
Return the name of the Tag.



insureRealId
public void insureRealId()(Code)
This method will insure that a real id is written out even if a tagId is not set for the form.



isFocusSet
public boolean isFocusSet()(Code)
Get the focus flag. true if the focus has been set. false otherwise.



localRelease
protected void localRelease()(Code)
Release any acquired resources.



setAction
public void setAction(String action) throws JspException(Code)
Set the name of the action for the Form.
Parameters:
  action - the name of the action to set for the Form.



setAttribute
public void setAttribute(String name, String value, String facet) throws JspException(Code)
Base support for the attribute tag. This is overridden to prevent setting the action, and method attributes.
Parameters:
  name - The name of the attribute. This value may not be null or the empty string.
Parameters:
  value - The value of the attribute. This may contain an expression.
Parameters:
  facet - The name of a facet to which the attribute will be applied. This is optional.
throws:
  JspException - A JspException may be thrown if there is an error setting the attribute.



setBeanName
public void setBeanName(String name) throws JspException(Code)
Set the attribute key under which our associated bean is stored.
Parameters:
  name - the attribute key name



setBeanScope
public void setBeanScope(String scope) throws JspException(Code)
Sets the scope (request or session) under which the associated bean is stored.
Parameters:
  scope - the scope.



setBeanType
public void setBeanType(String type) throws JspException(Code)
Sets the Java class name of the bean to be created, if necessary.
Parameters:
  type - the class name



setEnctype
public void setEnctype(String enctype)(Code)
Set the content encoding to be used on a post submit.
Parameters:
  enctype - the content encoding type.



setFocus
public void setFocus(String focus)(Code)
Set the name of the field to receive focus.
Parameters:
  focus - the focus field name.



setGenJavaScriptFormSubmit
public void setGenJavaScriptFormSubmit(boolean formSubmit)(Code)
Generate the JavaScript which will submit a form. This is usually generated if the form contains anchors that are used to submit the form. This will make sure the JavaScript is always generated.
Parameters:
  formSubmit - boolean value indicating that the form submit JavaScript should be generated. Default is false.



setLocation
public void setLocation(String location)(Code)
Set the location hash to append to the url.
Parameters:
  location - the location hash



setMethod
public void setMethod(String method) throws JspException(Code)
Set the request method used ("get" or "post") when submitting this form.
Parameters:
  method - the request method



setOnReset
public void setOnReset(String onReset)(Code)
Sets the onReset javascript event.
Parameters:
  onReset - the onReset event.



setOnSubmit
public void setOnSubmit(String onSubmit)(Code)
Sets the onSubmit javascript event.
Parameters:
  onSubmit - the onReset event.



setTarget
public void setTarget(String target)(Code)
Sets the window target.
Parameters:
  target - the window target.



setTargetScope
public void setTargetScope(String targetScope)(Code)
Set the target "scope" for the form's action. Multiple active page flows may exist concurrently within named scopes. This attribute selects which named scope to use. If omitted, the default scope is assumed.
Parameters:
  targetScope - the name of the target scope in which the associated action's page flow resides.



Methods inherited from org.apache.beehive.netui.tags.html.HtmlBaseTag
protected String getJavaScriptAttribute(String name)(Code)(Java Doc)
public String getOnClick()(Code)(Java Doc)
abstract protected AbstractHtmlState getState()(Code)(Java Doc)
public String getTagId()(Code)(Java Doc)
protected void localRelease()(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)
public void setAttribute(String name, String value, String facet) throws JspException(Code)(Java Doc)
public void setDir(String dir)(Code)(Java Doc)
public void setLang(String lang)(Code)(Java Doc)
public void setOnClick(String onclick)(Code)(Java Doc)
public void setOnDblClick(String ondblclick)(Code)(Java Doc)
public void setOnKeyDown(String onkeydown)(Code)(Java Doc)
public void setOnKeyPress(String onkeypress)(Code)(Java Doc)
public void setOnKeyUp(String onkeyup)(Code)(Java Doc)
public void setOnMouseDown(String onmousedown)(Code)(Java Doc)
public void setOnMouseMove(String onmousemove)(Code)(Java Doc)
public void setOnMouseOut(String onmouseout)(Code)(Java Doc)
public void setOnMouseOver(String onmouseover)(Code)(Java Doc)
public void setOnMouseUp(String onmouseup)(Code)(Java Doc)
protected void setStateAttribute(String name, String value, AbstractHtmlState tsh) throws JspException(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public void setStyleClass(String styleClass)(Code)(Java Doc)
public void setTagId(String tagId) throws JspException(Code)(Java Doc)
public void setTitle(String title)(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.