Java Doc for BaseHandlerTag.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » taglib » 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 » Web Framework » struts 1.3.8 » org.apache.struts.taglib.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.jsp.tagext.BodyTagSupport
   org.apache.struts.taglib.html.BaseHandlerTag

All known Subclasses:   org.apache.struts.taglib.html.ImgTag,  org.apache.struts.taglib.html.BaseInputTag,  org.apache.struts.taglib.html.MultiboxTag,  org.apache.struts.taglib.html.SubmitTag,  org.apache.struts.taglib.html.CheckboxTag,  org.apache.struts.taglib.html.LinkTag,  org.apache.struts.taglib.html.SelectTag,  org.apache.struts.taglib.html.RadioTag,
BaseHandlerTag
abstract public class BaseHandlerTag extends BodyTagSupport (Code)
Base class for tags that render form elements capable of including JavaScript event handlers and/or CSS Style attributes. This class does not implement the doStartTag() or doEndTag() methods. Subclasses should provide appropriate implementations of these.
version:
   $Rev: 479633 $ $Date: 2006-11-27 08:25:35 -0600 (Mon, 27 Nov 2006) $


Field Summary
protected  Stringaccesskey
     Access key character.
protected  booleandoDisabled
    
protected  booleandoReadonly
    

Indicates whether 'readonly' is a valid attribute.

According to the HTML 4.0 Specification <readonly> is valid for <input type="text">, <input type="password"> and <textarea"> elements.

protected  booleanindexed
    
protected static  MessageResourcesmessages
     The message resources for this package.
protected  Stringtabindex
     Tab index value.


Method Summary
protected  booleandoErrorsExist()
     Determine if there are errors for the component.
public  StringgetAccesskey()
     Returns the accessKey character.
public  StringgetAlt()
     Returns the alternate text attribute.
public  StringgetAltKey()
     Returns the message resources key of the alternate text.
public  StringgetBundle()
     Returns the name of the message resources bundle to use.
public  StringgetDir()
     Returns the direction for weak/neutral text this element.
public  booleangetDisabled()
     Returns the disabled event handler.
protected  StringgetElementClose()
     Returns the closing brace for an input element depending on xhtml status.
public  StringgetErrorKey()
     Returns the error key attribute.
public  StringgetErrorStyle()
     Returns the error style attribute.
public  StringgetErrorStyleClass()
     Returns the error style class attribute.
public  StringgetErrorStyleId()
     Returns the error style id attribute.
protected  intgetIndexValue()
     Returns the index value for tags with 'true' value in 'indexed' attribute.
public  booleangetIndexed()
     Returns the indexed value.
public  StringgetLang()
     Returns the language code of this element.
public  StringgetLocale()
     Returns the name of the session attribute for our locale.
public  StringgetOnblur()
     Returns the onBlur event handler.
public  StringgetOnchange()
     Returns the onChange event handler.
public  StringgetOnclick()
     Returns the onClick event handler.
public  StringgetOndblclick()
     Returns the onDblClick event handler.
public  StringgetOnfocus()
     Returns the onFocus event handler.
public  StringgetOnkeydown()
     Returns the onKeyDown event handler.
public  StringgetOnkeypress()
     Returns the onKeyPress event handler.
public  StringgetOnkeyup()
     Returns the onKeyUp event handler.
public  StringgetOnmousedown()
     Returns the onMouseDown event handler.
public  StringgetOnmousemove()
     Returns the onMouseMove event handler.
public  StringgetOnmouseout()
     Returns the onMouseOut event handler.
public  StringgetOnmouseover()
     Returns the onMouseOver event handler.
public  StringgetOnmouseup()
     Returns the onMouseUp event handler.
public  StringgetOnselect()
     Returns the onSelect event handler.
public  booleangetReadonly()
     Returns the readonly event handler.
public  StringgetStyle()
     Returns the style attribute.
public  StringgetStyleClass()
     Returns the style class attribute.
public  StringgetStyleId()
     Returns the style id attribute.
public  StringgetTabindex()
     Returns the tabIndex value.
