Java Doc for TreeNode.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » component » 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 » IDE Netbeans » visualweb.api.designer » com.sun.rave.web.ui.component 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.web.ui.component.TemplateComponentBase
   com.sun.rave.web.ui.component.TreeNodeBase
      com.sun.rave.web.ui.component.TreeNode

All known Subclasses:   com.sun.rave.web.ui.component.TreeBase,
TreeNode
public class TreeNode extends TreeNodeBase (Code)

This class defines a TreeNode UIComponent. This component is expected to exist as a child of a Tree or another TreeNode.


author:
   Ken Paulsen


Field Summary
final public static  StringCONTENT_FACET_KEY
    

This is the facet key used to define the content for the TreeNode.

final public static  StringIMAGE_FACET_KEY
    

This is the facet key used to set a custom image for this TreeNode.

final public static  StringLAYOUT_KEY
    

This is the location of the XML file that declares the layout for the PanelGroup.


Constructor Summary
public  TreeNode()
     Constructor.

Method Summary
public  voidaddActionListener(ActionListener listener)
    
public  voidfireTurnerEvent(ActionEvent event)
    
public  ActionListener[]getActionListeners()
    
protected  StringgetHandleIcon(String value)
    

This method enables the icon to switch from expanded to collapsed, or from collapsed to expanded depending on the current state of this component.


Parameters:
  value - The current value of the Icon.
public  ListgetImageKeys()
    

This method determines the theme images that should be drawn from left to right (0 to x) when rendering the lines before the text for this node.

A List of Strings that represent theme keys forthe images to be drawn.
public static  TreeNodegetParentTreeNode(UIComponent node)
    
public  voidremoveActionListener(ActionListener listener)
    
public  voidtoggleNode(ActionEvent event)
    

This ActionListener is invoked when the TreeNode expand/collapse icon is clicked.


Field Detail
CONTENT_FACET_KEY
final public static String CONTENT_FACET_KEY(Code)

This is the facet key used to define the content for the TreeNode. (content)




IMAGE_FACET_KEY
final public static String IMAGE_FACET_KEY(Code)

This is the facet key used to set a custom image for this TreeNode. (image)




LAYOUT_KEY
final public static String LAYOUT_KEY(Code)

This is the location of the XML file that declares the layout for the PanelGroup. (layout/tree.xml)





Constructor Detail
TreeNode
public TreeNode()(Code)
Constructor.




Method Detail
addActionListener
public void addActionListener(ActionListener listener)(Code)

Add an action listener instance for the IconHyperlink representing this node's turner.


Parameters:
  listener - The ActionListener instance to register for turnerIconHyperlink clicks.



fireTurnerEvent
public void fireTurnerEvent(ActionEvent event) throws AbortProcessingException(Code)



getActionListeners
public ActionListener[] getActionListeners()(Code)

Get all ActionListener instances for this node's turner IconHyperlink click.

ActionListener[] The list of listeners for this node's turnerIconHyperlink click.



getHandleIcon
protected String getHandleIcon(String value)(Code)

This method enables the icon to switch from expanded to collapsed, or from collapsed to expanded depending on the current state of this component.


Parameters:
  value - The current value of the Icon. It will use the currentvalue to re-use first/last information from the old key. The new (or same if the state hasn't changed) icon state



getImageKeys
public List getImageKeys()(Code)

This method determines the theme images that should be drawn from left to right (0 to x) when rendering the lines before the text for this node.

A List of Strings that represent theme keys forthe images to be drawn. The first list element is the firstimage to display when rendering left to right.



getParentTreeNode
public static TreeNode getParentTreeNode(UIComponent node)(Code)

This method returns the closest parent that is a TreeNode, or null if not found.


Parameters:
  node - The starting TreeNode. The clost parent TreeNode



removeActionListener
public void removeActionListener(ActionListener listener)(Code)

Remove an action listener instance from the list for this node's turner IconHyperlink.


Parameters:
  listener - The ActionListener instance to remove.



toggleNode
public void toggleNode(ActionEvent event) throws AbortProcessingException(Code)

This ActionListener is invoked when the TreeNode expand/collapse icon is clicked. It will first attempt to invoke user-defined com.sun.rave.web.ui.component.until.event.Handler s, then will perform the default operation of expanding or collapsing this TreeNode. If a user-defined com.sun.rave.web.ui.component.until.event.Handler returns "false", the default functionality will not be performed.


Parameters:
  event - The ActionEvent.



Methods inherited from com.sun.rave.web.ui.component.TreeNodeBase
public javax.faces.el.MethodBinding getAction()(Code)(Java Doc)
public javax.faces.el.MethodBinding getActionListener()(Code)(Java Doc)
public String getFamily()(Code)(Java Doc)
public String getImageURL()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
public String getStyleClass()(Code)(Java Doc)
public String getTarget()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public String getToolTip()(Code)(Java Doc)
public String getUrl()(Code)(Java Doc)
public boolean isExpanded()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void restoreState(FacesContext _context, Object _state)(Code)(Java Doc)
public Object saveState(FacesContext _context)(Code)(Java Doc)
public void setAction(javax.faces.el.MethodBinding action)(Code)(Java Doc)
public void setActionListener(javax.faces.el.MethodBinding actionListener)(Code)(Java Doc)
public void setExpanded(boolean expanded)(Code)(Java Doc)
public void setImageURL(String imageURL)(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public void setStyleClass(String styleClass)(Code)(Java Doc)
public void setTarget(String target)(Code)(Java Doc)
public void setText(String text)(Code)(Java Doc)
public void setToolTip(String toolTip)(Code)(Java Doc)
public void setUrl(String url)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)

Methods inherited from com.sun.rave.web.ui.component.TemplateComponentBase
public UIComponent getChild(FacesContext context, String id)(Code)(Java Doc)
public UIComponent getChild(FacesContext context, LayoutComponent descriptor)(Code)(Java Doc)
public LayoutDefinition getLayoutDefinition(FacesContext context)(Code)(Java Doc)
public String getLayoutDefinitionKey()(Code)(Java Doc)
public void restoreState(FacesContext context, Object state)(Code)(Java Doc)
public Object saveState(FacesContext context)(Code)(Java Doc)
public void setLayoutDefinitionKey(String key)(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.