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


org.apache.wicket.markup.html.tree.AbstractTree
   org.apache.wicket.extensions.markup.html.tree.DefaultAbstractTree

All known Subclasses:   org.apache.wicket.extensions.markup.html.tree.Tree,  org.apache.wicket.extensions.markup.html.tree.table.TreeTable,
DefaultAbstractTree
abstract public class DefaultAbstractTree extends AbstractTree (Code)
Tree class that contains convenient functions related to presentation of the tree, which includes junction link, tree item selection link, spacers (with lines) and default tree item and folder icons.

The class itself adds no component to tree items. If you use this class directly, you have to implement populateTreeItem() on your own. If you want to use an existing (complete) tree class, use Tree

This class allows you to choose between 3 types of links. DefaultAbstractTree.setLinkType(org.apache.wicket.extensions.markup.html.tree.DefaultAbstractTree.LinkType)
author:
   Matej Knopp


Inner Class :final public static class LinkType extends EnumeratedType
Inner Class :protected interface ILinkCallback extends IClusterable


Constructor Summary
public  DefaultAbstractTree(String id)
     Tree contructor.
public  DefaultAbstractTree(String id, IModel model)
     Tree constructor.
public  DefaultAbstractTree(String id, TreeModel model)
     Tree constructor.

Method Summary
protected  ResourceReferencegetCSS()
     Returns the resource reference of default stylesheet.
protected  ResourceReferencegetFolderClosed()
     Returns the resource reference of default closed tree folder.
protected  ResourceReferencegetFolderOpen()
     Returns the resource reference of default open tree folder.
protected  ResourceReferencegetItem()
     Returns the resource reference of default tree item (not folder).
public  LinkTypegetLinkType()
     Returns the current type of links on tree items.
protected  ResourceReferencegetNodeIcon(TreeNode node)
     Returns the resource reference for icon of specified tree node.
protected  ComponentnewIndentation(MarkupContainer parent, String id, TreeNode node, int level)
     Creates the indentation element.
protected  MarkupContainernewJunctionImage(MarkupContainer parent, String id, TreeNode node)
     Creates an image placed on junction link.
protected  ComponentnewJunctionLink(MarkupContainer parent, String id, String imageId, TreeNode node)
     Creates the junction link for given node.
protected  MarkupContainernewLink(MarkupContainer parent, String id, ILinkCallback callback)
     Creates a link of type specified by current linkType.
protected  ComponentnewNodeIcon(MarkupContainer parent, String id, TreeNode node)
     Creates the icon for current node.
protected  MarkupContainernewNodeLink(MarkupContainer parent, String id, TreeNode node)
     Creates a link that can be used to select / unselect the specified node.
protected  voidonJunctionLinkClicked(AjaxRequestTarget target, TreeNode node)
     Callback function called after user clicked on an junction link.
protected  voidonNodeLinkClicked(AjaxRequestTarget target, TreeNode node)
     This callback method is called after user has selected / deselected the given node.
public  voidsetLinkType(LinkType linkType)
     Sets the type of links on tree items.


Constructor Detail
DefaultAbstractTree
public DefaultAbstractTree(String id)(Code)
Tree contructor.
Parameters:
  id - The component id



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



DefaultAbstractTree
public DefaultAbstractTree(String id, TreeModel model)(Code)
Tree constructor.
Parameters:
  id - The component id
Parameters:
  model - The tree model




Method Detail
getCSS
protected ResourceReference getCSS()(Code)
Returns the resource reference of default stylesheet. The package resource reference



getFolderClosed
protected ResourceReference getFolderClosed()(Code)
Returns the resource reference of default closed tree folder. The package resource reference



getFolderOpen
protected ResourceReference getFolderOpen()(Code)
Returns the resource reference of default open tree folder. The package resource reference



getItem
protected ResourceReference getItem()(Code)
Returns the resource reference of default tree item (not folder). The package resource reference



getLinkType
public LinkType getLinkType()(Code)
Returns the current type of links on tree items. The link type



getNodeIcon
protected ResourceReference getNodeIcon(TreeNode node)(Code)
Returns the resource reference for icon of specified tree node.
Parameters:
  node - The node The package resource reference



newIndentation
protected Component newIndentation(MarkupContainer parent, String id, TreeNode node, int level)(Code)
Creates the indentation element. This element should be placed as first element in the tree item markup to ensure proper indentaion of the tree item. This implementation also takes care of lines that connect nodes.
Parameters:
  parent - The component parent
Parameters:
  id - The component id
Parameters:
  node - The tree node for which to create the identation element
