Java Doc for TreeNode.java in  » Ajax » gwtext-2.01 » com » gwtext » client » widgets » tree » 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 » Ajax » gwtext 2.01 » com.gwtext.client.widgets.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gwtext.client.data.Node
   com.gwtext.client.widgets.tree.TreeNode

All known Subclasses:   com.gwtext.client.widgets.tree.AsyncTreeNode,
TreeNode
public class TreeNode extends Node (Code)
TreeNode class.
See Also:   com.gwtext.client.widgets.tree.TreePanel



Constructor Summary
public  TreeNode()
     Create a new TreeNode.
public  TreeNode(String text)
     Create a new TreeNode.
 TreeNode(JavaScriptObject jsObj)
    

Method Summary
native public  voidaddListener(TreeNodeListener listener)
     Adds a TreeNode listener.
native public  TreeNodecloneNode()
     Clones this TreeNode.
native public  TreeNodecloneNode(TreeNode config)
     Clones this TreeNode applying the specified configuration to the cloned node.
native public  voidcollapse()
     Collapse this node.
native public  voidcollapse(boolean deep, boolean anim)
     Collapse this node.
native public  voidcollapseChildNodes(boolean deep)
     Collapse all child nodes.
native protected  JavaScriptObjectcreate(JavaScriptObject config)
    
protected  NodecreateNode(JavaScriptObject jsNode)
    
native public  voiddisable()
     Disables this node.
native public  voidenable()
     Enables this node.
native public  voidensureVisible()
     Ensures all parent nodes are expanded.
native public  voidexpand()
     Expand this node.
native public  voidexpand(boolean deep, boolean anim)
     Expand this node.
native public  voidexpand(boolean deep, boolean anim, Function callback)
     Expand this node.
native public  voidexpandChildNodes(boolean deep)
     Expand all child nodes.
public  StringgetIconCls()
    
native public  StringgetText()
     Return the nodes text.
native public  TreeNodeUIgetUI()
     Returns the UI object for this node.
public static  Nodeinstance(JavaScriptObject jsObj)
    
native public  booleanisDisabled()
     True if this node is disabled.
native public  booleanisExpanded()
     Returns true if this node is expanded.
native public  booleanisSelected()
     Returns true if this node is selected.
public  voidselect()
     Triggers selection of this node.
public  voidsetAllowDrag(boolean allowDrag)
     False to make this node undraggable if DD is on (defaults to true).
public  voidsetAllowDrop(boolean allowDrop)
     False if this node cannot be drop on.
public  voidsetChecked(boolean checked)
     True to render a checked checkbox for this node, false to render an unchecked checkbox (defaults to undefined with no checkbox rendered).
public  voidsetCls(String cls)
     A CSS class to be added to the node.
public  voidsetDisabled(boolean disabled)
    
public  voidsetExpanded(boolean expanded)
    
