Java Doc for UIBound.java in  » Web-Framework » RSF » uk » org » ponder » rsf » components » 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 » RSF » uk.org.ponder.rsf.components 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   uk.org.ponder.rsf.components.UIComponent
      uk.org.ponder.rsf.components.UIBound

All known Subclasses:   uk.org.ponder.rsf.components.UIBoundList,  uk.org.ponder.rsf.components.UIBoundBoolean,  uk.org.ponder.rsf.components.UIBoundString,  uk.org.ponder.rsf.components.UIOutputMultiline,
UIBound
abstract public class UIBound extends UIComponent (Code)
This is essentially the core RSF component. Represents a single (possibly vector) value as transferred between the bean model and the rendererd view. Unless this is a pure output component, the value will be bound to an (EL) bean reference. This reference is used both on render to give them their initial values, and on submission to apply the input value to the model.
Immediate descendents are UIInput(One) and UIInputMany, as well as UIOutput.
A bound value may well be the container for other bound values, or annotations of other types. However, any containment hierarchy below this level is invisible to IKAT, which hands off component subtrees to renderers at anything below UIBranchContainer.

The most important and commonly set fields of UIBound are value and valuebinding. The fields willinput and fossilize are generally set by subclasses such as UIInput and UIOutput used to define the nature of the component. The fields darshaper and resolver are set in more advanced scenarios where some type adjustment is required. Finally the fields fossilizedbinding and fossilizedshaper should not be set by client code - they are a convenient repository for rendered bindings as they pass through the fixup stage.
author:
   Antranig Basman (antranig@caret.cam.ac.uk)



Field Summary
public  ELReferencedarreshaper
     An EL reference to a "DAR reshaper" that should be used to adjust the value of any attempt to write a value based on the valuebinding.
public  booleanfossilize
     A field recording whether the value of this binding at render time will be "fossilized", i.e.
public  UIParameterfossilizedbinding
     The key/value pair that will be submitted to implement the fossilized binding.
public  UIParameterfossilizedshaper
     The key/value pair of the binding corresponding to the DAR reshaper.
public  booleanmustapply
     A field recording whether "unchanged value detection" will apply to this component's submission.
public  Objectresolver
     A reference to an object, or an object that can be converted to, a LeafRenderer or BeanResolver that can render the bound value above to and from a String representation, or applied to elements of the array if a String array.
public  Stringsubmittingname
     The key that this bound control will submit under.
protected  Objectvalue
     The "initial" or "current" value of the component.
public  ELReferencevaluebinding
     The EL value reference that this component's value is bound to.
public  booleanwillinput
     A field recording whether any input is expected to result from this component.


Method Summary
public  ObjectacquireValue()
     Returns the "value" Object reference.
public  voidupdateValue(Object value)
    

Field Detail
darreshaper
public ELReference darreshaper(Code)
An EL reference to a "DAR reshaper" that should be used to adjust the value of any attempt to write a value based on the valuebinding. The reference should be to a bean of type uk.org.ponder.mapping.DARReshaper .

This is principally (currently) useful for selection controls, where a write of the value (typically an Object ID) that was read via the valuebinding would not have the "correct" effect on the object model. This field will typically be null.




fossilize
public boolean fossilize(Code)
A field recording whether the value of this binding at render time will be "fossilized", i.e. recorded by the client and resubmitted with modified values. Defaults to true for input components, and false for output components.

Producers of output components with high consistency requirements (i.e. those that will be used to provide critical values to users during multi- requests should override the constructor default in UIOutput with true.




fossilizedbinding
public UIParameter fossilizedbinding(Code)
The key/value pair that will be submitted to implement the fossilized binding. Component producers should NOT attempt to set this field, it will be computed during a fixup.



fossilizedshaper
public UIParameter fossilizedshaper(Code)
The key/value pair of the binding corresponding to the DAR reshaper. Again, computed during fixup stage if the darshaper is set.



mustapply
public boolean mustapply(Code)
A field recording whether "unchanged value detection" will apply to this component's submission. If this flag is set to true, submitted values will *always* be applied to the model irrespective of any environment settings.



resolver
public Object resolver(Code)
A reference to an object, or an object that can be converted to, a LeafRenderer or BeanResolver that can render the bound value above to and from a String representation, or applied to elements of the array if a String array.



submittingname
public String submittingname(Code)
The key that this bound control will submit under. May be set during early fixup - if not, will default to the fullID of the component, unless the renderer has special requirements (e.g. radio button group).



value
protected Object value(Code)
The "initial" or "current" value of the component. Since components in general only exist between production and rendering, this value is a transit between these processes and is not subject to any amusing processing. In general, this value may be set an initial value by the producer. If it is not set a value, and the valuebinding is set, the value will be queried from the bean model during the fixup phase.

I would dearly have loved to have made this value of differing concrete types in subclasses (boolean, String[] &c) but this created too much of a burden for fixup code. Also, fixups need to be able to reliably distinguish a missing value null which would be impossible with a primitive type.

Most importantly, value itself must never become independently visible as an bean property to serializers, which should instead only see the typesafe access functions defined in subclasses. For this reason, the field itself is protected, and the accessors are called acquireValue and updateValue




valuebinding
public ELReference valuebinding(Code)
The EL value reference that this component's value is bound to. This will be a string of the form #{rootbean.property1.property2}



willinput
public boolean willinput(Code)
A field recording whether any input is expected to result from this component. Note that if this flag is set to true, the fossilize flag MUST also be set to true.





Method Detail
acquireValue
public Object acquireValue()(Code)
Returns the "value" Object reference. This method and updateValue are not named "get" and "set" to avoid confusing bean serialisers.



updateValue
public void updateValue(Object value)(Code)
Sets the "value" Object reference



Fields inherited from uk.org.ponder.rsf.components.UIComponent
public String ID(Code)(Java Doc)
public DecoratorList decorators(Code)(Java Doc)
public UIContainer parent(Code)(Java Doc)

Methods inherited from uk.org.ponder.rsf.components.UIComponent
public UIComponent decorate(UIDecorator decorator)(Code)(Java Doc)
public String getFullID()(Code)(Java Doc)
public void updateFullID(String fullID)(Code)(Java Doc)

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.