Java Doc for TreeRootElement.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » tags » 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 » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.tags.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.beehive.netui.tags.tree.TreeElement
      org.apache.beehive.netui.tags.tree.TreeRootElement

TreeRootElement
public class TreeRootElement extends TreeElement implements ITreeRootElement(Code)
This is a concrete implementation of ITreeRootElement. It is a subclass of the TreeElement and is created for the root element when a tree is defined through JSP tags.



Constructor Summary
public  TreeRootElement()
     Default constructor for creating a simple tree.
public  TreeRootElement(String label, boolean expanded)
     Construct a new TreeElement with the specified parameters.

Method Summary
public  voidchangeSelected(String selectNode, ServletRequest request)
     Change the node that is selected.
public  InheritableStategetInheritableState()
     Property that returns the InheritableState that was set on the Tree.
public  StringgetObjectName()
     Returns the ObjectName of the INameable object.
public  StringgetRootNodeCollapsedImage()
     Returns the collapsed image for the root node.
public  StringgetRootNodeExpandedImage()
     Returns the expanded image for the root node.
public  TreeElementgetSelectedNode()
     Return the currently selected TreeElement.
public  TreeRenderStategetTreeRenderState()
     return the TreeRenderState for this tree.
public  voidsetInheritableState(InheritableState state)
     Property that sets the InheritableState that is set on the Tree tag.
public  voidsetObjectName(String name)
     Set the ObjectName of the INameable object.
public  voidsetRootNodeCollapsedImage(String rootNodeCollapsedImage)
     Sets the name of the collapsed image for the root node.
Parameters:
  rootNodeCollapsedImage - the name of the collapsed image to display.
public  voidsetRootNodeExpandedImage(String rootNodeExpandedImage)
     Sets the expanded image for the root node.
Parameters:
  rootNodeExpandedImage - the name of the image to display.
public  voidsetTreeRenderState(TreeRenderState trs)
    


Constructor Detail
TreeRootElement
public TreeRootElement()(Code)
Default constructor for creating a simple tree.



TreeRootElement
public TreeRootElement(String label, boolean expanded)(Code)
Construct a new TreeElement with the specified parameters.
Parameters:
  expanded - Should this node be expanded?




Method Detail
changeSelected
public void changeSelected(String selectNode, ServletRequest request)(Code)
Change the node that is selected. This is an optimization were the root node can track which node is currently selected so it can unselect that node instead of searching the whole tree to find the selected node.
Parameters:
  selectNode -



getInheritableState
public InheritableState getInheritableState()(Code)
Property that returns the InheritableState that was set on the Tree. InheritableState



getObjectName
public String getObjectName()(Code)
Returns the ObjectName of the INameable object. the ObjectName.



getRootNodeCollapsedImage
public String getRootNodeCollapsedImage()(Code)
Returns the collapsed image for the root node. the name of the collapsed image for the root.



getRootNodeExpandedImage
public String getRootNodeExpandedImage()(Code)
Returns the expanded image for the root node. the expanded image for the root.



getSelectedNode
public TreeElement getSelectedNode()(Code)
Return the currently selected TreeElement. This method will return null if no element is currently selected.

Implementation Note: The method that changes the selected node based on the request, TreeHelpers.processTreeRequest(StringTreeElementjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse) , gets called during the processing of the Tree tag within a JSP. If the getSelectedNode method is called from an Action in a Page Flow Controller, the value of the selected node will have not yet been updated.

the currently selected node.



getTreeRenderState
public TreeRenderState getTreeRenderState()(Code)
return the TreeRenderState for this tree. the TreeRenderState



setInheritableState
public void setInheritableState(InheritableState state)(Code)
Property that sets the InheritableState that is set on the Tree tag.
Parameters:
  state -



setObjectName
public void setObjectName(String name)(Code)
Set the ObjectName of the INameable object. This should only be set once. If it is called a second time an IllegalStateException should be thrown
Parameters:
  name - the Object's name.
throws:
  IllegalStateException - if this method is called more than once for an object



setRootNodeCollapsedImage
public void setRootNodeCollapsedImage(String rootNodeCollapsedImage)(Code)
Sets the name of the collapsed image for the root node.
Parameters:
  rootNodeCollapsedImage - the name of the collapsed image to display. This will be searchedfor below the image root.



setRootNodeExpandedImage
public void setRootNodeExpandedImage(String rootNodeExpandedImage)(Code)
Sets the expanded image for the root node.
Parameters:
  rootNodeExpandedImage - the name of the image to display. This will be searchedfor below the image root.