public  voidsetHref(String href)
     URL of the link used for the node (defaults to #).
public  voidsetHrefTarget(String hrefTarget)
    
public  voidsetIcon(String icon)
     The path to an icon for the node.
public  voidsetIconCls(String iconCls)
     A css class to be added to the nodes icon element for applying css background images.
public  voidsetLeaf(Node leaf)
     True if this node is a leaf and does not have children.
public  voidsetSingleClickExpand(boolean singleClickExpand)
     True for single click expand on this node.
public  voidsetText(String text)
     The text for this node.
public  voidsetTooltip(String qtip)
     Set a Tree node tooltip.
public  voidsetTooltip(QuickTipsConfig qtipConfig)
     Set a Tree node tooltip.
native public  voidtoggle()
     Toggles expanded/collapsed state of the node.
native public  voidunselect()
     Triggers deselection of this node.


Constructor Detail
TreeNode
public TreeNode()(Code)
Create a new TreeNode.



TreeNode
public TreeNode(String text)(Code)
Create a new TreeNode.
Parameters:
  text - the text / label of the TreeNode



TreeNode
TreeNode(JavaScriptObject jsObj)(Code)




Method Detail
addListener
native public void addListener(TreeNodeListener listener)(Code)
Adds a TreeNode listener.
Parameters:
  listener - the listener



cloneNode
native public TreeNode cloneNode()(Code)
Clones this TreeNode. the cloned node



cloneNode
native public TreeNode cloneNode(TreeNode config)(Code)
Clones this TreeNode applying the specified configuration to the cloned node.
Parameters:
  config - the cloned node config the cloned node



collapse
native public void collapse()(Code)
Collapse this node.



collapse
native public void collapse(boolean deep, boolean anim)(Code)
Collapse this node.
Parameters:
  deep - true to collapse all children as well
Parameters:
  anim - false to disable the default animation



collapseChildNodes
native public void collapseChildNodes(boolean deep)(Code)
Collapse all child nodes.
Parameters:
  deep - true if the child nodes should also collapse their child nodes



create
native protected JavaScriptObject create(JavaScriptObject config)(Code)



createNode
protected Node createNode(JavaScriptObject jsNode)(Code)



disable
native public void disable()(Code)
Disables this node.



enable
native public void enable()(Code)
Enables this node.



ensureVisible
native public void ensureVisible()(Code)
Ensures all parent nodes are expanded.



expand
native public void expand()(Code)
Expand this node. The tree must be rendered before this method is called.



expand
native public void expand(boolean deep, boolean anim)(Code)
Expand this node. The tree must be rendered before this method is called.
Parameters:
  deep - true to expand all children as well
Parameters:
  anim - false to cancel the default animation



expand
native public void expand(boolean deep, boolean anim, Function callback)(Code)
Expand this node. The tree must be rendered before this method is called.
Parameters:
  deep - true to expand all children as well
Parameters:
  anim - false to cancel the default animation
Parameters:
  callback - a callback to be called when expanding this node completes (does not wait for deep expand to complete)



expandChildNodes
native public void expandChildNodes(boolean deep)(Code)
Expand all child nodes.
Parameters:
  deep - true if the child nodes should also expand their child nodes



getIconCls
public String getIconCls()(Code)



getText
native public String getText()(Code)
Return the nodes text. the nodes text



getUI
native public TreeNodeUI getUI()(Code)
Returns the UI object for this node. the TreeNodeUI



instance
public static Node instance(JavaScriptObject jsObj)(Code)



isDisabled
native public boolean isDisabled()(Code)
True if this node is disabled. true if disabled



isExpanded
native public boolean isExpanded()(Code)
Returns true if this node is expanded. true if expanded



isSelected
native public boolean isSelected()(Code)
Returns true if this node is selected. true if selected



select
public void select()(Code)
Triggers selection of this node.



setAllowDrag
public void setAllowDrag(boolean allowDrag)(Code)
False to make this node undraggable if DD is on (defaults to true).
Parameters:
  allowDrag - false to disable drag



setAllowDrop
public void setAllowDrop(boolean allowDrop)(Code)
False if this node cannot be drop on.
Parameters:
  allowDrop - flase to disable drop



setChecked
public void setChecked(boolean checked)(Code)
True to render a checked checkbox for this node, false to render an unchecked checkbox (defaults to undefined with no checkbox rendered).
Parameters:
  checked - true for checked checkbox



setCls
public void setCls(String cls)(Code)
A CSS class to be added to the node.
Parameters:
  cls - a CSS class



setDisabled
public void setDisabled(boolean disabled)(Code)
True to start the node disabled
Parameters:
  disabled - true to start disabled



setExpanded
public void setExpanded(boolean expanded)(Code)
True to start the node expanded
Parameters:
  expanded - true to start expanded



setHref
public void setHref(String href)(Code)
URL of the link used for the node (defaults to #).
Parameters:
  href - the node href URL



setHrefTarget
public void setHrefTarget(String hrefTarget)(Code)
Target frame for the link
Parameters:
  hrefTarget - href frame target



setIcon
public void setIcon(String icon)(Code)
The path to an icon for the node. The preferred way to do this is to use the cls or iconCls attributes and add the icon via a CSS background image.
Parameters:
  icon - the node icon



setIconCls
public void setIconCls(String iconCls)(Code)
A css class to be added to the nodes icon element for applying css background images.
Parameters:
  iconCls - the icon CSS class



setLeaf
public void setLeaf(Node leaf)(Code)
True if this node is a leaf and does not have children.
Parameters:
  leaf - true if leaf node



setSingleClickExpand
public void setSingleClickExpand(boolean singleClickExpand)(Code)
True for single click expand on this node.
Parameters:
  singleClickExpand - true for single click expand



setText
public void setText(String text)(Code)
The text for this node.
Parameters:
  text - the nodes text / label



setTooltip
public void setTooltip(String qtip)(Code)
Set a Tree node tooltip.
Parameters:
  qtip - the tooltip



setTooltip
public void setTooltip(QuickTipsConfig qtipConfig)(Code)
Set a Tree node tooltip.
Parameters:
  qtipConfig - the tooltip configuration



toggle
native public void toggle()(Code)
Toggles expanded/collapsed state of the node.



unselect
native public void unselect()(Code)
Triggers deselection of this node.



Fields inherited from com.gwtext.client.data.Node
protected JavaScriptObject configJS(Code)(Java Doc)

Methods inherited from com.gwtext.client.data.Node
native public void addListener(NodeListener listener)(Code)(Java Doc)
native public void appendChild(Node child)(Code)(Java Doc)
native public void bubble(NodeTraversalCallback cb)(Code)(Java Doc)
native public void cascade(NodeTraversalCallback cb)(Code)(Java Doc)
native public boolean contains(Node child)(Code)(Java Doc)
native protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
protected Node createNode(JavaScriptObject jsNode)(Code)(Java Doc)
native public void eachChild(NodeTraversalCallback cb)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
native public Node findChildBy(NodeTraversalCallback cb)(Code)(Java Doc)
native public String getAttribute(String name)(Code)(Java Doc)
native public Object getAttributeAsObject(String name)(Code)(Java Doc)
public Node[] getChildNodes()(Code)(Java Doc)
native public int getDepth()(Code)(Java Doc)
native public Node getFirstChild()(Code)(Java Doc)
native public String getId()(Code)(Java Doc)
public JavaScriptObject getJsObj()(Code)(Java Doc)
native public Node getLastChild()(Code)(Java Doc)
native public Node getNextSibling()(Code)(Java Doc)
native public Tree getOwnerTree()(Code)(Java Doc)
native public Node getParentNode()(Code)(Java Doc)
native public String getPath()(Code)(Java Doc)
native public String getPath(String attr)(Code)(Java Doc)
native public Node getPreviousSibling()(Code)(Java Doc)
public Object getUserObject()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
native public int indexOf(Node child)(Code)(Java Doc)
native public Node insertBefore(Node node, Node nodeRef)(Code)(Java Doc)
native public boolean isAncestor(Node node)(Code)(Java Doc)
native public boolean isFirst()(Code)(Java Doc)
native public boolean isLast()(Code)(Java Doc)
native public boolean isLeaf()(Code)(Java Doc)
native public Node item(int index)(Code)(Java Doc)
native public void remove()(Code)(Java Doc)
native public Node removeChild(Node child)(Code)(Java Doc)
native public Node replaceChild(Node newChild, Node oldChild)(Code)(Java Doc)
native public void setAttribute(String name, Object value)(Code)(Java Doc)
native public void setAttribute(String name, String value)(Code)(Java Doc)
native protected void setAttribute(String name, JavaScriptObject value)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setLeaf(boolean leaf)(Code)(Java Doc)
public void setUserObject(Object userObject)(Code)(Java Doc)
native public void sort(Comparator c)(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.