Java Doc for AbstractFolder.java in  » Mail-Clients » columba-1.4 » org » columba » mail » folder » 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.mail.folder 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.tree.DefaultMutableTreeNode
      org.columba.mail.folder.AbstractFolder

All known Subclasses:   org.columba.mail.folder.LocalRootFolder,  org.columba.mail.folder.Root,  org.columba.mail.folder.AbstractMessageFolder,  org.columba.mail.folder.imap.IMAPRootFolder,
AbstractFolder
abstract public class AbstractFolder extends DefaultMutableTreeNode implements IMailFolder(Code)
Represents a treenode and is the abstract class every folder extends.

See tree.xml configuration file.
author:
   fdietz



Field Summary
protected  EventListenerListlistenerList
    
protected  LockmyLock
    
protected  IFolderItemnode
    

Constructor Summary
public  AbstractFolder(String name, String type)
    
public  AbstractFolder()
    
public  AbstractFolder(FolderItem node)
    

Method Summary
public  voidadd(IMailFolder treeNode)
    
public  voidaddFolderListener(IFolderListener l)
     Adds a listener.
public  voidaddSubfolder(IMailFolder child)
     Adds a child folder to this folder.
public  AbstractFolderfindChildWithName(String str, boolean recurse)
    
public  AbstractFolderfindChildWithName(String str, boolean recurse, Class type)
    
public  AbstractFolderfindChildWithUID(String uid, boolean recurse)
    
public  voidfireFolderAdded(IMailFolder folder)
     Propagates an event to all registered listeners notifying them that a subfolder has been added to this folder.
public  voidfireFolderPropertyChanged()
     Propagates an event to all registered listeners notifying them that this folder has been renamed.
public  voidfireFolderRemoved()
     Propagates an event to all registered listeners notifying them that this folder has been removed from its parent folder.
public  IFolderItemgetConfiguration()
     Returns the folder's configuration.
public  StringgetId()
     Returns the folder's UID.
public  StringgetName()
     Returns the folder's name.
protected  TreeNode[]getPathToRoot(TreeNode aNode, int depth)
    
public  IMailFoldergetRootFolder()
     Return the root folder of this folder.

This is especially useful when using IMAP.

public  TreePathgetSelectionTreePath()
     Method getSelectionTreePath.
public  StringgetTreePath()
    
public  StringgetType()
    
public  voidinsert(IMailFolder newFolder, int newIndex)
    
public  voidmoveTo(IMailFolder newParent)
    
public  voidreleaseLock(Object locker)
    
public  voidremoveFolder()
     Removes this folder from its parent.
public  voidremoveFolderListener(IFolderListener l)
     Removes a previously registered listener.
public  voidsetConfiguration(IFolderItem node)
     Sets the folder's configuration.
public  voidsetName(String newName)
     Sets the folder's name.
public  booleansupportsAddFolder(String newFolderType)
     Returns true if this folder can have sub folders of the specified type; false otherwise.
Parameters:
  newFolderType - the folder that is going to be inserted as a child.
public  booleansupportsAddMessage()
    
public  booleansupportsMove()
     Returns true if this folder type can be moved around in the folder tree.
public  StringtoString()
    
public  booleantryToGetLock(Object locker)
    

Field Detail
listenerList
protected EventListenerList listenerList(Code)



myLock
protected Lock myLock(Code)



node
protected IFolderItem node(Code)




Constructor Detail
AbstractFolder
public AbstractFolder(String name, String type)(Code)



AbstractFolder
public AbstractFolder()(Code)



AbstractFolder
public AbstractFolder(FolderItem node)(Code)




Method Detail
add
public void add(IMailFolder treeNode)(Code)
Overwritten DefaultMutableTreeNode.add(MutableTreeNode) in favor of our interface
See Also:   org.columba.mail.folder.IMailFolder.add(org.columba.mail.folder.IMailFolder)



addFolderListener
public void addFolderListener(IFolderListener l)(Code)
Adds a listener.



addSubfolder
public void addSubfolder(IMailFolder child) throws Exception(Code)
Adds a child folder to this folder. This method will notify registered FolderListeners.



findChildWithName
public AbstractFolder findChildWithName(String str, boolean recurse)(Code)



findChildWithName
public AbstractFolder findChildWithName(String str, boolean recurse, Class type)(Code)



findChildWithUID
public AbstractFolder findChildWithUID(String uid, boolean recurse)(Code)



fireFolderAdded
public void fireFolderAdded(IMailFolder folder)(Code)
Propagates an event to all registered listeners notifying them that a subfolder has been added to this folder.



fireFolderPropertyChanged
public void fireFolderPropertyChanged()(Code)
Propagates an event to all registered listeners notifying them that this folder has been renamed.



fireFolderRemoved
public void fireFolderRemoved()(Code)
Propagates an event to all registered listeners notifying them that this folder has been removed from its parent folder. This method removes all registered listeners.



getConfiguration
public IFolderItem getConfiguration()(Code)
Returns the folder's configuration.



getId
public String getId()(Code)
Returns the folder's UID.



getName
public String getName()(Code)
Returns the folder's name.



getPathToRoot
protected TreeNode[] getPathToRoot(TreeNode aNode, int depth)(Code)

See Also:   javax.swing.tree.DefaultMutableTreeNode.getPathToRoot(TreeNodeint)



getRootFolder
public IMailFolder getRootFolder()(Code)
Return the root folder of this folder.

This is especially useful when using IMAP. IMAP has a root folder which is labelled with the account name. root parent folder of this folder




