Java Doc for TreePanel.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.widgets.Panel
   com.gwtext.client.widgets.tree.TreePanel

TreePanel
public class TreePanel extends Panel (Code)
A Tree widget.



Constructor Summary
public  TreePanel()
    
public  TreePanel(String id)
     Construct a new TreePanel.

Method Summary
native public  voidaddListener(TreePanelListener listener)
     Add a TreePanel listener.
native public  voidcollapseAll()
     Collapse all nodes.
static  TreeNode[]convertFromNativeTreeNodeArray(JavaScriptObject nativeArray)
    
native protected  JavaScriptObjectcreate(JavaScriptObject config)
    
public  voidexpandAll()
    
native public  voidexpandAllRendered()
     Expand all nodes.
native public  voidexpandPath(String path, NodeExpansionCallback cb)
     Expands a specified path in this TreePanel.
public  TreeNode[]getChecked()
     Return an array of checked TreeNodes starting from the root node.
public  TreeNode[]getChecked(TreeNode startNode)
     Return an array of checked TreeNodes starting from the specified startNode.
protected  JavaScriptObjectgetConfigPrototype()
    
native public  TreeDragZonegetDragZone()
     The dragZone used by this tree if drag is enabled.
native public  TreeDropZonegetDropZone()
     The dropZone used by this tree if drop is enabled.
native public  TreeLoadergetLoader()
     Retrun the TreeLoader associated with the TreePanel.
public  TreeNodegetNodeById(String id)
     Gets a node in this tree by its ID.
public  TreeNodegetRootNode()
     Returns the root node for this tree.
public  TreeSelectionModelgetSelectionModel()
     Return the TreePanel's selection model.
native public  TreegetTree()
     Return the underlying Tree data structure backing the TreePanel.
public  StringgetXType()
    
protected  voidinitComponent()
    
native public  voidselectPath(String path, NodeSelectionCallback cb)
     Selects the node in this tree at the specified path.
public  voidsetAnimate(boolean animate)
     True to enable animated expand/collapse.
public  voidsetContainerScroll(boolean containerScroll)
     True to register this container with ScrollManager.
public  voidsetDdAppendOnly(String ddAppendOnly)
     True if the tree should only allow append drops (use for trees which are sorted).
public  voidsetDdGroup(String ddGroup)
     The DD group this TreePanel belongs to (defaults to 'TreeDD').
public  voidsetDdScroll(boolean ddScroll)
    
public  voidsetDropConfig(TreeDropZone dropConfig)
     Custom config to pass to the TreeDropZone instance.
public  voidsetEnableDD(boolean enableDD)
     True to enable drag and drop.
public  voidsetEnableDrag(boolean enableDrag)
     True to enable just drag.
public  voidsetEnableDrop(boolean enableDrop)
     True to enable just drop.
public  voidsetHlColor(String hlColor)
     The color of the node highlight (defaults to C3DAF9).
public  voidsetHlDrop(boolean hlDrop)
     False to disable node highlight on drop.
public  voidsetLines(boolean lines)
     False to disable tree lines (defaults to true).
public  voidsetLoader(TreeLoader loader)
     A TreeLoader for use with this TreePanel.
native public  voidsetPathSeparator(String separator)
     Set the token used to separate sub-paths in path strings (defaults to '/').
public  voidsetRootNode(Node node)
    
native public  voidsetRootNodeRendered(Node node)
     Sets the root node for this tree.
public  voidsetRootVisible(boolean rootVisible)
     False to hide the root node (defaults to true).
public  voidsetSelectionModel(TreeSelectionModel selectionModel)
    
public  voidsetSingleExpand(boolean singleExpand)
     True if only 1 node per branch may be expanded.


Constructor Detail
TreePanel
public TreePanel()(Code)



TreePanel
public TreePanel(String id)(Code)
Construct a new TreePanel.
Parameters:
  id - the tree panel ID




Method Detail
addListener
native public void addListener(TreePanelListener listener)(Code)
Add a TreePanel listener.
Parameters:
  listener - the listener



collapseAll
native public void collapseAll()(Code)
Collapse all nodes.



convertFromNativeTreeNodeArray
static TreeNode[] convertFromNativeTreeNodeArray(JavaScriptObject nativeArray)(Code)



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