public  StringgetTitle()
     Returns the advisory title attribute.
public  StringgetTitleKey()
     Returns the message resources key of the advisory title.
protected  booleanisXhtml()
     Allows HTML tags to find out if they're nested within an %lt;html:html> tag that has xhtml set to true.
protected  StringlookupProperty(String beanName, String property)
     Searches all scopes for the bean and calls BeanUtils.getProperty() with the given arguments and converts any exceptions into JspException.
Parameters:
  beanName - The name of the object to get the property from.
Parameters:
  property - The name of the property to get.
protected  Stringmessage(String literal, String key)
     Return the text specified by the literal value or the message resources key, if any; otherwise return null.
protected  voidprepareAttribute(StringBuffer handlers, String name, Object value)
     Prepares an attribute if the value is not null, appending it to the the given StringBuffer.
protected  StringprepareEventHandlers()
     Prepares the event handlers for inclusion in the component's HTML tag.
protected  voidprepareFocusEvents(StringBuffer handlers)
     Prepares the focus event handlers, appending them to the the given StringBuffer.
protected  voidprepareIndex(StringBuffer handlers, String name)
     Appends bean name with index in brackets for tags with 'true' value in 'indexed' attribute.
protected  voidprepareInternationalization(StringBuffer handlers)
     Prepares the internationalization attribtes, appending them to the the given StringBuffer.
protected  voidprepareKeyEvents(StringBuffer handlers)
     Prepares the keyboard event handlers, appending them to the the given StringBuffer.
protected  voidprepareMouseEvents(StringBuffer handlers)
     Prepares the mouse event handlers, appending them to the the given StringBuffer.
protected  StringprepareName()
     Prepares the actual name of the component.
protected  voidprepareOtherAttributes(StringBuffer handlers)
     'Hook' to enable tags to be extended and additional attributes added.
protected  StringprepareStyles()
     Prepares the style attributes for inclusion in the component's HTML tag.
protected  voidprepareTextEvents(StringBuffer handlers)
     Prepares the text event handlers, appending them to the the given StringBuffer.
public  voidrelease()
     Release any acquired resources.
public  voidsetAccesskey(String accessKey)
     Sets the accessKey character.
public  voidsetAlt(String alt)
     Sets the alternate text attribute.
public  voidsetAltKey(String altKey)
     Sets the message resources key of the alternate text.
public  voidsetBundle(String bundle)
     Sets the name of the message resources bundle to use.
public  voidsetDir(String dir)
     Sets the direction for weak/neutral text of this element.
public  voidsetDisabled(boolean disabled)
     Sets the disabled event handler.
public  voidsetErrorKey(String errorKey)
     Sets the error key attribute.
public  voidsetErrorStyle(String errorStyle)
     Sets the error style attribute.
public  voidsetErrorStyleClass(String errorStyleClass)
     Sets the error style class attribute.
public  voidsetErrorStyleId(String errorStyleId)
     Sets the error style id attribute.
public  voidsetIndexed(boolean indexed)
     Sets the indexed value.
public  voidsetLang(String lang)
     Sets the language code of this element.
public  voidsetLocale(String locale)
     Sets the name of the session attribute for our locale.
public  voidsetOnblur(String onBlur)
     Sets the onBlur event handler.
public  voidsetOnchange(String onChange)
     Sets the onChange event handler.
public  voidsetOnclick(String onClick)
     Sets the onClick event handler.
public  voidsetOndblclick(String onDblClick)
     Sets the onDblClick event handler.
public  voidsetOnfocus(String onFocus)
     Sets the onFocus event handler.
public  voidsetOnkeydown(String onKeyDown)
     Sets the onKeyDown event handler.
public  voidsetOnkeypress(String onKeyPress)
     Sets the onKeyPress event handler.
public  voidsetOnkeyup(String onKeyUp)
     Sets the onKeyUp event handler.
public  voidsetOnmousedown(String onMouseDown)
     Sets the onMouseDown event handler.
public  voidsetOnmousemove(String onMouseMove)
     Sets the onMouseMove event handler.
