Java Doc for Model.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » channels » jsp » 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 » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.channels.jsp.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jasig.portal.channels.jsp.tree.Model

Model
public class Model (Code)

author:
   Mark Boyd
author:
   TODO To change the template for this generated type comment go to
author:
   Window - Preferences - Java - Code Style - Code Templates



Constructor Summary
public  Model(Config cfg)
    

Method Summary
public  intgetActionLabelType()
    
public  intgetAspectLabelType()
    
public  ConfiggetConfig()
    
public  StringgetDomainAction()
     Returns the current domain action being rendered by the tree.
public  ListgetIndentImages()
    
public  ObjectgetLabelData()
     Returns the object acquired from implementations of one of two plugged-in interfaces depending on the label type being rendered.
public  intgetLabelType()
     Returns the current label type rendering being requested of the label renderer by the tree renderer.
public  NodegetNode()
     Returns the currently rendering node.
public  NodegetNodeForId(String id)
     returns the node with the specified id in the root node.
public static  NodegetNodeForId(String id, Node nodeToSearch)
     returns the node with the specified id in the specified node.
public  intgetNodeLabelType()
    
public  StringgetPopIndent()
    
public  NodegetRoot()
     Returns the root node of the tree.
public synchronized  booleangetStartRendering()
     The first time called this method marks this model as being in the midst of rendering and returns true.
public  MapgetTreeUrls()
     Used in the tree rendering JSP to translate supported JSP Map semantics to dynamic lookup of an expansion and collapse URLs for a passed in node id.
 NoderesolveAspect(Object o)
     Translates a domain object's aspect into the TreeNode that represents that aspect in the tree if a suitable surrogate is found.
 NoderesolveChild(Object o)
     Translates a domain object into the TreeNode that represents it if a suitable surrogate is found.
public  voidsetDomainAction(String action)
     Sets the current domain action being rendered by the tree.
public  voidsetExpandedForId(String id, boolean expanded)
     sets whether or not the specified node is expanded.
public synchronized  voidsetIsRendering(boolean b)
     Marks this model as not being in the midst of rendering.
public  voidsetLabelType(int labelType)
     Sets the current label type being requested of the label renderer by the tree renderer.
public  voidsetNode(Node node)
     Sets the currently rendering node.
public  voidsetPushIndent(String indentType)
    
public  voidsetRootDomainObject(Object root)
     Sets the root object to be translated into the root node of the tree.


Constructor Detail
Model
public Model(Config cfg)(Code)




Method Detail
getActionLabelType
public int getActionLabelType()(Code)



getAspectLabelType
public int getAspectLabelType()(Code)



getConfig
public Config getConfig()(Code)



getDomainAction
public String getDomainAction()(Code)
Returns the current domain action being rendered by the tree. This is called by the required label renderer JSP identified via getLabelRenderer().



getIndentImages
public List getIndentImages()(Code)



getLabelData
public Object getLabelData()(Code)
Returns the object acquired from implementations of one of two plugged-in interfaces depending on the label type being rendered. If label type is the same as the value returned by getNodeLabelType() or getAspectLabelType() then the returned object is acquired from the instance of ISurrogate that resolved the Node represented by getNode(). If the label type is the same as the value returned by getActionLabelType() then the returned object is acquired from the instance of IDomainActionSet.



getLabelType
public int getLabelType()(Code)
Returns the current label type rendering being requested of the label renderer by the tree renderer. This is called by the required label renderer JSP identified via getLabelRenderer().



getNode
public Node getNode()(Code)
Returns the currently rendering node. Called by the JSP renderer. Returns the node.



getNodeForId
public Node getNodeForId(String id)(Code)
returns the node with the specified id in the root node. if the id passed in to this method is the root node's id than the root node is returned.
Parameters:
  id - the id to search for. the node with the specified id.
author:
   Alexander Boyd



getNodeForId
public static Node getNodeForId(String id, Node nodeToSearch)(Code)
returns the node with the specified id in the specified node. if the node does not have children and the node's id is not the specified id than null is returned. if the specified id is not found in this node's hierarchy than null is returned. otherwise, the node with the specified id is returned. if more than one node in this hierarchy is found, it uses the first one it encounters.
Parameters:
  id - the id to search for.
Parameters:
  nodeToSearch - the node to search for id in. the node with the specified id, or null if none is found.
author:
   Alexander Boyd



getNodeLabelType
public int getNodeLabelType()(Code)



getPopIndent
public String getPopIndent()(Code)



getRoot
public Node getRoot()(Code)
Returns the root node of the tree. Returns the root.



getStartRendering
public synchronized boolean getStartRendering()(Code)
The first time called this method marks this model as being in the midst of rendering and returns true. Thereafter, it returns false until stopRendering has been called. This method is called by the JSP to learn if rendering started as a result of making this call. The method name was chosen for the resulting access in the JSP and is misleading when viewed here in the code. Returns true if the JSP is rendering the model.



getTreeUrls
public Map getTreeUrls()(Code)
Used in the tree rendering JSP to translate supported JSP Map semantics to dynamic lookup of an expansion and collapse URLs for a passed in node id. The following pattern in the JSP will cause this method to be called to obtain the Map represented by "treeUrls".
author:
   Mark Boyd



resolveAspect
Node resolveAspect(Object o)(Code)
Translates a domain object's aspect into the TreeNode that represents that aspect in the tree if a suitable surrogate is found. Called by the containing node to resolve its aspect nodes.
Parameters:
  o -



resolveChild
Node resolveChild(Object o)(Code)
Translates a domain object into the TreeNode that represents it if a suitable surrogate is found. Called by the containing node to resolve its child nodes.
Parameters:
  o -



setDomainAction
public void setDomainAction(String action)(Code)
Sets the current domain action being rendered by the tree. This is called by tree renderer to pass to the label renderer the action whose label is to be rendered. The required label renderer JSP is identified via getLabelRenderer().



setExpandedForId
public void setExpandedForId(String id, boolean expanded)(Code)
sets whether or not the specified node is expanded.
Parameters:
  id - the id of the container
Parameters:
  expanded - whether or not it is expanded.
throws:
  IllegalArgumentException - if the node specified by id is not a container or if there is nonode with the specified id.
throws:
  NullPointerException - if id is null.
author:
   Alexander Boyd



setIsRendering
public synchronized void setIsRendering(boolean b)(Code)
Marks this model as not being in the midst of rendering. This method is called by the JSP to indicate that rendering has completed The method name was chosen for the resulting access in the JSP and is misleading when viewed here in the code since it does have side affects from being called.



setLabelType
public void setLabelType(int labelType)(Code)
Sets the current label type being requested of the label renderer by the tree renderer. This is called by tree renderer to pass to the label renderer the label type to be rendered. The required label renderer JSP is identified via getLabelRenderer().



setNode
public void setNode(Node node)(Code)
Sets the currently rendering node. Called by the JSP renderer.
Parameters:
  node - The node to set.



setPushIndent
public void setPushIndent(String indentType)(Code)



setRootDomainObject
public void setRootDomainObject(Object root)(Code)
Sets the root object to be translated into the root node of the tree.
Parameters:
  root - The root to set.



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.