Source Code Cross Referenced for JwmaFolder.java in  » Web-Mail » Jwma » dtw » webmail » model » 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 Mail » Jwma » dtw.webmail.model 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /***
002:         * jwma Java WebMail
003:         * Copyright (c) 2000-2003 jwma team
004:         *
005:         * jwma is free software; you can distribute and use this source
006:         * under the terms of the BSD-style license received along with
007:         * the distribution.
008:         ***/package dtw.webmail.model;
009:
010:        import javax.mail.Folder;
011:
012:        /**
013:         * An interface defining the contract for interaction with
014:         * the JwmaFolder model.
015:         * <p>
016:         * The JwmaFolder allows a view programmer to obtain
017:         * information about a folder.
018:         *
019:         * @author Dieter Wimberger
020:         * @version 0.9.7 07/02/2003
021:         */
022:        public interface JwmaFolder {
023:
024:            /**
025:             * Returns a <tt>String</tt> representing the name
026:             * of this folder.
027:             *
028:             * @return the name of this folder as String.
029:             */
030:            public String getName();
031:
032:            /**
033:             * Returns a <tt>String</tt> representing the path
034:             * of this folder object.
035:             *
036:             * @return the path of this folder as String.
037:             */
038:            public String getPath();
039:
040:            /**
041:             * Returns an <tt>int</tt> representing the type
042:             * of this folder.
043:             *
044:             * @return the type of this folder object as <tt>int</tt>.
045:             */
046:            public int getType();
047:
048:            /**
049:             * Tests if this folder is of a given type.
050:             *
051:             * @return true if this folder is of the given type, false otherwise.
052:             */
053:            public boolean isType(int type);
054:
055:            /**
056:             * Tests if this folder contains subfolders.
057:             *
058:             * @return true if this folder contains subfolders, false otherwise.
059:             */
060:            public boolean hasSubfolders();
061:
062:            /**
063:             * Tests if this folder object contains messages.
064:             *
065:             * @return true if this folder contains messages, false otherwise.
066:             */
067:            public boolean hasMessages();
068:
069:            /**
070:             * Tests if this folder is subscribed.
071:             *
072:             * @return true if subscribed, false otherwise.
073:             */
074:            public boolean isSubscribed();
075:
076:            /**
077:             * Returns a<tt>JwmaFolder[]</tt> containing all subfolders of
078:             * the given type within this folder, observing subscription.
079:             * <p>
080:             * If the store does not contain any matching folder, then this
081:             * method returns an empty array. Otherwise it contains
082:             * one <tt>JwmaFolder</tt> for each subfolder of the given type.
083:             *
084:             * @return a <tt>JwmaFolder[]</tt> containing all subfolders of
085:             *         the given type within this folder. The array will be
086:             *         empty if there are none.
087:             */
088:            public JwmaFolder[] listSubfolders(int type, boolean subscribed);
089:
090:            /**
091:             * Returns a<tt>JwmaFolder[]</tt> containing all subfolders of
092:             * the given type within this folder.
093:             * <p>
094:             * If the store does not contain any matching folder, then this
095:             * method returns an empty array. Otherwise it contains
096:             * one <tt>JwmaFolder</tt> for each subfolder of the given type.
097:             *
098:             * @return a <tt>JwmaFolder[]</tt> containing all subfolders of
099:             *         the given type within this folder. The array will be
100:             *         empty if there are none.
101:             */
102:            public JwmaFolder[] listSubfolders(int type);
103:
104:            /**
105:             * Convenience method that returns a<tt>JwmaFolder[]</tt>
106:             * containing all subfolders within this folder.
107:             * <p>
108:             * If this folder does not contain any subfolder, then this
109:             * method returns an empty array. Otherwise it contains
110:             * one <tt>JwmaFolder</tt> for each subfolder.
111:             *
112:             * @return a <tt>JwmaFolder[]</tt> containing all subfolders of
113:             *         this folder. The array will be empty if there are none.
114:             */
115:            public JwmaFolder[] listSubfolders();
116:
117:            /**
118:             * Returns a <tt>JwmaMessageInfo[]</tt>.
119:             * <p>
120:             * If this folder does not contain any messages, then this
121:             * method returns an empty array. Otherwise it contains
122:             * one <tt>JwmaMessageInfo</tt> instance for each message
123:             * in this folder, encapsulating all necessary information
124:             * for list displaying of the message.
125:             *
126:             * @return a <tt>JwmaMessageInfo[]</tt> containing a info instance
127:             *         for each message in this folder. The array will be empty if
128:             *         there are no messages in this folder.
129:             *
130:             * @see dtw.webmail.model.JwmaMessageInfo
131:             */
132:            public JwmaMessageInfo[] listMessageInfos();
133:
134:            /**
135:             * Defines folder type that can only hold messages.
136:             */
137:            public static final int TYPE_MAILBOX = Folder.HOLDS_MESSAGES;
138:
139:            /**
140:             * Defines folder type that can only hold folders.
141:             */
142:            public static final int TYPE_FOLDER = Folder.HOLDS_FOLDERS;
143:
144:            /**
145:             * Defines folder type that can hold messages and folders.
146:             */
147:            public static final int TYPE_MIXED = TYPE_MAILBOX + TYPE_FOLDER;
148:
149:            /**
150:             * Defines a virtual type that represents all folders that
151:             * can hold messages.
152:             */
153:            public static final int TYPE_MESSAGE_CONTAINER = TYPE_MAILBOX
154:                    + TYPE_MIXED;
155:
156:            /**
157:             * Defines a virtual type that represents all folders that can
158:             * hold folders.
159:             */
160:            public static final int TYPE_FOLDER_CONTAINER = TYPE_FOLDER
161:                    + TYPE_MIXED;
162:
163:            /**
164:             * Defines a virtual type that represents all of the above.
165:             */
166:            public static final int TYPE_ALL = 10;
167:
168:        }//JwmaFolder
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.