Java Doc for MutableNodeHierarchy.java in  » Project-Management » OpenProj » com » projity » grouping » core » hierarchy » 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 » Project Management » OpenProj » com.projity.grouping.core.hierarchy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.projity.grouping.core.hierarchy.AbstractMutableNodeHierarchy
      com.projity.grouping.core.hierarchy.MutableNodeHierarchy

MutableNodeHierarchy
public class MutableNodeHierarchy extends AbstractMutableNodeHierarchy (Code)
A map that holds the parent-children relationship. Also implements TreeModel so it can be used to generate trees, such as in outline cells or popup trees.


Field Summary
public static  intDEFAULT_NB_END_VOID_NODES
    
public static  intDEFAULT_NB_MULTIPROJECT_END_VOID_NODES
    
protected transient  EventListenerListlistenerList
    
protected  intnbEndVoidNodes
    
protected  intnbMultiprojectEndVoidNodes
    

Constructor Summary
public  MutableNodeHierarchy()
    

Method Summary
public  voidadd(Node parent, List children, int position, int actionType)
    
public static  voidaddDescendants(Node node, List descendants)
    
public static  voidaddDescendants(List nodes, List descendants)
    
public  voidaddTreeModelListener(TreeModelListener l)
     Adds a listener for the TreeModelEvent posted after the tree changes.
public  voidcheckEndVoidNodes(int actionType)
    
public  voidcheckEndVoidNodes(boolean subproject, int actionType)
    
protected  booleancheckSubprojectEndVoidNodes(Node parent, List inserted)
    
public  voidcleanVoidChildren()
    
public  Objectclone()
    
public  voidfireInsertion(Node[] nodes)
    
public  voidfireRemoval(Node[] nodes)
    
public  voidfireUpdate()
    
public  voidfireUpdate(Node[] nodes)
    
public  ListgetChildren(Node parent)
    
public  intgetLevel(Node node)
    
public  intgetNbEndVoidNodes()
    
public  NodegetParent(Node child)
    
public  ObjectgetRoot()
    
public  voidindent(List nodes, int deltaLevel, NodeModel model, int actionType)
    
public static  booleanisEvent(int actionType)
    
public  booleanisLeaf(Object node)
    
public  booleanisSummary(Node node)
    
public static  booleanisUndo(int actionType)
    
public  voidmove(Node node, Node newParent, int actionType)
    
public  voidpaste(Node parent, List children, int position, NodeModel model, int actionType)
    
public  voidremove(List nodes, NodeModel model, int actionType, boolean removeDependencies)
     Remove nodes.
public  voidremoveAll(NodeModel model, int actionType)
    
public  voidremoveTreeModelListener(TreeModelListener l)
     Removes a listener previously added with addTreeModelListener().
public  Nodesearch(Object key, Comparator c)
    
public  voidsetNbEndVoidNodes(int nbEndVoidNodes)
    
Parameters:
  nbEndVoidNodes - The nbEndVoidNodes to set.
public  voidvalueForPathChanged(TreePath path, Object newValue)
    

Field Detail
DEFAULT_NB_END_VOID_NODES
public static int DEFAULT_NB_END_VOID_NODES(Code)



DEFAULT_NB_MULTIPROJECT_END_VOID_NODES
public static int DEFAULT_NB_MULTIPROJECT_END_VOID_NODES(Code)



listenerList
protected transient EventListenerList listenerList(Code)



nbEndVoidNodes
protected int nbEndVoidNodes(Code)



nbMultiprojectEndVoidNodes
protected int nbMultiprojectEndVoidNodes(Code)




Constructor Detail
MutableNodeHierarchy
public MutableNodeHierarchy()(Code)




Method Detail
add
public void add(Node parent, List children, int position, int actionType)(Code)



addDescendants
public static void addDescendants(Node node, List descendants)(Code)



addDescendants
public static void addDescendants(List nodes, List descendants)(Code)



addTreeModelListener
public void addTreeModelListener(TreeModelListener l)(Code)
Adds a listener for the TreeModelEvent posted after the tree changes.
See Also:   MutableNodeHierarchy.removeTreeModelListener
Parameters:
  l - the listener to add



checkEndVoidNodes
public void checkEndVoidNodes(int actionType)(Code)



checkEndVoidNodes
public void checkEndVoidNodes(boolean subproject, int actionType)(Code)
Check if void nodes have to be added to respect nbEndVoidNodes
Parameters:
  event -



checkSubprojectEndVoidNodes
protected boolean checkSubprojectEndVoidNodes(Node parent, List inserted)(Code)



cleanVoidChildren
public void cleanVoidChildren()(Code)



clone
public Object clone()(Code)



fireInsertion
public void fireInsertion(Node[] nodes)(Code)



fireRemoval
public void fireRemoval(Node[] nodes)(Code)



fireUpdate
public void fireUpdate()(Code)



fireUpdate
public void fireUpdate(Node[] nodes)(Code)



getChildren
public List getChildren(Node parent)(Code)