public  voidsetOnmouseout(String onMouseOut)
     Sets the onMouseOut event handler.
public  voidsetOnmouseover(String onMouseOver)
     Sets the onMouseOver event handler.
public  voidsetOnmouseup(String onMouseUp)
     Sets the onMouseUp event handler.
public  voidsetOnselect(String onSelect)
     Sets the onSelect event handler.
public  voidsetReadonly(boolean readonly)
     Sets the readonly event handler.
public  voidsetStyle(String style)
     Sets the style attribute.
public  voidsetStyleClass(String styleClass)
     Sets the style class attribute.
public  voidsetStyleId(String styleId)
     Sets the style id attribute.
public  voidsetTabindex(String tabIndex)
     Sets the tabIndex value.
public  voidsetTitle(String title)
     Sets the advisory title attribute.
public  voidsetTitleKey(String titleKey)
     Sets the message resources key of the advisory title.

Field Detail
accesskey
protected String accesskey(Code)
Access key character.



doDisabled
protected boolean doDisabled(Code)
Indicates whether 'disabled' is a valid attribute



doReadonly
protected boolean doReadonly(Code)

Indicates whether 'readonly' is a valid attribute.

According to the HTML 4.0 Specification <readonly> is valid for <input type="text">, <input type="password"> and <textarea"> elements. Therefore, except for those tags this value is set to false.




indexed
protected boolean indexed(Code)
Whether to created indexed names for fields
since:
   Struts 1.1



messages
protected static MessageResources messages(Code)
The message resources for this package.



tabindex
protected String tabindex(Code)
Tab index value.





Method Detail
doErrorsExist
protected boolean doErrorsExist() throws JspException(Code)
Determine if there are errors for the component. Whether errors exist.



getAccesskey
public String getAccesskey()(Code)
Returns the accessKey character.



getAlt
public String getAlt()(Code)
Returns the alternate text attribute.



getAltKey
public String getAltKey()(Code)
Returns the message resources key of the alternate text.



getBundle
public String getBundle()(Code)
Returns the name of the message resources bundle to use.



getDir
public String getDir()(Code)
Returns the direction for weak/neutral text this element.
since:
   Struts 1.3.6



getDisabled
public boolean getDisabled()(Code)
Returns the disabled event handler.



getElementClose
protected String getElementClose()(Code)
Returns the closing brace for an input element depending on xhtml status. The tag must be nested within an %lt;html:html> tag that has xhtml set to true. String - > if xhtml is false, /> if xhtml is true
since:
   Struts 1.1



getErrorKey
public String getErrorKey()(Code)
Returns the error key attribute.



getErrorStyle
public String getErrorStyle()(Code)
Returns the error style attribute.



getErrorStyleClass
public String getErrorStyleClass()(Code)
Returns the error style class attribute.



getErrorStyleId
public String getErrorStyleId()(Code)
Returns the error style id attribute.



getIndexValue
protected int getIndexValue() throws JspException(Code)
Returns the index value for tags with 'true' value in 'indexed' attribute. the index value.
throws:
  JspException - if 'indexed' tag used outside of iterate tag.



getIndexed
public boolean getIndexed()(Code)
Returns the indexed value.
since:
   Struts 1.1



getLang
public String getLang()(Code)
Returns the language code of this element.
since:
   Struts 1.3.6



getLocale
public String getLocale()(Code)
Returns the name of the session attribute for our locale.



getOnblur
public String getOnblur()(Code)
Returns the onBlur event handler.



getOnchange
public String getOnchange()(Code)
Returns the onChange event handler.



getOnclick
public String getOnclick()(Code)
Returns the onClick event handler.



getOndblclick
public String getOndblclick()(Code)
Returns the onDblClick event handler.



getOnfocus
public String getOnfocus()(Code)
Returns the onFocus event handler.



getOnkeydown
public String getOnkeydown()(Code)
Returns the onKeyDown event handler.



getOnkeypress
public String getOnkeypress()(Code)
Returns the onKeyPress event handler.



getOnkeyup
public String getOnkeyup()(Code)
Returns the onKeyUp event handler.



