Source Code Cross Referenced for AdminPageBean.java in  » Net » openfire » org » jivesoftware » admin » 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 » Net » openfire » org.jivesoftware.admin 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * $RCSfile$
003:         * $Revision: 297 $
004:         * $Date: 2004-11-10 12:13:33 -0800 (Wed, 10 Nov 2004) $
005:         *
006:         * Copyright (C) 2004 Jive Software. All rights reserved.
007:         *
008:         * This software is published under the terms of the GNU Public License (GPL),
009:         * a copy of which is included in this distribution.
010:         */package org.jivesoftware.admin;
011:
012:        import org.jivesoftware.util.StringUtils;
013:
014:        import java.util.Collection;
015:        import java.util.ArrayList;
016:
017:        /**
018:         * A bean to hold page information for the admin console.
019:         */
020:        public class AdminPageBean {
021:
022:            private String title;
023:            private Collection breadcrumbs;
024:            private String pageID;
025:            private String subPageID;
026:            private String extraParams;
027:            private Collection scripts;
028:
029:            public AdminPageBean() {
030:            }
031:
032:            /**
033:             * Returns the title of the page with HTML escaped.
034:             */
035:            public String getTitle() {
036:                if (title != null) {
037:                    return StringUtils.escapeHTMLTags(title);
038:                } else {
039:                    return title;
040:                }
041:            }
042:
043:            /**
044:             * Sets the title of the admin console page.
045:             */
046:            public void setTitle(String title) {
047:                this .title = title;
048:            }
049:
050:            /**
051:             * Returns a collection of breadcrumbs. Use the Collection API to get/set/remove crumbs.
052:             */
053:            public Collection getBreadcrumbs() {
054:                if (breadcrumbs == null) {
055:                    breadcrumbs = new ArrayList();
056:                }
057:                return breadcrumbs;
058:            }
059:
060:            /**
061:             * Returns the page ID (corresponds to sidebar ID's).
062:             */
063:            public String getPageID() {
064:                return pageID;
065:            }
066:
067:            /**
068:             * Sets the ID of the page (corresponds to sidebar ID's).
069:             * @param pageID
070:             */
071:            public void setPageID(String pageID) {
072:                this .pageID = pageID;
073:            }
074:
075:            /**
076:             * Returns the subpage ID (corresponds to sidebar ID's).
077:             */
078:            public String getSubPageID() {
079:                return subPageID;
080:            }
081:
082:            /**
083:             * Sets the subpage ID (corresponds to sidebar ID's).
084:             * @param subPageID
085:             */
086:            public void setSubPageID(String subPageID) {
087:                this .subPageID = subPageID;
088:            }
089:
090:            /**
091:             * Returns a string of extra parameters for the URLs - these might be specific IDs for resources.
092:             */
093:            public String getExtraParams() {
094:                return extraParams;
095:            }
096:
097:            /**
098:             * Sets the string of extra parameters for the URLs.
099:             */
100:            public void setExtraParams(String extraParams) {
101:                this .extraParams = extraParams;
102:            }
103:
104:            /**
105:             * Returns a collection of scripts. Use the Collection API to get/set/remove scripts.
106:             */
107:            public Collection getScripts() {
108:                if (scripts == null) {
109:                    scripts = new ArrayList();
110:                }
111:                return scripts;
112:            }
113:
114:            /**
115:             * A simple model of a breadcrumb. A bread crumb is a link with a display name.
116:             */
117:            public static class Breadcrumb {
118:                private String name;
119:                private String url;
120:
121:                /**
122:                 * Creates a crumb given a name an URL.
123:                 */
124:                public Breadcrumb(String name, String url) {
125:                    this .name = name;
126:                    this .url = url;
127:                }
128:
129:                /**
130:                 * Returns the name, with HTML escaped.
131:                 */
132:                public String getName() {
133:                    if (name != null) {
134:                        return StringUtils.escapeHTMLTags(name);
135:                    } else {
136:                        return name;
137:                    }
138:                }
139:
140:                /**
141:                 * Returns the URL.
142:                 */
143:                public String getUrl() {
144:                    return url;
145:                }
146:            }
147:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.