Java Doc for BaseFormElementHtmlTag.java in  » Web-Framework » aranea-mvc-1.1.1 » org » araneaframework » jsp » tag » uilib » form » 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 » aranea mvc 1.1.1 » org.araneaframework.jsp.tag.uilib.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.araneaframework.jsp.tag.PresentationTag
   org.araneaframework.jsp.tag.uilib.form.BaseFormElementHtmlTag

All known Subclasses:   org.araneaframework.jsp.tag.uilib.form.element.select.FormMultiSelectHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.select.FormRadioSelectItemHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.select.FormSelectHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.text.FormTextareaHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.select.FormCheckboxMultiSelectItemHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.BaseFormButtonTag,  org.araneaframework.jsp.tag.uilib.form.element.date.BaseFormDateTimeInputHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.select.FormCheckboxMultiSelectHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.select.FormRadioSelectHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.FormFileUploadHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.FormHiddenInputHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.text.BaseFormTextInputHtmlTag,  org.araneaframework.jsp.tag.uilib.form.element.FormCheckboxHtmlTag,
BaseFormElementHtmlTag
public class BaseFormElementHtmlTag extends PresentationTag implements FormElementTagInterface(Code)
Base form element tag.
author:
   Oleg Mürk


Field Summary
final public static  StringFORMELEMENT_SPAN_PREFIX
    
protected  StringaccessKey
    
protected  StringaccessKeyId
    
protected  booleanbackgroundValidation
    
protected  Control.ViewModelcontrolViewModel
    
protected  StringderivedId
    
protected  booleanevents
    
protected  FormElement.ViewModelformElementViewModel
    
protected  StringformFullId
    
protected  FormWidget.ViewModelformViewModel
    
protected  StringglobalUpdateRegions
    
protected  Stringid
    
protected  StringlocalizedLabel
    
protected  Stringtabindex
    
protected  ListupdateRegionNames
    
protected  StringupdateRegions
    
protected  booleanvalidateOnEvent
    


Method Summary
protected  voidassertControlType(String type)
     Asserts that associated control is of given type.
protected  intdoEndTag(Writer out)
    
public  voiddoFinally()
    
protected  intdoStartTag(Writer out)
    
protected  StringgetFullFieldId()
     Computes field name.
protected  booleangetHasElementContextSpan()
    
public  voidsetAccessKeyId(String accessKeyId)
     Id of the resource specifying the accesskey for this element.
public  voidsetEvents(String events)
    
public  voidsetGlobalUpdateRegions(String globalUpdateRegions)
    
protected  voidsetHasElementContextSpan(boolean hasElementContextSpan)
     Determines whether a "context span" will surround the contents of this tag. You should only be interested in this property if you are making a subclass of this tag, and the tag might be used as a container for other form element tags. Normally, each "form-element" tag surrounds its contents with a HTML <span> tag, denoting the span of this element (this is later used to highlight element in validation or to capture keyboard events). These spans should not nest as this will produce problems capturing keyboard events. (the same keypress will be captured twice: once by the child span, and once by the parent). Therefore, if this "form-element-tag" might contain child "form-elements" (like a CheckboxMultiselect for example), it should not have its own "context span", only its children should.
public  voidsetId(String id)
    
public  voidsetTabindex(String tabindex)
    
public  voidsetUpdateRegions(String updateRegions)
    
public  voidsetValidateOnEvent(String validateOnEvent)
    
protected  voidwriteBackgroundValidationAttribute(Writer out)
     Writes out an attribute that correctly configures background validation for formelement rendered with this tag. Note that when application wide validation settings are the same as for that formelement, no attribute is written out.
public static  voidwriteFormElementContextClose(Writer out)
    
public static  voidwriteFormElementContextOpen(Writer out, String fullFormId, String elementId, PageContext pageContext)
    
public static  voidwriteFormElementContextOpen(Writer out, String fullFormId, String elementId, boolean isPresent, PageContext pageContext)
    
public static  voidwriteFormElementContextOpen(Writer out, String fullFormId, String elementId, boolean isPresent, PageContext pageContext, String idPrefix)
     Write a span with random id around the element, and register this span with javascript (done by external behavior scripts, span functions as keyboard handler).
protected  voidwriteFormElementValidationErrorMessages(Writer out)
    
public static  voidwriteFormElementValidityMarkers(Writer out, boolean valid, String spanId)
    
protected  voidwriteSubmitScriptForUiEvent(Writer out, String attributeName, String id, String eventId, String precondition, List updateRegions)
     Writes event custom attributes and submit script for attributeName.
protected  voidwriteSubmitScriptForUiEvent(Writer out, String attributeName)
    

Field Detail
FORMELEMENT_SPAN_PREFIX
final public static String FORMELEMENT_SPAN_PREFIX(Code)

since:
   1.1



accessKey
protected String accessKey(Code)



accessKeyId
protected String accessKeyId(Code)



backgroundValidation
protected boolean backgroundValidation(Code)

since:
   1.1



controlViewModel
protected Control.ViewModel controlViewModel(Code)



derivedId
protected String derivedId(Code)



events
protected boolean events(Code)



formElementViewModel
protected FormElement.ViewModel formElementViewModel(Code)



formFullId
protected String formFullId(Code)



formViewModel
protected FormWidget.ViewModel formViewModel(Code)



globalUpdateRegions
protected String globalUpdateRegions(Code)



id
protected String id(Code)



