Java Doc for Button.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.HtmlFocusBaseTag
      org.apache.beehive.netui.tags.html.Button

Button
public class Button extends HtmlFocusBaseTag implements IUrlParams,IHtmlAccessable,IHasPopupSupport(Code)
Generates a button on the page with the specified attributes. The <netui:button> tag must be enclosed in <netui:form...> ... </netui:form> tags. You can specify the action that the form will raise on the <netui:form> tag. Form


Field Summary
final public static  StringACTION_OVERRIDE
    


Method Summary
public  voidaddParameter(String name, Object value, String facet)
     Adds a URL parameter to the generated hyperlink.
public  intdoAfterBody()
     Save the associated button label from the body content (if any).
public  intdoEndTag()
     Render the button.
public  intdoStartTag()
     Process the start of the Button.
public  PopupSupportgetPopupSupport()
    
protected  AbstractHtmlStategetState()
     This method will return the state associated with the tag.
public  StringgetTagName()
     Return the name of the Tag.
protected  voidlocalRelease()
     Release any acquired resources.
public  voidsetAccessKey(char accessKey)
     Sets the accessKey attribute value.
public  voidsetAction(String action)
     Set the name of the action for the Button.
public  voidsetAlt(String alt)
     Sets the alt attribute value.
public  voidsetAttribute(String name, String value, String facet)
     Base support for the attribute tag.
public  voidsetDisableSecondClick(boolean disableSecondClick)
     When true, this button will disable itself before submitting.
public  voidsetPopup(boolean popup)
     Sets the popup indicator.
public  voidsetRenderAsButton(boolean renderAsButton)
     When set to true, this tag will render the <button> control in the HTML markup, rather than the <input type="..."> element.
public  voidsetTabindex(int tabindex)
     Sets the tabIndex of the rendered html tag.
public  voidsetTargetScope(String targetScope)
     Set the target "scope" for the button's action.
public  voidsetType(String type)
     Set the type of the Button (submit, button, or reset).
public  voidsetValue(String value)
     Set the value of the Button's text.

Field Detail
ACTION_OVERRIDE
final public static String ACTION_OVERRIDE(Code)





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 -



doAfterBody
public int doAfterBody() throws JspException(Code)
Save the associated button label from the body content (if any). By default, we render the HTML markup with an <input> tag and if the value attribute is null then we will use the body content as the value attribute.

However, if the renderAsButton attribute is set to true, then we render the HTML markup with an HTML <button> tag, using the value attribute, and placing the evaluated body content as the content between the begin and end HTML button tags.


throws:
  JspException - if a JSP exception has occurred



doEndTag
public int doEndTag() throws JspException(Code)
Render the button.
throws:
  JspException - if a JSP exception has occurred



doStartTag
public int doStartTag() throws JspException(Code)
Process the start of the Button.
throws:
  JspException - if a JSP exception has occurred



getPopupSupport
public PopupSupport getPopupSupport()(Code)



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.



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



setAccessKey
public void setAccessKey(char accessKey)(Code)
Sets the accessKey attribute value. This should key value of the keyboard navigation key. It is recommended not to use the following values because there are often used by browsers A, C, E, F, G, H, V, left arrow, and right arrow.
Parameters:
  accessKey - the accessKey value.



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



setAlt
public void setAlt(String alt)(Code)
Sets the alt attribute value.
Parameters:
  alt - the alt value.



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 type and value 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.
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.



setDisableSecondClick
public void setDisableSecondClick(boolean disableSecondClick)(Code)
When true, this button will disable itself before submitting.
Parameters:
  disableSecondClick - when true, this button will disable itself before submitting.



setPopup
public void setPopup(boolean popup)(Code)
Sets the popup indicator.
Parameters:
  popup - whether or not the button should open a popup window.



setRenderAsButton
public void setRenderAsButton(boolean renderAsButton)(Code)
When set to true, this tag will render the <button> control in the HTML markup, rather than the <input type="..."> element. The evaluated content between the start and end tags will be written out as the content between the rendered HTML <button> and </button>.

Please note that using an action override and rendering the markup with a <button> control will not work in Internet Explorer. Internet Explorer includes the name and value of every <button> control in the HTML form as parameters in the request query, regardless of whether the button has been clicked or not.


Parameters:
  renderAsButton - whether or not to render a <button> rather than an <input> tag.



setTabindex
public void setTabindex(int tabindex)(Code)
Sets the tabIndex of the rendered html tag.
Parameters:
  tabindex - the tab index.



setTargetScope
public void setTargetScope(String targetScope)(Code)
Set the target "scope" for the button'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.



setType
public void setType(String type) throws JspException(Code)
Set the type of the Button (submit, button, or reset).
Parameters:
  type - the type of the Button.



setValue
public void setValue(String value) throws JspException(Code)
Set the value of the Button's text.
Parameters:
  value - the value of the Button's text.



Methods inherited from org.apache.beehive.netui.tags.html.HtmlFocusBaseTag
final protected boolean isDisabled()(Code)(Java Doc)
protected void localRelease()(Code)(Java Doc)
public void setDisabled(boolean disabled)(Code)(Java Doc)
public void setOnBlur(String onblur)(Code)(Java Doc)
public void setOnChange(String onchange)(Code)(Java Doc)
public void setOnFocus(String onfocus)(Code)(Java Doc)
public void setOnSelect(String onselect)(Code)(Java Doc)

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.