Java Doc for TreeControl.java in  » Web-Framework » jWic » de » jwic » controls » 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 » Web Framework » jWic » de.jwic.controls 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.jwic.base.Control
      de.jwic.controls.TreeControl

TreeControl
public class TreeControl extends Control (Code)
A TreeControl is a tree that displays TreeNode objects that can be clicked. $Id: TreeControl.java,v 1.3 2007/04/26 16:14:25 lordsam Exp $
version:
   $Revision: 1.3 $
author:
   JBornemann


Field Summary
final public static  StringACTION_CLICK
    
final public static  StringACTION_COLLAPSE
    
final public static  StringACTION_DESELECT
    
final public static  StringACTION_EXPAND
    
final public static  StringACTION_SELECT
    
final public static  intCLICK_MODE_DISPATCH_ONLY
     Only ElemententSelectedEvent is dispatched.
final public static  intCLICK_MODE_MULTI_SELECT_DESELECT
     Select or deselect the clicked node. ElemententSelectedEvent is dispatched. Allows multi select.
final public static  intCLICK_MODE_SELECT
     Select the clicked node.
final public static  intCLICK_MODE_SELECT_EXPAND
     Select the clicked node.
protected  intclickMode
    
protected  HashSetexpanded
    
protected  booleanrenderRootNode
    
protected  TreeNoderootNode
    
protected  HashSetselected
    
protected  ListselectionListeners
    

Constructor Summary
public  TreeControl(IControlContainer container)
    
public  TreeControl(IControlContainer container, String name)
    

Method Summary
public  voidactionPerformed(String actionId, String parameter)
    
public  voidaddElementSelectedListener(ElementSelectedListener listener)
     Register a listener that will be notified when node will be selected.
public  voidclearSelection()
     Clear the selected elements.
public  voidclick(String nodeID)
     Click the node.
public  voidcollapse(String nodeID)
     Collapse the node.
public  voiddeselect(String nodeID)
     Deselect the node.
public static  voiddoMultiSelect(TreeControl tree, String nodeID)
     Do the multi select.
public static  voiddoSelect(TreeControl tree, String nodeID)
     Do the select and expand.
public static  voiddoSelectExpand(TreeControl tree, String nodeID)
     Do the select and expand.
public  voidexpand(String nodeID)
     Expand the node.
public  voidexpandAll(String nodeID)
     Expands the node and all its parents.
public  intgetClickMode()
     Sets the clicked mode.
public  IteratorgetEntries()
     Returns an Iterator of TreeControlNode objects that hold the TreeNode for rendering.
public  SetgetExpanded()
     Returns the Set of the expanded nodeID Strings.
public  TreeNodegetNode(String nodeID)
     Returns the TreeNode found by its nodeID.
public static  StringgetNodeID(TreeNode node)
    
public  TreeNodegetRootNode()
     Returns the root node.
public  SetgetSelected()
     Returns the Set of the selected nodeID Strings.
public  booleanisRenderRootNode()
     If true (default) the root node is rendered.
public  voidremoveElementSelectedListener(ElementSelectedListener listener)
     Remove a listener.
public  voidselect(String nodeID)
     Select the node.
protected  voidsendElementSelectedEvent(String nodeID)
     Send the element selected event to the registerd listeners.
public  voidsetClickMode(int clickMode)
     Return the clicked mode.
public  voidsetRenderRootNode(boolean renderRootNode)
     Returns if the root node is renderd.
public  voidsetRootNode(TreeNode node)
     Sets the root node.

Field Detail
ACTION_CLICK
final public static String ACTION_CLICK(Code)
Click action for clicking on a node's title



ACTION_COLLAPSE
final public static String ACTION_COLLAPSE(Code)



ACTION_DESELECT
final public static String ACTION_DESELECT(Code)



ACTION_EXPAND
final public static String ACTION_EXPAND(Code)



ACTION_SELECT
final public static String ACTION_SELECT(Code)



CLICK_MODE_DISPATCH_ONLY
final public static int CLICK_MODE_DISPATCH_ONLY(Code)
Only ElemententSelectedEvent is dispatched.



CLICK_MODE_MULTI_SELECT_DESELECT
final public static int CLICK_MODE_MULTI_SELECT_DESELECT(Code)
Select or deselect the clicked node. ElemententSelectedEvent is dispatched. Allows multi select.



CLICK_MODE_SELECT
final public static int CLICK_MODE_SELECT(Code)
Select the clicked node. If selected nodes exist before the sel is cleard. ElemententSelectedEvent is dispatched.



CLICK_MODE_SELECT_EXPAND
final public static int CLICK_MODE_SELECT_EXPAND(Code)
Select the clicked node. If selected nodes exist before the sel is cleard. If the node has children it is expanded. ElemententSelectedEvent is dispatched. This is the default click mode.



clickMode
protected int clickMode(Code)



expanded
protected HashSet expanded(Code)
Set of nodeID String of expanded TreeNodes



renderRootNode
protected boolean renderRootNode(Code)
Render root node



rootNode
protected TreeNode rootNode(Code)
Root TreeNode of this tree



selected
protected HashSet selected(Code)
Set of nodeID String of selected TreeNodes