expandAll
public void expandAll()(Code)



expandAllRendered
native public void expandAllRendered()(Code)
Expand all nodes.



expandPath
native public void expandPath(String path, NodeExpansionCallback cb)(Code)
Expands a specified path in this TreePanel. A path can be retrieved from a node with Node.getPath
Parameters:
  path - the path
Parameters:
  cb - the callback to call when the expand is complete



getChecked
public TreeNode[] getChecked()(Code)
Return an array of checked TreeNodes starting from the root node. array of checked nodes, empty array if no nodes are checked



getChecked
public TreeNode[] getChecked(TreeNode startNode)(Code)
Return an array of checked TreeNodes starting from the specified startNode.
Parameters:
  startNode - the node to start from array of checked nodes, empty array if no nodes are checked



getConfigPrototype
protected JavaScriptObject getConfigPrototype()(Code)



getDragZone
native public TreeDragZone getDragZone()(Code)
The dragZone used by this tree if drag is enabled. the drag zone, or null if not enabled



getDropZone
native public TreeDropZone getDropZone()(Code)
The dropZone used by this tree if drop is enabled. the drop zone, or null if not enabled



getLoader
native public TreeLoader getLoader()(Code)
Retrun the TreeLoader associated with the TreePanel. the tree loader



getNodeById
public TreeNode getNodeById(String id)(Code)
Gets a node in this tree by its ID.
Parameters:
  id - the node ID the node, null if none found



getRootNode
public TreeNode getRootNode()(Code)
Returns the root node for this tree. the root node



getSelectionModel
public TreeSelectionModel getSelectionModel()(Code)
Return the TreePanel's selection model. the selection model



getTree
native public Tree getTree()(Code)
Return the underlying Tree data structure backing the TreePanel. the tree data structure



getXType
public String getXType()(Code)



initComponent
protected void initComponent()(Code)



selectPath
native public void selectPath(String path, NodeSelectionCallback cb)(Code)
Selects the node in this tree at the specified path. A path can be retrieved from a node with Node.getPath .
Parameters:
  path - the path
Parameters:
  cb - the callback to call when the selection is complete



setAnimate
public void setAnimate(boolean animate) throws IllegalStateException(Code)
True to enable animated expand/collapse. Defaults to true.
Parameters:
  animate - true to enable enimation.
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setContainerScroll
public void setContainerScroll(boolean containerScroll) throws IllegalStateException(Code)
True to register this container with ScrollManager. Doing so provides automatic scrolling of overflow regions in the page during drag operations. Defaults to false.
Parameters:
  containerScroll - true to register this container with ScrollManager
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setDdAppendOnly
public void setDdAppendOnly(String ddAppendOnly) throws IllegalStateException(Code)
True if the tree should only allow append drops (use for trees which are sorted).
Parameters:
  ddAppendOnly - true to allow only append drops
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setDdGroup
public void setDdGroup(String ddGroup) throws IllegalStateException(Code)
The DD group this TreePanel belongs to (defaults to 'TreeDD').
Parameters:
  ddGroup - the DD group
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setDdScroll
public void setDdScroll(boolean ddScroll) throws IllegalStateException(Code)
True to enable body scrolling
Parameters:
  ddScroll - true to enable body scrolling.
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setDropConfig
public void setDropConfig(TreeDropZone dropConfig) throws IllegalStateException(Code)
Custom config to pass to the TreeDropZone instance.
Parameters:
  dropConfig - the drop config
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableDD
public void setEnableDD(boolean enableDD) throws IllegalStateException(Code)
True to enable drag and drop.
Parameters:
  enableDD - true to enable drag and drop
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableDrag
public void setEnableDrag(boolean enableDrag) throws IllegalStateException(Code)
True to enable just drag.
Parameters:
  enableDrag - true to enable just drag
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableDrop
public void setEnableDrop(boolean enableDrop) throws IllegalStateException(Code)
True to enable just drop.
Parameters:
  enableDrop - true to enable just drop
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setHlColor
public void setHlColor(String hlColor) throws IllegalStateException(Code)
The color of the node highlight (defaults to C3DAF9).
Parameters:
  hlColor - the color of the node highlight
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setHlDrop
public void setHlDrop(boolean hlDrop) throws IllegalStateException(Code)
False to disable node highlight on drop.
Parameters:
  hlDrop - false to disable drop drop highlight
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setLines
public void setLines(boolean lines) throws IllegalStateException(Code)
False to disable tree lines (defaults to true).
Parameters:
  lines - false to disable tree lines
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setLoader
public void setLoader(TreeLoader loader) throws IllegalStateException(Code)
A TreeLoader for use with this TreePanel.
Parameters:
  loader - the tree loader
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setPathSeparator
native public void setPathSeparator(String separator)(Code)
Set the token used to separate sub-paths in path strings (defaults to '/').
Parameters:
  separator - the path separator



