Source Code Cross Referenced for UIComponent.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 Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Created on Jul 27, 2005
03:         */
04:        package uk.org.ponder.rsf.components;
05:
06:        import uk.org.ponder.rsf.components.decorators.DecoratorList;
07:        import uk.org.ponder.rsf.components.decorators.UIDecorator;
08:        import uk.org.ponder.rsf.util.RSFUtil;
09:
10:        /**
11:         * UIComponent is the base of the entire RSF component hierarchy. Components
12:         * derived from this class may either be containers derived from UIContainer,
13:         * or else leaf components peering with target dialect tags.
14:         * Note that Components form a containment hierarchy ONLY to allow nested 
15:         * repetitive domains. This class is mutually referential with UIContainer.
16:         * @author Antranig Basman (antranig@caret.cam.ac.uk)
17:         *  
18:         */
19:        public class UIComponent {
20:            /** This ID corresponds to the rsf:id in the view template, and is parsed
21:             * by use of the class SplitID.
22:             */
23:            public String ID;
24:            // fullid is the full path to this component
25:            // structure: ID1-prefix:ID1-suffix:localID1:ID2-prefix:ID2-suffix:localID2:etc.
26:            private String fullID;
27:
28:            /** The algorithm used here must deterministically generate a string ID
29:             * globally unique within the containing component tree (the View), by 
30:             * appending path components derived from IDs and local IDs found at each
31:             * level of UIContainer. This algorithm should be "accessible" to simple 
32:             * environments such as XSLTs since they will need to operate it to generate
33:             * inter-component references within a view (for example to express any
34:             * EL dependencies).
35:             * <p>
36:             * The structure of the ID forms colon-separated "triples", one for each
37:             * container in the path, ending with the rsf:id of any leaf component, e.g.
38:             * ID1-prefix:ID1-suffix:localID1:ID2-prefix:ID2-suffix:localID2:etc.
39:             */
40:            public String getFullID() {
41:                if (fullID == null) {
42:                    fullID = RSFUtil.computeFullID(this );
43:                }
44:                return fullID;
45:            }
46:
47:            /** Updates the full ID of this component with the supplied value. This
48:             * is an "emergency" method to be used only as a last resort. Within RSF
49:             * it is necessary to ensure that UIBound components arising as direct children
50:             * of "composite" parents can have their IDs set correctly before value
51:             * fixup.
52:             */
53:            public void updateFullID(String fullID) {
54:                this .fullID = fullID;
55:            }
56:
57:            /** The containing parent of this component, or <code>null</code> for the
58:             * UIContainer representing the view root.
59:             */
60:            public UIContainer parent;
61:
62:            /** A list of "decorators" which alter the rendering behaviour of this 
63:             * component, orthogonal to its binding behaviour. Usually <code>null</code>
64:             */
65:            public DecoratorList decorators;
66:
67:            /** Add the supplied decorator to the list for this component, initialising
68:             * the list if necessary.
69:             */
70:            public UIComponent decorate(UIDecorator decorator) {
71:                if (decorators == null) {
72:                    decorators = new DecoratorList();
73:                }
74:                decorators.add(decorator);
75:                return this;
76:            }
77:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.