Java Doc for TreeTag.java in  » Groupware » ivatagroupware » com » ivata » groupware » web » tag » webgui » 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 » Groupware » ivatagroupware » com.ivata.groupware.web.tag.webgui.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ivata.groupware.web.tag.webgui.tree.TreeTag

TreeTag
public class TreeTag extends ControlTag (Code)

Create a tree from a javax.swing.tree.TreeModel TreeModel .

This tree can be displayed is displayed as an HTML table with links on each node.

Tag attributes:
attribute reqd. param. class description
defaultOpen true boolean Set to true if you want tree nodes to be open by default. Otherwise they will be closed.
model true javax.swing.tree.TreeModel javax.swing.tree.TreeModel This model contains the data source for the tree. To use any datasource with this tree control, you should first create a class which implements javax.swing.tree,TreeModel TreeModel .
renderer false com.ivata.groupware.web.tree.TreeNodeRenderercom.ivata.groupware.web.tree.TreeNodeRenderer This object controls the appearance of each node in the tree, usually by parsing sections from the com.ivata.groupware.web.theme.ThemeTheme .
If you do not use this attribute, an instance of com.ivata.groupware.web.DefaultTreeNodeRendererDefaultTreeNodeRenderer is created and applied.
treeName true String Specifies a unique identifier for this tree, which is used to store the state of each foler (open/closed).
userName true String Name of the user for whom to draw the tree. The state of each node is stored for this user and the appearance in recalled the next time the tree is drawn.


since:
   2001-12-15
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
version:
   $Revision: 1.3 $


Field Summary
final static  StringCHILDREN_PROPERTY
    

Constructor Summary
public  TreeTag()
    

Method Summary
public  intdoStartTag()
    
final public  IntegergetCloseFolder()
    
final public  booleangetDefaultOpen()
    
final public  StringgetFormName()
    
final public  TreeModelgetModel()
    

Get the value supplied to the attribute 'model'.

This model contains the data source for the tree.

final public  IntegergetOpenFolder()
    
final public  TreeNodeRenderergetRenderer()
    
final public  StringgetTreeName()
    
final public  voidsetCloseFolder(Integer closeFolderParam)
    
final public  voidsetDefaultOpen(boolean defaultOpenParam)
    
final public  voidsetFormName(String formNameParam)
    
final public  voidsetModel(TreeModel modelParam)
    

Set the value supplied to the attribute 'model'.

This model contains the data source for the tree.

final public  voidsetOpenFolder(Integer openFolderParam)
    

Specifies the id of a folder you wish to open.


Parameters:
  openFolderParam - the new value of the folder you wish to open.
final public  voidsetRenderer(TreeNodeRenderer rendererParam)
    
final public  voidsetTreeName(String treeNameParam)
    

Field Detail
CHILDREN_PROPERTY
final static String CHILDREN_PROPERTY(Code)

This is the special property used to identify the location of the children in the open tag.

Note that this has to be specified exactly, with no spaces.





Constructor Detail
TreeTag
public TreeTag()(Code)

Default constructor.





Method Detail
doStartTag
public int doStartTag() throws JspException(Code)

This method is called when the JSP engine encounters the start tag, after the attributes are processed.

Scripting variables (if any) have their values set here.

SKIP_BODY if this tag has no body or itshould be skipped, otherwise EVAL_BODY_BUFFERED
throws:
  JspException - if there is an error retrieving thenavigationobject.
throws:
  JspException - if there is no settings object in thesession.
throws:
  JspException - if there is an error wrting toout.print()



getCloseFolder
final public Integer getCloseFolder()(Code)

Specifies the id of a folder you wish to close.

the current value of the folder which will be closed, ornull if no folder will be closed.



getDefaultOpen
final public boolean getDefaultOpen()(Code)

Decides whether folders should be open or closed by default.

true if folders should be opened by default,otherwise false.



getFormName
final public String getFormName()(Code)

Get the name of form which will submit when you open or close folder.

String name of form



getModel
final public TreeModel getModel()(Code)

Get the value supplied to the attribute 'model'.

This model contains the data source for the tree. To use any datasource with this tree control, you should first create a class which implements javax.swing.tree,TreeModel TreeModel .

the value supplied to the tag attribute 'model'.



getOpenFolder
final public Integer getOpenFolder()(Code)

Specifies the id of a folder you wish to open.

the current value of the folder which will be opened, ornull if no folder will be opened.



getRenderer
final public TreeNodeRenderer getRenderer()(Code)

Get the value supplied to the attribute 'renderer'.

This object controls the appearance of each node in the tree, usually by parsing sections from the com.ivata.groupware.web.theme.ThemeTheme .
If you do not use this attribute, an instance of com.ivata.groupware.web.DefaultTreeNodeRendererDefaultTreeNodeRenderer is created and applied.

the value supplied to the tag attribute 'renderer'.



getTreeName
final public String getTreeName()(Code)

Get the value supplied to the attribute 'treeName'.

This attribute specifies a unique identifier for this tree, which is used to store the state of each foler (open/closed).

the value supplied to the tag attribute 'treeName'.



setCloseFolder
final public void setCloseFolder(Integer closeFolderParam)(Code)

Specifies the id of a folder you wish to close.


Parameters:
  closeFolderParam - the new value of the folder you wish to close.Not setting or setting to null results in no folder beingclosed.



setDefaultOpen
final public void setDefaultOpen(boolean defaultOpenParam)(Code)

Decides whether folders should be open or closed by default.


Parameters:
  defaultOpenParam - set to true if folders should beopened by default, otherwise false.



setFormName
final public void setFormName(String formNameParam)(Code)

Set the name of form submit when you open or close a folder.


Parameters:
  formNameParam - The name of form submit when you open or close afolder.



setModel
final public void setModel(TreeModel modelParam)(Code)

Set the value supplied to the attribute 'model'.

This model contains the data source for the tree. To use any datasource with this tree control, you should first create a class which implements javax.swing.tree,TreeModel TreeModel .


Parameters:
  modelParam - the new value supplied to the tag attribute 'model'.



setOpenFolder
final public void setOpenFolder(Integer openFolderParam)(Code)

Specifies the id of a folder you wish to open.


Parameters:
  openFolderParam - the new value of the folder you wish to open. Notsettingor setting to null results in no folder being opened.



setRenderer
final public void setRenderer(TreeNodeRenderer rendererParam)(Code)

Set the value supplied to the attribute 'renderer'.

This object controls the appearance of each node in the tree, usually by parsing sections from the com.ivata.groupware.web.theme.ThemeTheme .
If you do not use this attribute, an instance of com.ivata.groupware.web.DefaultTreeNodeRendererDefaultTreeNodeRenderer is created and applied.


Parameters:
  rendererParam - the new value supplied to the tag attribute'renderer'.



setTreeName
final public void setTreeName(String treeNameParam)(Code)

Set the value supplied to the attribute 'treeName'.

This attribute specifies a unique identifier for this tree, which is used to store the state of each foler (open/closed).


Parameters:
  treeNameParam - the new value supplied to the tag attribute'treeName'.



w_w_w_.jav___a2__s___.___c__o__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.