Java Doc for TreePathSupport.java in  » IDE-Netbeans » web.core » org » netbeans » swing » outline » 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 » IDE Netbeans » web.core » org.netbeans.swing.outline 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.swing.outline.TreePathSupport

TreePathSupport
final public class TreePathSupport (Code)
Manages expanded/collapsed paths for the Outline. Provides services similar to those JTree implements inside its own class body. Propagates changes in expanded state to the layout cache.

Principally what this class does is manage the state of expanded paths which are not visible, or whose parents have been closed/opened. Whereas the layout cache retains information only about what is visibly expanded, this class manages information about any path that has been expanded at some point in the lifetime of an Outline, so that for example, if A contains B contains C, and A and B and C are expanded, then the user collapses A, and later reëexpands A, B and C will retain their expanded state and appear as they did the last time A was expanded.

When nodes are removed, the OutlineModel must call removePath() for any defunct paths to avoid memory leaks by the TreePathSupport holding references to defunct nodes and not allowing them to be garbage collected.

Its addTreeWillExpandListener code supports ExtTreeWillExpandListener, so such a listener may be notified if some other listener vetos a pending expansion event.
author:
   Tim Boudreau




Constructor Summary
public  TreePathSupport(OutlineModel mdl, AbstractLayoutCache layout)
    

Method Summary
public synchronized  voidaddTreeExpansionListener(TreeExpansionListener l)
     Add a TreeExpansionListener.
public synchronized  voidaddTreeWillExpandListener(TreeExpansionListener l)
    
public  voidclear()
     Clear all expanded path data.
public  voidcollapsePath(TreePath path)
     Collapse a path.
public  voidexpandPath(TreePath path)
     Expand a path.
protected  TreePath[]getDescendantToggledPaths(TreePath parent)
    
public  TreePath[]getExpandedDescendants(TreePath parent)
    
public  booleanhasBeenExpanded(TreePath path)
    
public  booleanisExpanded(TreePath path)
    
public  booleanisVisible(TreePath path)
    
protected  voidremoveDescendantToggledPaths(Enumeration toRemove)
    
public  voidremovePath(TreePath path)
     Remove a path's data from the list of known paths.
public synchronized  voidremoveTreeExpansionListener(TreeExpansionListener l)
    
public synchronized  voidremoveTreeWillExpandListener(TreeExpansionListener l)
    


Constructor Detail
TreePathSupport
public TreePathSupport(OutlineModel mdl, AbstractLayoutCache layout)(Code)
Creates a new instance of TreePathSupport




Method Detail
addTreeExpansionListener
public synchronized void addTreeExpansionListener(TreeExpansionListener l)(Code)
Add a TreeExpansionListener. If the TreeWillExpandListener implements ExtTreeExpansionListener, it will be notified if another TreeWillExpandListener vetoes the expansion event



addTreeWillExpandListener
public synchronized void addTreeWillExpandListener(TreeExpansionListener l)(Code)



clear
public void clear()(Code)
Clear all expanded path data. This is called if the tree model fires a structural change, and any or all of the nodes it contains may no longer be present.



collapsePath
public void collapsePath(TreePath path)(Code)
Collapse a path. Notifies the layout cache of the change, stores the expanded path info (so reexpanding a parent node also reexpands this path if a parent node containing it is later collapsed). Fires TreeWillExpand and TreeExpansion events.



expandPath
public void expandPath(TreePath path)(Code)
Expand a path. Notifies the layout cache of the change, stores the expanded path info (so reexpanding a parent node also reexpands this path if a parent node containing it is later collapsed). Fires TreeWillExpand and TreeExpansion events.



getDescendantToggledPaths
protected TreePath[] getDescendantToggledPaths(TreePath parent)(Code)



getExpandedDescendants
public TreePath[] getExpandedDescendants(TreePath parent)(Code)



hasBeenExpanded
public boolean hasBeenExpanded(TreePath path)(Code)



isExpanded
public boolean isExpanded(TreePath path)(Code)
Returns true if the node identified by the path is currently expanded,
Parameters:
  path - the TreePath specifying the node to check false if any of the nodes in the node's path are collapsed, true if all nodes in the path are expanded



isVisible
public boolean isVisible(TreePath path)(Code)



removeDescendantToggledPaths
protected void removeDescendantToggledPaths(Enumeration toRemove)(Code)



removePath
public void removePath(TreePath path)(Code)
Remove a path's data from the list of known paths. Called when a tree model deletion event occurs



removeTreeExpansionListener
public synchronized void removeTreeExpansionListener(TreeExpansionListener l)(Code)



removeTreeWillExpandListener
public synchronized void removeTreeWillExpandListener(TreeExpansionListener l)(Code)



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.