Java Doc for TreeControlNode.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.TreeControlNode

TreeControlNode
public class TreeControlNode implements Serializable(Code)

An individual node of a tree control represented by an instance of TreeControl, and rendered by an instance of TreeControlTag.


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


Field Summary
protected  Stringaction
     The hyperlink to which control will be directed if this node is selected by the user.
protected  ArrayListchildren
     The set of child TreeControlNodes for this node, in the order that they should be displayed.
protected  booleanexpanded
    
protected  Stringicon
     The pathname to the icon file displayed when this node is visible, relative to the image directory for our images.
protected  Stringlabel
     The label that will be displayed when this node is visible.
protected  booleanlast
    
protected  Stringname
     The unique (within the entire tree) name of this node.
protected  TreeControlNodeparent
     The parent node of this node, or null if this is the root node.
protected  booleanselected
    
protected  Stringtarget
     The window target for the hyperlink identified by the action property, if this node is selected by the user.
protected  TreeControltree
     The TreeControl instance representing the entire tree.
protected  intwidth
     The display width necessary to display this item (if it is visible).

Constructor Summary
public  TreeControlNode(String name, String icon, String label, String action, String target, boolean expanded)
     Construct a new TreeControlNode with the specified parameters.
public  TreeControlNode(TreeControlNode p_Node)
    

Method Summary
public  voidaddChild(TreeControlNode child)
     Add a new child node to the end of the list.
public  voidaddChild(int offset, TreeControlNode child)
     Add a new child node at the specified position in the child list.
public  TreeControlNode[]findChildren()
     Return the set of child nodes for this node.
public  StringgetAction()
    
public  StringgetIcon()
    
public  StringgetLabel()
    
public  StringgetName()
    
public  TreeControlNodegetParent()
    
public  StringgetTarget()
    
public  TreeControlgetTree()
    
public  intgetWidth()
    
public  booleanisExpanded()
    
public  booleanisLast()
    
public  booleanisLeaf()
     Is this a "leaf" node (i.e.
public  booleanisSelected()
    
public  voidremove()
     Remove this node from the tree.
public  voidremoveChild(int offset)
     Remove the child node (and all children of that child) at the specified position in the child list.
 voidremoveChild(TreeControlNode child)
     Remove the specified child node.
public  voidsetExpanded(boolean expanded)
    
 voidsetLast(boolean last)
    
 voidsetParent(TreeControlNode parent)
    
public  voidsetSelected(boolean selected)
    
 voidsetTree(TreeControl tree)
    
public  StringtoString()
    

Field Detail
action
protected String action(Code)
The hyperlink to which control will be directed if this node is selected by the user.



children
protected ArrayList children(Code)
The set of child TreeControlNodes for this node, in the order that they should be displayed.



expanded
protected boolean expanded(Code)
Is this node currently expanded?



icon
protected String icon(Code)
The pathname to the icon file displayed when this node is visible, relative to the image directory for our images.



label
protected String label(Code)
The label that will be displayed when this node is visible.



last
protected boolean last(Code)
Is this the last node in the set of children for our parent node?



name
protected String name(Code)
The unique (within the entire tree) name of this node.



parent
protected TreeControlNode parent(Code)
The parent node of this node, or null if this is the root node.



selected
protected boolean selected(Code)
Is this node currently selected?



target
protected String target(Code)
The window target for the hyperlink identified by the action property, if this node is selected by the user.



tree
protected TreeControl tree(Code)
The TreeControl instance representing the entire tree.



width
protected int width(Code)
The display width necessary to display this item (if it is visible). If this item is not visible, the calculated width will be that of our most immediately visible parent.




Constructor Detail
TreeControlNode
public TreeControlNode(String name, String icon, String label, String action, String target, boolean expanded)(Code)
Construct a new TreeControlNode with the specified parameters.
Parameters:
  name - Internal name of this node (must be unique withinthe entire tree)
Parameters:
  icon - Pathname of the image file for the icon to be displayedwhen this node is visible, relative to the image directoryfor our images
Parameters:
  label - The label that will be displayed to the user ifthis node is visible
Parameters:
  action - The hyperlink to be selected if the userselects this node, or null if this node's label shouldnot be a hyperlink
Parameters:
  target - The window target in which the actionhyperlink's results will be displayed, or null forthe current window
Parameters:
  expanded - Should this node be expanded?



TreeControlNode
public TreeControlNode(TreeControlNode p_Node)(Code)




Method Detail
addChild
public void addChild(TreeControlNode child) throws IllegalArgumentException(Code)
Add a new child node to the end of the list.
Parameters:
  child - The new child node
exception:
  IllegalArgumentException - if the name of the new childnode is not unique



addChild
public void addChild(int offset, TreeControlNode child) throws IllegalArgumentException(Code)
Add a new child node at the specified position in the child list.
Parameters:
  offset - Zero-relative offset at which the new nodeshould be inserted
Parameters:
  child - The new child node
exception:
  IllegalArgumentException - if the name of the new childnode is not unique



findChildren
public TreeControlNode[] findChildren()(Code)
Return the set of child nodes for this node.



getAction
public String getAction()(Code)



getIcon
public String getIcon()(Code)



getLabel
public String getLabel()(Code)



getName
public String getName()(Code)



getParent
public TreeControlNode getParent()(Code)



getTarget
public String getTarget()(Code)



getTree
public TreeControl getTree()(Code)



getWidth
public int getWidth()(Code)



isExpanded
public boolean isExpanded()(Code)



isLast
public boolean isLast()(Code)



isLeaf
public boolean isLeaf()(Code)
Is this a "leaf" node (i.e. one with no children)?



isSelected
public boolean isSelected()(Code)



remove
public void remove()(Code)
Remove this node from the tree.



removeChild
public void removeChild(int offset)(Code)
Remove the child node (and all children of that child) at the specified position in the child list.
Parameters:
  offset - Zero-relative offset at which the existingnode should be removed



removeChild
void removeChild(TreeControlNode child)(Code)
Remove the specified child node. It is assumed that all of the children of this child node have already been removed.
Parameters:
  child - Child node to be removed



setExpanded
public void setExpanded(boolean expanded)(Code)



setLast
void setLast(boolean last)(Code)



setParent
void setParent(TreeControlNode parent)(Code)



setSelected
public void setSelected(boolean selected)(Code)



setTree
void setTree(TreeControl tree)(Code)



toString
public String toString()(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.