getSelectionTreePath
public TreePath getSelectionTreePath()(Code)
Method getSelectionTreePath. TreePath



getTreePath
public String getTreePath()(Code)
Return tree path as string String tree path



getType
public String getType()(Code)



insert
public void insert(IMailFolder newFolder, int newIndex)(Code)
treenode management



moveTo
public void moveTo(IMailFolder newParent)(Code)
AbstractFolder wraps XmlElement all treenode manipulation is passed to the corresponding XmlElement



releaseLock
public void releaseLock(Object locker)(Code)



removeFolder
public void removeFolder() throws Exception(Code)
Removes this folder from its parent. This method will notify registered FolderListeners.



removeFolderListener
public void removeFolderListener(IFolderListener l)(Code)
Removes a previously registered listener.



setConfiguration
public void setConfiguration(IFolderItem node)(Code)
Sets the folder's configuration.



setName
public void setName(String newName) throws Exception(Code)
Sets the folder's name. This method notifies registered FolderListeners.



supportsAddFolder
public boolean supportsAddFolder(String newFolderType)(Code)
Returns true if this folder can have sub folders of the specified type; false otherwise.
Parameters:
  newFolderType - the folder that is going to be inserted as a child. true if this folder can have sub folders; false otherwise.



supportsAddMessage
public boolean supportsAddMessage()(Code)
Does this treenode support adding messages? true, if this folder is able to contain messages, false otherwise



supportsMove
public boolean supportsMove()(Code)
Returns true if this folder type can be moved around in the folder tree. true if this folder type can be moved around in the folder tree.



toString
public String toString()(Code)



tryToGetLock
public boolean tryToGetLock(Object locker)(Code)
locking mechanism



Fields inherited from javax.swing.tree.DefaultMutableTreeNode
final public static Enumeration<TreeNode> EMPTY_ENUMERATION(Code)(Java Doc)
protected boolean allowsChildren(Code)(Java Doc)
protected Vector children(Code)(Java Doc)
protected MutableTreeNode parent(Code)(Java Doc)
protected transient Object userObject(Code)(Java Doc)

Methods inherited from javax.swing.tree.DefaultMutableTreeNode
public void add(MutableTreeNode newChild)(Code)(Java Doc)
public Enumeration breadthFirstEnumeration()(Code)(Java Doc)
public Enumeration children()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public Enumeration depthFirstEnumeration()(Code)(Java Doc)
public boolean getAllowsChildren()(Code)(Java Doc)
public TreeNode getChildAfter(TreeNode aChild)(Code)(Java Doc)
public TreeNode getChildAt(int index)(Code)(Java Doc)
public TreeNode getChildBefore(TreeNode aChild)(Code)(Java Doc)
public int getChildCount()(Code)(Java Doc)
public int getDepth()(Code)(Java Doc)
public TreeNode getFirstChild()(Code)(Java Doc)
public DefaultMutableTreeNode getFirstLeaf()(Code)(Java Doc)
public int getIndex(TreeNode aChild)(Code)(Java Doc)
public TreeNode getLastChild()(Code)(Java Doc)
public DefaultMutableTreeNode getLastLeaf()(Code)(Java Doc)
public int getLeafCount()(Code)(Java Doc)
public int getLevel()(Code)(Java Doc)
public DefaultMutableTreeNode getNextLeaf()(Code)(Java Doc)
public DefaultMutableTreeNode getNextNode()(Code)(Java Doc)
public DefaultMutableTreeNode getNextSibling()(Code)(Java Doc)
public TreeNode getParent()(Code)(Java Doc)
public TreeNode[] getPath()(Code)(Java Doc)
protected TreeNode[] getPathToRoot(TreeNode aNode, int depth)(Code)(Java Doc)
public DefaultMutableTreeNode getPreviousLeaf()(Code)(Java Doc)
public DefaultMutableTreeNode getPreviousNode()(Code)(Java Doc)
public DefaultMutableTreeNode getPreviousSibling()(Code)(Java Doc)
public TreeNode getRoot()(Code)(Java Doc)
public TreeNode getSharedAncestor(DefaultMutableTreeNode aNode)(Code)(Java Doc)
public int getSiblingCount()(Code)(Java Doc)
public Object getUserObject()(Code)(Java Doc)
public Object[] getUserObjectPath()(Code)(Java Doc)
public void insert(MutableTreeNode newChild, int childIndex)(Code)(Java Doc)
public boolean isLeaf()(Code)(Java Doc)
public boolean isNodeAncestor(TreeNode anotherNode)(Code)(Java Doc)
public boolean isNodeChild(TreeNode aNode)(Code)(Java Doc)
public boolean isNodeDescendant(DefaultMutableTreeNode anotherNode)(Code)(Java Doc)
public boolean isNodeRelated(DefaultMutableTreeNode aNode)(Code)(Java Doc)
public boolean isNodeSibling(TreeNode anotherNode)(Code)(Java Doc)
public boolean isRoot()(Code)(Java Doc)
public Enumeration pathFromAncestorEnumeration(TreeNode ancestor)(Code)(Java Doc)
public Enumeration postorderEnumeration()(Code)(Java Doc)
public Enumeration preorderEnumeration()(Code)(Java Doc)
public void remove(int childIndex)(Code)(Java Doc)
public void remove(MutableTreeNode aChild)(Code)(Java Doc)
public void removeAllChildren()(Code)(Java Doc)
public void removeFromParent()(Code)(Java Doc)
public void setAllowsChildren(boolean allows)(Code)(Java Doc)
public void setParent(MutableTreeNode newParent)(Code)(Java Doc)
public void setUserObject(Object userObject)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.