Parameters:
  level - The current level The indentation component



newJunctionImage
protected MarkupContainer newJunctionImage(MarkupContainer parent, String id, TreeNode node)(Code)
Creates an image placed on junction link. This image actually consists of two spans with different css classes. These classes are specified according to the stylesheet to make the junction image look well together with lines connecting nodes.
Parameters:
  parent - The component parent
Parameters:
  id - The component id
Parameters:
  node - The tree node The component that resprents a junction



newJunctionLink
protected Component newJunctionLink(MarkupContainer parent, String id, String imageId, TreeNode node)(Code)
Creates the junction link for given node. Also (optionally) creates the junction image. If the node is a leaf (it has no children), the created junction link is non-functional.
Parameters:
  parent - parent component of the link
Parameters:
  id - wicket:id of the component
Parameters:
  imageId - wicket:id of the image. this can be null, in that case imageis not created. image is supposed to be placed on the link(link is parent of image)
Parameters:
  node - tree node for which the link should be created. The link component



newLink
protected MarkupContainer newLink(MarkupContainer parent, String id, ILinkCallback callback)(Code)
Creates a link of type specified by current linkType. When the links is clicked it calls the specified callback.
Parameters:
  parent - The parent component
Parameters:
  id - The component id
Parameters:
  callback - The link call back The link component



newNodeIcon
protected Component newNodeIcon(MarkupContainer parent, String id, TreeNode node)(Code)
Creates the icon for current node. By default uses image reference specified by DefaultAbstractTree.getNodeIcon(TreeNode) .
Parameters:
  parent - The parent component
Parameters:
  id - The component id
Parameters:
  node - The tree node The web component that represents the icon of the current node



newNodeLink
protected MarkupContainer newNodeLink(MarkupContainer parent, String id, TreeNode node)(Code)
Creates a link that can be used to select / unselect the specified node.
Parameters:
  parent - The parent component
Parameters:
  id - The component id
Parameters:
  node - The parent node The component that represents the link



onJunctionLinkClicked
protected void onJunctionLinkClicked(AjaxRequestTarget target, TreeNode node)(Code)
Callback function called after user clicked on an junction link. The node has already been expanded/collapsed (depending on previous status).
Parameters:
  target - Request target - may be null on non-ajax call
Parameters:
  node - Node for which this callback is relevant



onNodeLinkClicked
protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node)(Code)
This callback method is called after user has selected / deselected the given node.
Parameters:
  target - Request target - may be null on non-ajax call
Parameters:
  node - Node for which this this callback is fired.



setLinkType
public void setLinkType(LinkType linkType)(Code)
Sets the type of links on tree items. After the link type is changed, the whole tree is rebuild and re-rendered.
Parameters:
  linkType - type of links



Methods inherited from org.apache.wicket.markup.html.tree.AbstractTree
final public void allNodesCollapsed()(Code)(Java Doc)
final public void allNodesExpanded()(Code)(Java Doc)
public Component getNodeComponent(TreeNode node)(Code)(Java Doc)
public ITreeState getTreeState()(Code)(Java Doc)
final public void invalidateAll()(Code)(Java Doc)
protected boolean isForceRebuildOnSelectionChange()(Code)(Java Doc)
final protected boolean isNodeExpanded(TreeNode node)(Code)(Java Doc)
final public boolean isRootLess()(Code)(Java Doc)
protected ITreeState newTreeState()(Code)(Java Doc)
final public void nodeCollapsed(TreeNode node)(Code)(Java Doc)
final public void nodeExpanded(TreeNode node)(Code)(Java Doc)
final public void nodeSelected(TreeNode node)(Code)(Java Doc)
final public void nodeUnselected(TreeNode node)(Code)(Java Doc)
protected void onAfterRender()(Code)(Java Doc)
protected void onBeforeAttach()(Code)(Java Doc)
public void onBeforeRender()(Code)(Java Doc)
public void onDetach()(Code)(Java Doc)
abstract protected void populateTreeItem(WebMarkupContainer item, int level)(Code)(Java Doc)
public void setRootLess(boolean rootLess)(Code)(Java Doc)
final public void treeNodesChanged(TreeModelEvent e)(Code)(Java Doc)
final public void treeNodesInserted(TreeModelEvent e)(Code)(Java Doc)
final public void treeNodesRemoved(TreeModelEvent e)(Code)(Java Doc)
final public void treeStructureChanged(TreeModelEvent e)(Code)(Java Doc)
final public void updateTree(AjaxRequestTarget target)(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.