Java Doc for TreeControl.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » webapp » taglib » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.webapp.taglib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas.webapp.taglib.TreeControl

TreeControl
public class TreeControl implements Serializable(Code)

The overall data structure representing a tree control that can be rendered by the TreeControlTag custom tag. Each node of the tree is represented by an instance of TreeControlNode.


author:
   Jazmin Jonson
author:
   Craig R. McClanahan
version:
   $Revision: 1.4


Field Summary
final public static  StringID_PREFIX
    
protected  intmi_Id
    
protected  HashMapregistry
     The collection of nodes that represent this tree, keyed by name.
protected  TreeControlNoderoot
     The root node of the entire tree.
protected  TreeControlNodeselected
     The most recently selected node.

Constructor Summary
public  TreeControl()
     Construct a new instance with no predefined root node.
public  TreeControl(TreeControlNode root)
     Construct a new instance with the specified root node.

Method Summary
 voidaddNode(TreeControlNode node)
     Register the specified node in our registry of the complete tree.
 voidaddRemovedList(TreeControlNode p_RemovedNode)
     Add the removed node in the removed list.
protected  voidautoRefresh(TreeControlNode p_AddedNode)
     Search the added node in the removed list and if it's found, copy the expanded info.
public  voiddisableAutoRefresh()
     Disable auto-refresh mode.
public  voidenableAutoRefresh()
     Enable auto-refresh mode.
public  voidexpandSelectedParents()
     Expand a branch in the tree of the selected node.
public  TreeControlNodefindNode(String name)
     Find and return the TreeControlNode for the specified node name, if it exists; otherwise, return null.
public  TreeControlNodegetRoot()
    
public  TreeControlNodegetSelected()
     Get the last node selected.
public  intgetWidth()
     The current displayable "width" of this tree (that is, the maximum depth of the visible part of the tree).
 intgetWidth(TreeControlNode node)
     Calculate the width of the subtree below the specified node.
public  StringnewId()
    
 voidremoveNode(TreeControlNode node)
     Deregister the specified node, as well as all child nodes of this node, from our registry of the complete tree.
public  voidselectNode(String name)
     Mark the specified node as the one-and-only currently selected one, deselecting any previous node that was so marked.
protected  voidsetRoot(TreeControlNode root)
    

Field Detail
ID_PREFIX
final public static String ID_PREFIX(Code)



mi_Id
protected int mi_Id(Code)



registry
protected HashMap registry(Code)
The collection of nodes that represent this tree, keyed by name.



root
protected TreeControlNode root(Code)
The root node of the entire tree.



selected
protected TreeControlNode selected(Code)
The most recently selected node.




Constructor Detail
TreeControl
public TreeControl()(Code)
Construct a new instance with no predefined root node.



TreeControl
public TreeControl(TreeControlNode root)(Code)
Construct a new instance with the specified root node.
Parameters:
  root - The new root node




Method Detail
addNode
void addNode(TreeControlNode node) throws IllegalArgumentException(Code)
Register the specified node in our registry of the complete tree.
Parameters:
  node - The TreeControlNode to be registered
exception:
  IllegalArgumentException - if the name of this nodeis not unique



addRemovedList
void addRemovedList(TreeControlNode p_RemovedNode)(Code)
Add the removed node in the removed list.
Parameters:
  p_RemovedNode - The removed node



autoRefresh
protected void autoRefresh(TreeControlNode p_AddedNode)(Code)
Search the added node in the removed list and if it's found, copy the expanded info.
Parameters:
  p_AddedNode - The added node



disableAutoRefresh
public void disableAutoRefresh()(Code)
Disable auto-refresh mode.



enableAutoRefresh
public void enableAutoRefresh()(Code)
Enable auto-refresh mode. When a set of children are refreshed (removed then added), the expanded info is copied of the removed node to the added node. The name is used to retreive the good node. By default, the auto-refresh mode is disabled. Be careful, enabled this mode before the remove of all nodes and disabled it after the add.



expandSelectedParents
public void expandSelectedParents()(Code)
Expand a branch in the tree of the selected node.



findNode
public TreeControlNode findNode(String name)(Code)
Find and return the TreeControlNode for the specified node name, if it exists; otherwise, return null.
Parameters:
  name - Name of the TreeControlNode to be returned



getRoot
public TreeControlNode getRoot()(Code)



getSelected
public TreeControlNode getSelected()(Code)
Get the last node selected. the current node selected



getWidth
public int getWidth()(Code)
The current displayable "width" of this tree (that is, the maximum depth of the visible part of the tree).



getWidth
int getWidth(TreeControlNode node)(Code)
Calculate the width of the subtree below the specified node.
Parameters:
  node - The node for which to calculate the width



newId
public String newId()(Code)



removeNode
void removeNode(TreeControlNode node)(Code)
Deregister the specified node, as well as all child nodes of this node, from our registry of the complete tree. If this node is not present, no action is taken.
Parameters:
  node - The TreeControlNode to be deregistered



selectNode
public void selectNode(String name)(Code)
Mark the specified node as the one-and-only currently selected one, deselecting any previous node that was so marked.
Parameters:
  node - Name of the node to mark as selected, or nullif there should be no currently selected node



setRoot
protected void setRoot(TreeControlNode root)(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.