selectionListeners
protected List selectionListeners(Code)
List of listender to inform




Constructor Detail
TreeControl
public TreeControl(IControlContainer container)(Code)

Parameters:
  container -



TreeControl
public TreeControl(IControlContainer container, String name)(Code)

Parameters:
  container -
Parameters:
  name -




Method Detail
actionPerformed
public void actionPerformed(String actionId, String parameter)(Code)



addElementSelectedListener
public void addElementSelectedListener(ElementSelectedListener listener)(Code)
Register a listener that will be notified when node will be selected.
Parameters:
  listener -



clearSelection
public void clearSelection()(Code)
Clear the selected elements.



click
public void click(String nodeID)(Code)
Click the node.
Parameters:
  nodeID -



collapse
public void collapse(String nodeID)(Code)
Collapse the node.
Parameters:
  nodeID -



deselect
public void deselect(String nodeID)(Code)
Deselect the node.
Parameters:
  nodeID -



doMultiSelect
public static void doMultiSelect(TreeControl tree, String nodeID)(Code)
Do the multi select.
Parameters:
  tree -
Parameters:
  nodeID -



doSelect
public static void doSelect(TreeControl tree, String nodeID)(Code)
Do the select and expand.
Parameters:
  tree -
Parameters:
  nodeID -



doSelectExpand
public static void doSelectExpand(TreeControl tree, String nodeID)(Code)
Do the select and expand.
Parameters:
  tree -
Parameters:
  nodeID -



expand
public void expand(String nodeID)(Code)
Expand the node.
Parameters:
  nodeID -



expandAll
public void expandAll(String nodeID)(Code)
Expands the node and all its parents.
Parameters:
  nodeID -



getClickMode
public int getClickMode()(Code)
Sets the clicked mode. CLICK_MODE_SELECT_EXPAND and CLICK_MODE_MULTI_SELECT_DESELECT are supported. Returns the clickMode.



getEntries
public Iterator getEntries()(Code)
Returns an Iterator of TreeControlNode objects that hold the TreeNode for rendering.



getExpanded
public Set getExpanded()(Code)
Returns the Set of the expanded nodeID Strings.



getNode
public TreeNode getNode(String nodeID)(Code)
Returns the TreeNode found by its nodeID. The root node's nodeID is "0". Root node's first child's nodeID is "0-0";
Parameters:
  nodeID -



getNodeID
public static String getNodeID(TreeNode node)(Code)



getRootNode
public TreeNode getRootNode()(Code)
Returns the root node.



getSelected
public Set getSelected()(Code)
Returns the Set of the selected nodeID Strings.



isRenderRootNode
public boolean isRenderRootNode()(Code)
If true (default) the root node is rendered. renderRootNode



removeElementSelectedListener
public void removeElementSelectedListener(ElementSelectedListener listener)(Code)
Remove a listener.
Parameters:
  listener -



select
public void select(String nodeID)(Code)
Select the node.
Parameters:
  nodeID -



sendElementSelectedEvent
protected void sendElementSelectedEvent(String nodeID)(Code)
Send the element selected event to the registerd listeners.



setClickMode
public void setClickMode(int clickMode)(Code)
Return the clicked mode. CLICK_MODE_SELECT_EXPAND and CLICK_MODE_MULTI_SELECT_DESELECT are supported.
Parameters:
  clickMode -



setRenderRootNode
public void setRenderRootNode(boolean renderRootNode)(Code)
Returns if the root node is renderd.
Parameters:
  renderRootNode -



setRootNode
public void setRootNode(TreeNode node)(Code)
Sets the root node.
Parameters:
  node -



Fields inherited from de.jwic.base.Control
final protected static String DEFAULT_OUTER_RENDERER(Code)(Java Doc)
final protected static String DEFAULT_RENDERER(Code)(Java Doc)
protected Map fields(Code)(Java Doc)
protected transient Log log(Code)(Java Doc)
protected String templateName(Code)(Java Doc)

Methods inherited from de.jwic.base.Control
public void actionPerformed(String actionId, String parameter)(Code)(Java Doc)
public String createActionURL(String action, String acpara)(Code)(Java Doc)
public String createFieldName(String fieldname)(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
public IControlContainer getContainer()(Code)(Java Doc)
public java.lang.String getControlID()(Code)(Java Doc)
public Field getField(String fieldname)(Code)(Java Doc)
public String getFieldValue(String fieldname)(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
public String getRendererId()(Code)(Java Doc)
public SessionContext getSessionContext()(Code)(Java Doc)
public String getTemplateName()(Code)(Java Doc)
public boolean isRequireRedraw()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void removeField(String fieldname)(Code)(Java Doc)
public void removeField(Field field)(Code)(Java Doc)
protected void requireRedraw()(Code)(Java Doc)
public void setFieldValue(String fieldname, String value)(Code)(Java Doc)
public void setFieldValue(String fieldname, String[] values)(Code)(Java Doc)
public void setRendererId(String rendererId)(Code)(Java Doc)
public void setRequireRedraw(boolean requireRedraw)(Code)(Java Doc)
public void setTemplateName(String templateName)(Code)(Java Doc)
public void setVisible(boolean newVisible)(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.