setRootNode
public void setRootNode(Node node)(Code)



setRootNodeRendered
native public void setRootNodeRendered(Node node)(Code)
Sets the root node for this tree.
Parameters:
  node - the root node



setRootVisible
public void setRootVisible(boolean rootVisible) throws IllegalStateException(Code)
False to hide the root node (defaults to true).
Parameters:
  rootVisible - false to hide the root node
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setSelectionModel
public void setSelectionModel(TreeSelectionModel selectionModel) throws IllegalStateException(Code)
Set the Tree seelction model
Parameters:
  selectionModel - the selection model
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setSingleExpand
public void setSingleExpand(boolean singleExpand) throws IllegalStateException(Code)
True if only 1 node per branch may be expanded.
Parameters:
  singleExpand - true if only 1 node per branch may be expanded
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



Methods inherited from com.gwtext.client.widgets.Panel
public void addButton(Button button)(Code)(Java Doc)
native public void addListener(PanelListener listener)(Code)(Java Doc)
public void addTool(Tool tool) throws IllegalStateException(Code)(Java Doc)
public void collapse()(Code)(Java Doc)
public void collapse(boolean animate)(Code)(Java Doc)
native protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
public void expand()(Code)(Java Doc)
public void expand(boolean animate)(Code)(Java Doc)
public String getBaseCls()(Code)(Java Doc)
native public ExtElement getBody()(Code)(Java Doc)
public String getBodyStyle()(Code)(Java Doc)
native public ExtElement getBodyWrap()(Code)(Java Doc)
native public Toolbar getBottomToolbar()(Code)(Java Doc)
public boolean getCollapseFirst()(Code)(Java Doc)
public String getCollapsedCls()(Code)(Java Doc)
protected JavaScriptObject getConfigPrototype()(Code)(Java Doc)
public boolean getFloating()(Code)(Java Doc)
native public ExtElement getFooter()(Code)(Java Doc)
native public int getFrameHeight()(Code)(Java Doc)
native public int getFrameWidth()(Code)(Java Doc)
native public ExtElement getHeader()(Code)(Java Doc)
public String getHtml()(Code)(Java Doc)
public String getIconCls()(Code)(Java Doc)
native public int getInnerHeight()(Code)(Java Doc)
native public int getInnerWidth()(Code)(Java Doc)
public int getMinButtonWidth() throws IllegalStateException(Code)(Java Doc)
public int getShadowOffset()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
native public Toolbar getTopToolbar()(Code)(Java Doc)
native public UpdateManager getUpdateManager()(Code)(Java Doc)
public String getXType()(Code)(Java Doc)
public boolean isAnimCollapse()(Code)(Java Doc)
public boolean isAutoScroll()(Code)(Java Doc)
public boolean isBodyBorder()(Code)(Java Doc)
public boolean isBorder()(Code)(Java Doc)
public boolean isClosable()(Code)(Java Doc)
public boolean isCollapsed()(Code)(Java Doc)
public boolean isCollapsible()(Code)(Java Doc)
public boolean isFrame()(Code)(Java Doc)
public boolean isHeader()(Code)(Java Doc)
public boolean isHeaderAsText()(Code)(Java Doc)
public boolean isHideCollapseTool()(Code)(Java Doc)
public boolean isMaskDisabled()(Code)(Java Doc)
public boolean isShadow()(Code)(Java Doc)
public boolean isShim()(Code)(Java Doc)
public boolean isTitleCollapse()(Code)(Java Doc)
public void load(String url)(Code)(Java Doc)
public void load(String url, UrlParam[] params, UrlLoadCallback callback, boolean loadScripts)(Code)(Java Doc)
public void setAnimCollapse(boolean animCollapse)(Code)(Java Doc)
public void setAutoLoad(String url)(Code)(Java Doc)
public void setAutoLoad(String url, UrlLoadConfig loadConfig) throws IllegalStateException(Code)(Java Doc)
public void setAutoScroll(boolean autoScroll) throws IllegalStateException(Code)(Java Doc)
public void setBaseCls(String baseCls) throws IllegalStateException(Code)(Java Doc)
public void setBodyBorder(boolean bodyBorder) throws IllegalStateException(Code)(Java Doc)
public void setBodyStyle(String bodyStyle) throws IllegalStateException(Code)(Java Doc)
public void setBorder(boolean border) throws IllegalStateException(Code)(Java Doc)
public void setBottomToolbar(Toolbar toolbar)(Code)(Java Doc)
public void setBottomToolbar(Button button) throws IllegalStateException(Code)(Java Doc)
public void setBottomToolbar(Button[] buttons) throws IllegalStateException(Code)(Java Doc)
public void setButtonAlign(Position buttonAlign) throws IllegalStateException(Code)(Java Doc)
public void setButtons(Button[] buttons) throws IllegalStateException(Code)(Java Doc)
public void setClosable(boolean closable) throws IllegalStateException(Code)(Java Doc)
public void setCollapseFirst(boolean collapseFirst) throws IllegalStateException(Code)(Java Doc)
public void setCollapsed(boolean collapsed)(Code)(Java Doc)
public void setCollapsedCls(String collapsedCls) throws IllegalStateException(Code)(Java Doc)
public void setCollapsible(boolean collapsible) throws IllegalStateException(Code)(Java Doc)
public void setContentEl(Element contentEl) throws IllegalStateException(Code)(Java Doc)
public void setDraggable(boolean draggable) throws IllegalStateException(Code)(Java Doc)
public void setFloating(boolean floating) throws IllegalStateException(Code)(Java Doc)
public void setFooter(boolean footer) throws IllegalStateException(Code)(Java Doc)
public void setFrame(boolean frame) throws IllegalStateException(Code)(Java Doc)
public void setHeader(boolean header) throws IllegalStateException(Code)(Java Doc)
public void setHeaderAsText(boolean headerAsText)(Code)(Java Doc)
public void setHideCollapseTool(boolean hideCollapseTool) throws IllegalStateException(Code)(Java Doc)
public void setHtml(String html)(Code)(Java Doc)
public void setIconCls(String iconCls)(Code)(Java Doc)
public void setMargins(int margin) throws IllegalStateException(Code)(Java Doc)
public void setMargins(int top, int left, int right, int bottom) throws IllegalStateException(Code)(Java Doc)
public void setMaskDisabled(boolean maskDisabled) throws IllegalStateException(Code)(Java Doc)
public void setMinButtonWidth(int minButtonWidth) throws IllegalStateException(Code)(Java Doc)
public void setPaddings(int padding) throws IllegalStateException(Code)(Java Doc)
public void setPaddings(int top, int left, int right, int bottom) throws IllegalStateException(Code)(Java Doc)
public void setShadow(boolean shadow)(Code)(Java Doc)
public void setShadow(Shadow.Type shadow)(Code)(Java Doc)
public void setShadowOffset(int shadowOffset) throws IllegalStateException(Code)(Java Doc)
public void setShim(boolean shim) throws IllegalStateException(Code)(Java Doc)
public void setStyleName(String style)(Code)(Java Doc)
public void setTitle(String title, String iconCls)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setTitleCollapse(boolean titleCollapse) throws IllegalStateException(Code)(Java Doc)
public void setTools(Tool[] tools) throws IllegalStateException(Code)(Java Doc)
public void setTopToolbar(Toolbar toolbar) throws IllegalStateException(Code)(Java Doc)
public void setTopToolbar(Button button) throws IllegalStateException(Code)(Java Doc)
public void setTopToolbar(Button[] buttons) throws IllegalStateException(Code)(Java Doc)
native public void toggleCollapse()(Code)(Java Doc)
native public void toggleCollapse(boolean animate)(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.