Java Doc for FormControlOutputStyle.java in  » HTML-Parser » jericho-html » au » id » jericho » lib » 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 » HTML Parser » jericho html » au.id.jericho.lib.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   au.id.jericho.lib.html.FormControlOutputStyle

FormControlOutputStyle
final public class FormControlOutputStyle (Code)
An enumerated type representing the three major output styles of a output element.

A form control's output style is set using the FormControl.setOutputStyle(FormControlOutputStyle) method.


Inner Class :final public static class ConfigDisplayValue

Field Summary
final public static  FormControlOutputStyleDISPLAY_VALUE
     The output element is replaced with a simple representation of the submission value(s).
final public static  FormControlOutputStyleNORMAL
     Normal display of the output element.
final public static  FormControlOutputStyleREMOVE
     Remove the output element from the completely.


Method Summary
public  StringgetDebugInfo()
     Returns a string representation of this object useful for debugging purposes.
public  StringtoString()
     Returns a string representation of this object useful for debugging purposes.

Field Detail
DISPLAY_VALUE
final public static FormControlOutputStyle DISPLAY_VALUE(Code)
The output element is replaced with a simple representation of the submission value(s).

The implementation of this functionality is highly subjective, but provides a more aesthetic way of displaying a read-only version of a form without having to resort to using controls.

The representation is dependent on the , and can be configured using the static properties of the ConfigDisplayValue ConfigDisplayValue nested class.

Unless specified otherwise below, the output element is replaced with a display value element having the specified in the static ConfigDisplayValue.ElementName ConfigDisplayValue.ElementName property (div by default). The attributes specified in the static ConfigDisplayValue.AttributeNames ConfigDisplayValue.AttributeNames list (id, class and style by default) are copied from the output element into the display value element.

Details of the content of the display value element or other representation of the control value are as follows:

FormControlType.TEXT TEXT , FormControlType.FILE FILE
The content of the display value element is the value of the output element's value attribute.
FormControlType.TEXTAREA TEXTAREA
The content of the display value element is the content of the TEXTAREA element re-encoded .
FormControlType.CHECKBOX CHECKBOX , FormControlType.RADIO RADIO
The output element is replaced with the un-encoded content specified in the ConfigDisplayValue.CheckedHTML ConfigDisplayValue.CheckedHTML or ConfigDisplayValue.UncheckedHTML ConfigDisplayValue.UncheckedHTML static property, depending on whether the output element contains a checked attribute. If the relevant static property has a value of null (the default), the output element is simply a version of the form control. Attempting to determine which labels might apply to which checkbox or radio button, allowing only the selected controls to be displayed, would require a very complex and inexact algorithm, so is best left to the developer to implement if required.
FormControlType.SELECT_SINGLE SELECT_SINGLE , FormControlType.SELECT_MULTIPLE SELECT_MULTIPLE
The content of the display value element is the label of the currently selected option. In the case of a FormControlType.SELECT_MULTIPLE SELECT_MULTIPLE control, all labels of selected options are listed, separated by the text specified in the static ConfigDisplayValue.MultipleValueSeparator ConfigDisplayValue.MultipleValueSeparator property (", " by default).
FormControlType.PASSWORD PASSWORD
The content of the display value element is the character specified in the ConfigDisplayValue.PasswordChar ConfigDisplayValue.PasswordChar static property ('*' by default), repeated n times, where n is the number of characters in the control's submission value.
FormControlType.HIDDEN HIDDEN
The output element is completely.
FormControlType.BUTTON BUTTON , FormControlType.SUBMIT SUBMIT , FormControlType.IMAGE IMAGE
The output element is a version of the original form control.

If the submission value of the control is null or an empty string, the display value element is given the un-encoded content specified in the ConfigDisplayValue.EmptyHTML ConfigDisplayValue.EmptyHTML static property.




NORMAL
final public static FormControlOutputStyle NORMAL(Code)
Normal display of the output element.

This is the default display style.




REMOVE
final public static FormControlOutputStyle REMOVE(Code)
Remove the output element from the completely.





Method Detail
getDebugInfo
public String getDebugInfo()(Code)
Returns a string representation of this object useful for debugging purposes. a string representation of this object useful for debugging purposes.



toString
public String toString()(Code)
Returns a string representation of this object useful for debugging purposes.

This is equivalent to FormControlOutputStyle.getDebugInfo() . a string representation of this object useful for debugging purposes.




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.