Java Doc for AbstractTree.java in  » J2EE » wicket » wicket » extensions » markup » html » 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 » J2EE » wicket » wicket.extensions.markup.html.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


wicket.markup.html.panel.Panel
   wicket.extensions.markup.html.tree.AbstractTree

All known Subclasses:   wicket.extensions.markup.html.tree.DefaultAbstractTree,
AbstractTree
abstract public class AbstractTree extends Panel implements ITreeStateListener,TreeModelListener(Code)
This class encapsulates the logic for displaying and (partial) updating the tree. Actual presentation is out of scope of this class. User should derive they own tree (if needed) from DefaultAbstractTree or Tree (recommended).
author:
   Matej Knopp



Constructor Summary
public  AbstractTree(String id)
    
public  AbstractTree(String id, IModel model)
    

Method Summary
final public  voidallNodesCollapsed()
     called when all nodes are collapsed.
final public  voidallNodesExpanded()
     called when all nodes are expaned.
public  ComponentgetNodeComponent(TreeNode node)
     Returns the component associated with given node, or null, if node is not visible.
public  ITreeStategetTreeState()
     Returns the TreeState of this tree.
public  voidinternalAttach()
    
public  voidinternalDetach()
    
final public  voidinvalidateAll()
     Call to refresh the whole tree.
final protected  booleanisNodeExpanded(TreeNode node)
     Returns whether the given node is expanded.
final public  booleanisRootLess()
    
protected  ITreeStatenewTreeState()
     Creates the TreeState, which is an object where the current state of tree (which nodes are expanded / collapsed, selected, ...) is stored.
final public  voidnodeCollapsed(TreeNode node)
    
final public  voidnodeExpanded(TreeNode node)
    
final public  voidnodeSelected(TreeNode node)
    
final public  voidnodeUnselected(TreeNode node)
    
protected  voidonAfterRender()
     Called after the rendering of tree is complete.
protected  voidonBeforeAttach()
     This method is called before the onAttach is called.
abstract protected  voidpopulateTreeItem(WebMarkupContainer item, int level)
     This method is called after creating every TreeItem.
public  voidsetRootLess(boolean rootLess)
     Sets whether the root of the tree should be visible.
final public  voidtreeNodesChanged(TreeModelEvent e)
    
final public  voidtreeNodesInserted(TreeModelEvent e)
    
final public  voidtreeNodesRemoved(TreeModelEvent e)
    
final public  voidtreeStructureChanged(TreeModelEvent e)
    
final public  voidupdateTree(AjaxRequestTarget target)
     Updates the changed portions of the tree using given AjaxRequestTarget. Call this method if you modified the tree model during an ajax request target and you want to partially update the component on page.


Constructor Detail
AbstractTree
public AbstractTree(String id)(Code)
Tree constructor
Parameters:
  id - The component id



AbstractTree
public AbstractTree(String id, IModel model)(Code)
Tree constructor
Parameters:
  id - The component id
Parameters:
  model - The tree model




Method Detail
allNodesCollapsed
final public void allNodesCollapsed()(Code)
called when all nodes are collapsed.



allNodesExpanded
final public void allNodesExpanded()(Code)
called when all nodes are expaned.



getNodeComponent
public Component getNodeComponent(TreeNode node)(Code)
Returns the component associated with given node, or null, if node is not visible. This is useful in situations when you want to touch the node element in html.
Parameters:
  node - Tree node Component associated with given node, or null if node is notvisible.



getTreeState
public ITreeState getTreeState()(Code)
Returns the TreeState of this tree. Tree state instance



internalAttach
public void internalAttach()(Code)
Called at the beginning of the request (not ajax request, unless we are rendering the entire component)



internalDetach
public void internalDetach()(Code)

See Also:   wicket.MarkupContainer.internalDetach



invalidateAll
final public void invalidateAll()(Code)
Call to refresh the whole tree. This should only be called when the roodNode has been replaced or the entiry tree model changed.



isNodeExpanded
final protected boolean isNodeExpanded(TreeNode node)(Code)
Returns whether the given node is expanded.
Parameters:
  node - The node to inspect true if the node is expanded, false otherwise



isRootLess
final public boolean isRootLess()(Code)
whether the tree root is shown



newTreeState
protected ITreeState newTreeState()(Code)
Creates the TreeState, which is an object where the current state of tree (which nodes are expanded / collapsed, selected, ...) is stored. Tree state instance



nodeCollapsed
final public void nodeCollapsed(TreeNode node)(Code)

See Also:   wicket.extensions.markup.html.tree.ITreeStateListener.nodeCollapsed(javax.swing.tree.TreeNode)



nodeExpanded
final public void nodeExpanded(TreeNode node)(Code)

See Also:   wicket.extensions.markup.html.tree.ITreeStateListener.nodeExpanded(javax.swing.tree.TreeNode)



nodeSelected
final public void nodeSelected(TreeNode node)(Code)

See Also:   wicket.extensions.markup.html.tree.ITreeStateListener.nodeSelected(javax.swing.tree.TreeNode)



nodeUnselected
final public void nodeUnselected(TreeNode node)(Code)

See Also:   wicket.extensions.markup.html.tree.ITreeStateListener.nodeUnselected(javax.swing.tree.TreeNode)



onAfterRender
protected void onAfterRender()(Code)
Called after the rendering of tree is complete. Here we clear the dirty flags.



onBeforeAttach
protected void onBeforeAttach()(Code)
This method is called before the onAttach is called. Code here gets executed before the items have been populated.



populateTreeItem
abstract protected void populateTreeItem(WebMarkupContainer item, int level)(Code)
This method is called after creating every TreeItem. This is the place for adding components on item (junction links, labels, icons...)
Parameters:
  item - newly created tree item. The node can be obtained asitem.getModelObject()
Parameters:
  level - how deep the component is in tree hierarchy (0 for root item)



setRootLess
public void setRootLess(boolean rootLess)(Code)
Sets whether the root of the tree should be visible.
Parameters:
  rootLess - whether the root should be visible



treeNodesChanged
final public void treeNodesChanged(TreeModelEvent e)(Code)

See Also:   javax.swing.event.TreeModelListener.treeNodesChanged(javax.swing.event.TreeModelEvent)



treeNodesInserted
final public void treeNodesInserted(TreeModelEvent e)(Code)

See Also:   javax.swing.event.TreeModelListener.treeNodesInserted(javax.swing.event.TreeModelEvent)



treeNodesRemoved
final public void treeNodesRemoved(TreeModelEvent e)(Code)

See Also:   javax.swing.event.TreeModelListener.treeNodesRemoved(javax.swing.event.TreeModelEvent)



treeStructureChanged
final public void treeStructureChanged(TreeModelEvent e)(Code)

See Also:   javax.swing.event.TreeModelListener.treeStructureChanged(javax.swing.event.TreeModelEvent)



updateTree
final public void updateTree(AjaxRequestTarget target)(Code)
Updates the changed portions of the tree using given AjaxRequestTarget. Call this method if you modified the tree model during an ajax request target and you want to partially update the component on page. Make sure that the tree model has fired the proper listener functions.
Parameters:
  target - Ajax request target used to send the update to the page



Methods inherited from wicket.markup.html.panel.Panel
protected void onComponentTag(ComponentTag tag)(Code)(Java Doc)
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag)(Code)(Java Doc)
public void renderHead(HtmlHeaderContainer container)(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.