Source Code Cross Referenced for UILink.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:        /**
07:         * Peers with any tag/control in markup which is associated with a URL. In HTML,
08:         * for example, these controls are links(<a>), <img>, <frame>,
09:         * <iframe> and <script> tags. In the case the component simple
10:         * navigational link, operating this link is expected to give rise to an
11:         * idempotent ("render") request. In the case where the control accepts some
12:         * text (links), this may be supplied as the <code>linktext</code> field,
13:         * which may be either a direct String value or a bound String such as a
14:         * {@link UIMessage}. For more complex command contents including bound ones,
15:         * leave <code>linktext</code> as null and add rendering components as childen
16:         * of the link in the template.
17:         * 
18:         * @author Antranig Basman (antranig@caret.cam.ac.uk)
19:         */
20:        public class UILink extends UIComponent {
21:            /**
22:             * A string representing the target of this link - e.g. in an HTML system, a
23:             * URL. In HTML in particular, the special prefix $context/ will be resolved
24:             * onto the context for the current webapp - that is, the directory
25:             * immediately above WEB-INF.
26:             * 
27:             * <p/> For an InternalLink this will be filled in by a fixup from the
28:             * ViewParameters member.
29:             */
30:            public UIBoundString target;
31:
32:            /** A bound String representing any text to be rendered for this control * */
33:            public UIBoundString linktext;
34:
35:            /**
36:             * Construct a navigation link.
37:             * 
38:             * @param parent Container to which the link is to be added.
39:             * @param ID RSF ID of this link.
40:             * @param text Text to be rendered for this link.
41:             * @param target
42:             * @see {@link #target}
43:             */
44:            public static UILink make(UIContainer parent, String ID,
45:                    String linktext, String target) {
46:                UIBoundString linktextnew = null;
47:                if (linktext != null) {
48:                    linktextnew = new UIOutput();
49:                    linktextnew.setValue(linktext);
50:                }
51:                return make(parent, ID, linktextnew, target);
52:            }
53:
54:            /**
55:             * Construct a navigation link with a bound control (e.g. UIMessage) forming
56:             * the link text.
57:             */
58:            public static UILink make(UIContainer parent, String ID,
59:                    UIBoundString linktext, String target) {
60:                UILink togo = new UILink();
61:                togo.ID = ID;
62:                togo.target = new UIOutput();
63:                if (target != null) {
64:                    togo.target.setValue(target);
65:                }
66:                togo.linktext = linktext;
67:                parent.addComponent(togo);
68:                return togo;
69:            }
70:
71:            /**
72:             * Construct a navigation link which will leave nested markup unchanged from
73:             * the template.
74:             */
75:            public static UILink make(UIContainer parent, String ID,
76:                    String target) {
77:                return make(parent, ID, (UIBoundString) null, target);
78:            }
79:
80:            /**
81:             * Construct a navigation link which will leave both link target and nested
82:             * markup unchanged from the template. This is useful, say, for conditionally
83:             * rendering a relative link from the template.
84:             */
85:            public static UILink make(UIContainer parent, String ID) {
86:                return make(parent, ID, (UIBoundString) null, null);
87:            }
88:
89:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.