getLevel
public int getLevel(Node node)(Code)



getNbEndVoidNodes
public int getNbEndVoidNodes()(Code)
Returns the nbEndVoidNodes.



getParent
public Node getParent(Node child)(Code)



getRoot
public Object getRoot()(Code)



indent
public void indent(List nodes, int deltaLevel, NodeModel model, int actionType)(Code)



isEvent
public static boolean isEvent(int actionType)(Code)



isLeaf
public boolean isLeaf(Object node)(Code)



isSummary
public boolean isSummary(Node node)(Code)



isUndo
public static boolean isUndo(int actionType)(Code)



move
public void move(Node node, Node newParent, int actionType)(Code)



paste
public void paste(Node parent, List children, int position, NodeModel model, int actionType)(Code)



remove
public void remove(List nodes, NodeModel model, int actionType, boolean removeDependencies)(Code)
Remove nodes. This will wrap the call in a multiple transaction if there are many calls so as not to recalculate each time. In case end void nodes were removed, they will be put back



removeAll
public void removeAll(NodeModel model, int actionType)(Code)



removeTreeModelListener
public void removeTreeModelListener(TreeModelListener l)(Code)
Removes a listener previously added with addTreeModelListener().
See Also:   MutableNodeHierarchy.addTreeModelListener
Parameters:
  l - the listener to remove



search
public Node search(Object key, Comparator c)(Code)



setNbEndVoidNodes
public void setNbEndVoidNodes(int nbEndVoidNodes)(Code)

Parameters:
  nbEndVoidNodes - The nbEndVoidNodes to set. If -1, then use default



valueForPathChanged
public void valueForPathChanged(TreePath path, Object newValue)(Code)



Fields inherited from com.projity.grouping.core.hierarchy.AbstractMutableNodeHierarchy
protected EventListenerList hierarchyListenerList(Code)(Java Doc)
protected int updateLevel(Code)(Java Doc)

Methods inherited from com.projity.grouping.core.hierarchy.AbstractMutableNodeHierarchy
public void addHierarchyListener(HierarchyListener l)(Code)(Java Doc)
protected synchronized void beginUpdate()(Code)(Java Doc)
abstract public Object clone()(Code)(Java Doc)
public void dump()(Code)(Java Doc)
public void dump(StringBuffer buf)(Code)(Java Doc)
protected synchronized void endUpdate()(Code)(Java Doc)
protected void fireNodesChanged(Object source, Object[] nodes, Object[] oldNodes, Object flag)(Code)(Java Doc)
protected void fireNodesChanged(Object source, Object[] nodes)(Code)(Java Doc)
protected void fireNodesInserted(Object source, Object[] nodes, Object[] oldNodes, Object flag)(Code)(Java Doc)
protected void fireNodesInserted(Object source, Object[] nodes)(Code)(Java Doc)
protected void fireNodesRemoved(Object source, Object[] nodes, Object[] oldNodes, Object flag)(Code)(Java Doc)
protected void fireNodesRemoved(Object source, Object[] nodes)(Code)(Java Doc)
protected void fireStructureChanged(Object source)(Code)(Java Doc)
public Object getChild(Object parent, int index)(Code)(Java Doc)
public int getChildCount(Object parent)(Code)(Java Doc)
public HierarchyListener[] getHierarchyListeners()(Code)(Java Doc)
public EventListener[] getHierarchyListeners(Class listenerType)(Code)(Java Doc)
public int getIndexOfChild(Object parent, Object child)(Code)(Java Doc)
public int getIndexOfNode(Node key, boolean skipVoid)(Code)(Java Doc)
public Node getNext(Node current)(Code)(Java Doc)
public Node getPrevious(Node current)(Code)(Java Doc)
abstract public Object getRoot()(Code)(Java Doc)
protected synchronized int getUpdateLevel()(Code)(Java Doc)
public Iterator iterator(Node rootNode)(Code)(Java Doc)
public Iterator iterator()(Code)(Java Doc)
public void removeHierarchyListener(HierarchyListener l)(Code)(Java Doc)
public void renumber()(Code)(Java Doc)
public Iterator shallowIterator(int maxLevel, boolean returnRoot)(Code)(Java Doc)
public List toList(boolean isNode, Predicate filter)(Code)(Java Doc)
public void visitAll(Closure visitor)(Code)(Java Doc)
public void visitAll(Node parent, Closure visitor)(Code)(Java Doc)
public void visitAll(Node parent, boolean skipLazyParents, Closure visitor)(Code)(Java Doc)
public void visitAll(boolean first, Node parent, boolean skipLazyParents, Closure visitor)(Code)(Java Doc)
public void visitAllLevelOrder(Node parent, boolean skipLazyParents, Closure visitor)(Code)(Java Doc)
public void visitAllLevelOrder(boolean first, Node parent, boolean skipLazyParents, Closure visitor)(Code)(Java Doc)
public void visitLeaves(Node node, Closure visitor)(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.