setTreeRenderState
public void setTreeRenderState(TreeRenderState trs)(Code)
Set the TreeRenderState
Parameters:
  trs -



Fields inherited from org.apache.beehive.netui.tags.tree.TreeElement
final public static String EXPAND_NODE(Code)(Java Doc)
final public static String SELECTED_NODE(Code)(Java Doc)
final public static String TREE_AJAX_COMMAND_PREFIX(Code)(Java Doc)
final public static String TREE_AJAX_PARAMTER(Code)(Java Doc)
final public static String TREE_ANCHOR(Code)(Java Doc)
final public static String TREE_ANCHOR_ID(Code)(Java Doc)
final public static String TREE_ANCHOR_INIT(Code)(Java Doc)
final public static String TREE_COLLAPSE_IMAGE(Code)(Java Doc)
final public static String TREE_COLLAPSE_STATE(Code)(Java Doc)
final public static String TREE_EXPAND(Code)(Java Doc)
final public static String TREE_EXPANDED(Code)(Java Doc)
final public static String TREE_EXPAND_IMAGE(Code)(Java Doc)
final public static String TREE_EXPAND_PATH(Code)(Java Doc)
final public static String TREE_EXPAND_STATE(Code)(Java Doc)
final public static String TREE_ID(Code)(Java Doc)
final public static String TREE_JAVASCRIPT_CLASS(Code)(Java Doc)
final public static String TREE_LEVEL(Code)(Java Doc)
final public static String TREE_NODE_LAST(Code)(Java Doc)
public ArrayList _attribute(Code)(Java Doc)

Methods inherited from org.apache.beehive.netui.tags.tree.TreeElement
public void addAttribute(TreeHtmlAttributeInfo attr)(Code)(Java Doc)
public void addChild(TreeElement child) throws IllegalArgumentException(Code)(Java Doc)
public void addChild(int offset, TreeElement child) throws IllegalArgumentException(Code)(Java Doc)
public void addParameter(String name, Object value, String facet)(Code)(Java Doc)
public void clearChildren()(Code)(Java Doc)
public TreeElement findNode(String nodeName)(Code)(Java Doc)
public String getAction()(Code)(Java Doc)
public ArrayList getAttributeList()(Code)(Java Doc)
public TreeElement getChild(int index)(Code)(Java Doc)
public TreeElement[] getChildren()(Code)(Java Doc)
public String getClientAction()(Code)(Java Doc)
public String getContent()(Code)(Java Doc)
public String getHref()(Code)(Java Doc)
public String getIcon()(Code)(Java Doc)
public InheritableState getInheritableState()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public int getLevel()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HashMap getParams()(Code)(Java Doc)
public TreeElement getParent()(Code)(Java Doc)
public static TreeElement getRoot(TreeElement node)(Code)(Java Doc)
public String getScope()(Code)(Java Doc)
public String getTagId()(Code)(Java Doc)
public String getTarget()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public boolean isDisabled()(Code)(Java Doc)
public boolean isExpandOnServer()(Code)(Java Doc)
public boolean isExpanded()(Code)(Java Doc)
public boolean isLabelLegalAsAlt()(Code)(Java Doc)
public boolean isLast()(Code)(Java Doc)
public boolean isLeaf()(Code)(Java Doc)
public boolean isSelected()(Code)(Java Doc)
public void onExpand(ServletRequest request, ServletResponse response)(Code)(Java Doc)
public void onSelect(ServletRequest request)(Code)(Java Doc)
public void removeChild(int offset)(Code)(Java Doc)
public void removeChild(TreeElement child)(Code)(Java Doc)
public void setAction(String action)(Code)(Java Doc)
public void setClientAction(String clientAction)(Code)(Java Doc)
public void setContent(String content)(Code)(Java Doc)
public void setDisabled(boolean disabled)(Code)(Java Doc)
public void setExpandOnServer(boolean expandOnServer)(Code)(Java Doc)
public void setExpanded(boolean expanded)(Code)(Java Doc)
public void setHref(String href)(Code)(Java Doc)
public void setIcon(String icon)(Code)(Java Doc)
public void setInheritableState(InheritableState state)(Code)(Java Doc)
public void setLabel(String label)(Code)(Java Doc)
protected void setName(String name)(Code)(Java Doc)
protected void setParent(TreeElement parent)(Code)(Java Doc)
public void setScope(String scope)(Code)(Java Doc)
public void setSelected(boolean selected)(Code)(Java Doc)
public void setTagId(String tagId)(Code)(Java Doc)
public void setTarget(String target)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public int size()(Code)(Java Doc)
protected void updateName(TreeElement parentNode, int index)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.