localizedLabel
protected String localizedLabel(Code)



tabindex
protected String tabindex(Code)



updateRegionNames
protected List updateRegionNames(Code)



updateRegions
protected String updateRegions(Code)



validateOnEvent
protected boolean validateOnEvent(Code)





Method Detail
assertControlType
protected void assertControlType(String type) throws JspException(Code)
Asserts that associated control is of given type. If the condition does not hold, throws exception.



doEndTag
protected int doEndTag(Writer out) throws Exception(Code)



doFinally
public void doFinally()(Code)



doStartTag
protected int doStartTag(Writer out) throws Exception(Code)



getFullFieldId
protected String getFullFieldId()(Code)
Computes field name.



getHasElementContextSpan
protected boolean getHasElementContextSpan()(Code)

See Also:   BaseFormElementHtmlTag.setHasElementContextSpan



setAccessKeyId
public void setAccessKeyId(String accessKeyId) throws JspException(Code)
Id of the resource specifying the accesskey for this element. Support for accesskeys is specific for each form element and is to be implemented in each form element separately. Usually you won't need to specify the access key for the element at all, but rather for the element's label. It's ok to specify null, empty string, or nothing for this property.



setEvents
public void setEvents(String events) throws JspException(Code)



setGlobalUpdateRegions
public void setGlobalUpdateRegions(String globalUpdateRegions) throws JspException(Code)



setHasElementContextSpan
protected void setHasElementContextSpan(boolean hasElementContextSpan)(Code)
Determines whether a "context span" will surround the contents of this tag. You should only be interested in this property if you are making a subclass of this tag, and the tag might be used as a container for other form element tags. Normally, each "form-element" tag surrounds its contents with a HTML <span> tag, denoting the span of this element (this is later used to highlight element in validation or to capture keyboard events). These spans should not nest as this will produce problems capturing keyboard events. (the same keypress will be captured twice: once by the child span, and once by the parent). Therefore, if this "form-element-tag" might contain child "form-elements" (like a CheckboxMultiselect for example), it should not have its own "context span", only its children should. (or maybe vice-versa). Anyway, setting this value to false will disable the context span. Default is true.
Parameters:
  hasElementContextSpan -



setId
public void setId(String id) throws JspException(Code)



setTabindex
public void setTabindex(String tabindex) throws JspException(Code)



setUpdateRegions
public void setUpdateRegions(String updateRegions) throws JspException(Code)



setValidateOnEvent
public void setValidateOnEvent(String validateOnEvent) throws JspException(Code)



writeBackgroundValidationAttribute
protected void writeBackgroundValidationAttribute(Writer out) throws Exception(Code)
Writes out an attribute that correctly configures background validation for formelement rendered with this tag. Note that when application wide validation settings are the same as for that formelement, no attribute is written out. IMPL: writes out arn-bgValidate='booleanvalue' when necessary.
since:
   1.1



writeFormElementContextClose
public static void writeFormElementContextClose(Writer out) throws IOException(Code)
Closes the span opened by writeFormElementContextOpen
Parameters:
  out -
throws:
  IOException -



writeFormElementContextOpen
public static void writeFormElementContextOpen(Writer out, String fullFormId, String elementId, PageContext pageContext) throws Exception(Code)



writeFormElementContextOpen
public static void writeFormElementContextOpen(Writer out, String fullFormId, String elementId, boolean isPresent, PageContext pageContext) throws Exception(Code)



writeFormElementContextOpen
public static void writeFormElementContextOpen(Writer out, String fullFormId, String elementId, boolean isPresent, PageContext pageContext, String idPrefix) throws Exception(Code)
Write a span with random id around the element, and register this span with javascript (done by external behavior scripts, span functions as keyboard handler). Default implementation does not use any parameters except Writer and PageContext.



writeFormElementValidationErrorMessages
protected void writeFormElementValidationErrorMessages(Writer out) throws JspException, AraneaJspException, IOException(Code)

since:
   1.1



writeFormElementValidityMarkers
public static void writeFormElementValidityMarkers(Writer out, boolean valid, String spanId) throws Exception(Code)

since:
   1.1



writeSubmitScriptForUiEvent
protected void writeSubmitScriptForUiEvent(Writer out, String attributeName, String id, String eventId, String precondition, List updateRegions) throws IOException(Code)
Writes event custom attributes and submit script for attributeName.



writeSubmitScriptForUiEvent
protected void writeSubmitScriptForUiEvent(Writer out, String attributeName) throws IOException, JspException(Code)



Fields inherited from org.araneaframework.jsp.tag.PresentationTag
protected Map attributes(Code)(Java Doc)
protected String baseStyleClass(Code)(Java Doc)
protected String style(Code)(Java Doc)
protected String styleClass(Code)(Java Doc)

Methods inherited from org.araneaframework.jsp.tag.PresentationTag
public void addAttribute(String name, String value) throws JspException(Code)(Java Doc)
final public static String calculateStyleClass(String baseStyleClass, String styleClass)(Code)(Java Doc)
protected int doStartTag(Writer out) throws Exception(Code)(Java Doc)
public String getStyle() throws JspException(Code)(Java Doc)
protected String getStyleClass() throws JspException(Code)(Java Doc)
public void setPageContext(PageContext pageContext)(Code)(Java Doc)
public void setStyle(String style) throws JspException(Code)(Java Doc)
public void setStyleClass(String styleClass) throws JspException(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.