Source Code Cross Referenced for HeaderItem.java in  » Mail-Clients » columba-1.4 » org » columba » addressbook » facade » 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 » Mail Clients » columba 1.4 » org.columba.addressbook.facade 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // The contents of this file are subject to the Mozilla Public License Version
002:        // 1.1
003:        //(the "License"); you may not use this file except in compliance with the
004:        //License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
005:        //
006:        //Software distributed under the License is distributed on an "AS IS" basis,
007:        //WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
008:        //for the specific language governing rights and
009:        //limitations under the License.
010:        //
011:        //The Original Code is "The Columba Project"
012:        //
013:        //The Initial Developers of the Original Code are Frederik Dietz and Timo
014:        // Stich.
015:        //Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
016:        //
017:        //All Rights Reserved.
018:        package org.columba.addressbook.facade;
019:
020:        /**
021:         * Convenience class implementation of IHeaderItem. This implementation class can be used by clients
022:         * of the addressbook facade if desired, or can be implemented differently, if necessary.
023:         */
024:        public class HeaderItem implements  IHeaderItem {
025:
026:            private String id;
027:
028:            private String name;
029:
030:            private String description;
031:
032:            private boolean contact;
033:
034:            public HeaderItem() {
035:
036:            }
037:
038:            public HeaderItem(boolean contact) {
039:                this .contact = contact;
040:            }
041:
042:            public HeaderItem(String id, boolean contact) {
043:                if (id == null)
044:                    throw new IllegalArgumentException("id == null");
045:
046:                this .id = id;
047:                this .contact = contact;
048:            }
049:
050:            /**
051:             * @param id
052:             *            contact unique id as generated by contact store
053:             * @param name
054:             *            displayname
055:             * @param description
056:             *            description, can be used as tooltip
057:             * @param contact
058:             *            true, if a contact item. False, otherwise.
059:             */
060:            public HeaderItem(String id, String name, String description,
061:                    boolean contact) {
062:                this (id, contact);
063:
064:                if (name == null)
065:                    throw new IllegalArgumentException("name == null");
066:                if (description == null)
067:                    throw new IllegalArgumentException("description == null");
068:
069:                this .name = name;
070:                this .description = description;
071:            }
072:
073:            public String getId() {
074:                return id;
075:            }
076:
077:            /* (non-Javadoc)
078:             * @see org.columba.addressbook.facade.IHeaderItem#setId(java.lang.String)
079:             */
080:            public void setId(String id) {
081:                this .id = id;
082:            }
083:
084:            public String getName() {
085:                return name;
086:            }
087:
088:            public String getDescription() {
089:                return description;
090:            }
091:
092:            public boolean isContact() {
093:                return contact;
094:            }
095:
096:            public void setName(String name) {
097:                this .name = name;
098:            }
099:
100:            public void setDescription(String description) {
101:                this .description = description;
102:            }
103:
104:            public Object clone() {
105:                IHeaderItem item = null;
106:                try {
107:                    item = (IHeaderItem) super .clone();
108:                } catch (CloneNotSupportedException e) {
109:                    // This should never happen since superclass is Object
110:                    e.printStackTrace();
111:                }
112:                return item;
113:            }
114:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.