getOnmousedown
public String getOnmousedown()(Code)
Returns the onMouseDown event handler.



getOnmousemove
public String getOnmousemove()(Code)
Returns the onMouseMove event handler.



getOnmouseout
public String getOnmouseout()(Code)
Returns the onMouseOut event handler.



getOnmouseover
public String getOnmouseover()(Code)
Returns the onMouseOver event handler.



getOnmouseup
public String getOnmouseup()(Code)
Returns the onMouseUp event handler.



getOnselect
public String getOnselect()(Code)
Returns the onSelect event handler.



getReadonly
public boolean getReadonly()(Code)
Returns the readonly event handler.



getStyle
public String getStyle()(Code)
Returns the style attribute.



getStyleClass
public String getStyleClass()(Code)
Returns the style class attribute.



getStyleId
public String getStyleId()(Code)
Returns the style id attribute.



getTabindex
public String getTabindex()(Code)
Returns the tabIndex value.



getTitle
public String getTitle()(Code)
Returns the advisory title attribute.



getTitleKey
public String getTitleKey()(Code)
Returns the message resources key of the advisory title.



isXhtml
protected boolean isXhtml()(Code)
Allows HTML tags to find out if they're nested within an %lt;html:html> tag that has xhtml set to true. true if the tag is nested within an html tag with xhtml set totrue, false otherwise.
since:
   Struts 1.1



lookupProperty
protected String lookupProperty(String beanName, String property) throws JspException(Code)
Searches all scopes for the bean and calls BeanUtils.getProperty() with the given arguments and converts any exceptions into JspException.
Parameters:
  beanName - The name of the object to get the property from.
Parameters:
  property - The name of the property to get. The value of the property.
throws:
  JspException -
since:
   Struts 1.1



message
protected String message(String literal, String key) throws JspException(Code)
Return the text specified by the literal value or the message resources key, if any; otherwise return null.
Parameters:
  literal - Literal text value or null
Parameters:
  key - Message resources key or null
throws:
  JspException - if both arguments are non-null



prepareAttribute
protected void prepareAttribute(StringBuffer handlers, String name, Object value)(Code)
Prepares an attribute if the value is not null, appending it to the the given StringBuffer.
Parameters:
  handlers - The StringBuffer that output will be appended to.



prepareEventHandlers
protected String prepareEventHandlers()(Code)
Prepares the event handlers for inclusion in the component's HTML tag. The prepared String for inclusion in the HTML tag.



prepareFocusEvents
protected void prepareFocusEvents(StringBuffer handlers)(Code)
Prepares the focus event handlers, appending them to the the given StringBuffer.
Parameters:
  handlers - The StringBuffer that output will be appended to.



prepareIndex
protected void prepareIndex(StringBuffer handlers, String name) throws JspException(Code)
Appends bean name with index in brackets for tags with 'true' value in 'indexed' attribute.
Parameters:
  handlers - The StringBuffer that output will be appended to.
throws:
  JspException - if 'indexed' tag used outside of iterate tag.



prepareInternationalization
protected void prepareInternationalization(StringBuffer handlers)(Code)
Prepares the internationalization attribtes, appending them to the the given StringBuffer.
Parameters:
  handlers - The StringBuffer that output will be appended to.
since:
   Struts 1.3.6



prepareKeyEvents
protected void prepareKeyEvents(StringBuffer handlers)(Code)
Prepares the keyboard event handlers, appending them to the the given StringBuffer.
Parameters:
  handlers - The StringBuffer that output will be appended to.



prepareMouseEvents
protected void prepareMouseEvents(StringBuffer handlers)(Code)
Prepares the mouse event handlers, appending them to the the given StringBuffer.
Parameters:
  handlers - The StringBuffer that output will be appended to.



prepareName
protected String prepareName() throws JspException(Code)
Prepares the actual name of the component. The actual component name.



prepareOtherAttributes
protected void prepareOtherAttributes(StringBuffer handlers)(Code)
'Hook' to enable tags to be extended and additional attributes added.
Parameters:
  handlers - The StringBuffer that output will be appended to.



