Source Code Cross Referenced for ChannelMode.java in  » Portal » Open-Portal » com » sun » portal » container » 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 » Portal » Open Portal » com.sun.portal.container 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2002 Sun Microsystems, Inc. All
003:         * rights reserved. Use of this product is subject
004:         * to license terms. Federal Acquisitions:
005:         * Commercial Software -- Government Users
006:         * Subject to Standard License Terms and
007:         * Conditions.
008:         *
009:         * Sun, Sun Microsystems, the Sun logo, and Sun ONE
010:         * are trademarks or registered trademarks of Sun Microsystems,
011:         * Inc. in the United States and other countries.
012:         */
013:
014:        package com.sun.portal.container;
015:
016:        /**
017:         * The <CODE>ChannelMode</CODE> class is represents
018:         * the possible modes that a channel can assume.
019:         * <P>
020:         * This class defines a standard set of the most basic channel modes.
021:         * Additional channel modes may be defined by calling the constructor
022:         * of this class.
023:         */
024:        public class ChannelMode {
025:            /**
026:             * The standard "one-of many" channel view on a page.
027:             * <P>
028:             * This mode must be implemented by the channel.
029:             * <p>
030:             * The string value for this mode is "VIEW".
031:             */
032:            public final static ChannelMode VIEW = new ChannelMode("VIEW");
033:
034:            /**
035:             * This mode allows the channel to capture user-specific
036:             * parameterization, which leads to a personalized view of the
037:             * channel.
038:             * <P>
039:             * This mode may be implemented by the channel.
040:             * <p>
041:             * The string value for this mode is "EDIT".
042:             */
043:            public final static ChannelMode EDIT = new ChannelMode("EDIT");
044:
045:            /**
046:             * A channel should provide useful online help in this mode.
047:             * This may be a short description or a multi-page instruction on
048:             * how to use the channel.
049:             * <P>
050:             * This mode may be implemented by the channel.
051:             * <p>
052:             * The string value for this mode is "HELP".
053:             */
054:            public final static ChannelMode HELP = new ChannelMode("HELP");
055:
056:            /**
057:             * Allows the channel to bring its own configuration 
058:             * screen if required. Only a user with administrator privileges should
059:             * be able to call a channel in this mode.
060:             * <P>
061:             * This mode may be implemented by the channel, but the channel 
062:             * cannot be sure that this mode is called, as the channel 
063:             * container it is running in may not support this mode.
064:             * <p>
065:             * The string value for this mode is "CONFIG".
066:             */
067:            public final static ChannelMode CONFIG = new ChannelMode("CONFIG");
068:
069:            private String _name;
070:
071:            private ChannelMode() {
072:            }
073:
074:            /**
075:             * Creates a new channel mode with the given name.<br>
076:             * Lower case letters in the name will be converted to
077:             * upper case letters.
078:             *
079:             * @param name The name of the channel mode
080:             */
081:            public ChannelMode(String name) {
082:                if (name == null) {
083:                    throw new IllegalArgumentException(
084:                            "ChannelMode name can not be NULL");
085:                }
086:                _name = name.toUpperCase();
087:            }
088:
089:            public String toString() {
090:                return _name;
091:            }
092:
093:            public int hashCode() {
094:                return _name.hashCode();
095:            }
096:
097:            public boolean equals(Object object) {
098:                return _name.equals(((ChannelMode) object)._name);
099:            }
100:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.