prepareStyles
protected String prepareStyles() throws JspException(Code)
Prepares the style attributes for inclusion in the component's HTML tag. The prepared String for inclusion in the HTML tag.
throws:
  JspException - if invalid attributes are specified



prepareTextEvents
protected void prepareTextEvents(StringBuffer handlers)(Code)
Prepares the text event handlers, appending them to the the given StringBuffer.
Parameters:
  handlers - The StringBuffer that output will be appended to.



release
public void release()(Code)
Release any acquired resources.



setAccesskey
public void setAccesskey(String accessKey)(Code)
Sets the accessKey character.



setAlt
public void setAlt(String alt)(Code)
Sets the alternate text attribute.



setAltKey
public void setAltKey(String altKey)(Code)
Sets the message resources key of the alternate text.



setBundle
public void setBundle(String bundle)(Code)
Sets the name of the message resources bundle to use.



setDir
public void setDir(String dir)(Code)
Sets the direction for weak/neutral text of this element.
since:
   Struts 1.3.6



setDisabled
public void setDisabled(boolean disabled)(Code)
Sets the disabled event handler.



setErrorKey
public void setErrorKey(String errorKey)(Code)
Sets the error key attribute.



setErrorStyle
public void setErrorStyle(String errorStyle)(Code)
Sets the error style attribute.



setErrorStyleClass
public void setErrorStyleClass(String errorStyleClass)(Code)
Sets the error style class attribute.



setErrorStyleId
public void setErrorStyleId(String errorStyleId)(Code)
Sets the error style id attribute.



setIndexed
public void setIndexed(boolean indexed)(Code)
Sets the indexed value.
since:
   Struts 1.1



setLang
public void setLang(String lang)(Code)
Sets the language code of this element.
since:
   Struts 1.3.6



setLocale
public void setLocale(String locale)(Code)
Sets the name of the session attribute for our locale.



setOnblur
public void setOnblur(String onBlur)(Code)
Sets the onBlur event handler.



setOnchange
public void setOnchange(String onChange)(Code)
Sets the onChange event handler.



setOnclick
public void setOnclick(String onClick)(Code)
Sets the onClick event handler.



setOndblclick
public void setOndblclick(String onDblClick)(Code)
Sets the onDblClick event handler.



setOnfocus
public void setOnfocus(String onFocus)(Code)
Sets the onFocus event handler.



setOnkeydown
public void setOnkeydown(String onKeyDown)(Code)
Sets the onKeyDown event handler.



setOnkeypress
public void setOnkeypress(String onKeyPress)(Code)
Sets the onKeyPress event handler.



setOnkeyup
public void setOnkeyup(String onKeyUp)(Code)
Sets the onKeyUp event handler.



setOnmousedown
public void setOnmousedown(String onMouseDown)(Code)
Sets the onMouseDown event handler.



setOnmousemove
public void setOnmousemove(String onMouseMove)(Code)
Sets the onMouseMove event handler.



setOnmouseout
public void setOnmouseout(String onMouseOut)(Code)
Sets the onMouseOut event handler.



setOnmouseover
public void setOnmouseover(String onMouseOver)(Code)
Sets the onMouseOver event handler.



setOnmouseup
public void setOnmouseup(String onMouseUp)(Code)
Sets the onMouseUp event handler.



setOnselect
public void setOnselect(String onSelect)(Code)
Sets the onSelect event handler.



setReadonly
public void setReadonly(boolean readonly)(Code)
Sets the readonly event handler.



setStyle
public void setStyle(String style)(Code)
Sets the style attribute.



setStyleClass
public void setStyleClass(String styleClass)(Code)
Sets the style class attribute.



setStyleId
public void setStyleId(String styleId)(Code)
Sets the style id attribute.



setTabindex
public void setTabindex(String tabIndex)(Code)
Sets the tabIndex value.



setTitle
public void setTitle(String title)(Code)
Sets the advisory title attribute.



setTitleKey
public void setTitleKey(String titleKey)(Code)
Sets the message resources key of the advisory title.



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.