Java Doc for ComponentResourcesCommon.java in  » Library » Tapestry » org » apache » tapestry » 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 » Tapestry » org.apache.tapestry 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tapestry.ComponentResourcesCommon

ComponentResourcesCommon
public interface ComponentResourcesCommon extends Locatable(Code)
Operations shared by the public ComponentResources interface and ComponentPageElement interface (on the internal side).




Method Summary
 LinkcreateActionLink(String action, boolean forForm, Object... context)
     Creates a component action request link as a callback for this component.
 LinkcreatePageLink(String pageName, boolean override, Object... context)
     Creates a render request link to a specific page.
Parameters:
  pageName - the logical name of the page to link to
Parameters:
  override - if true, the context is used even if empty (normally, the target page is allowedto passivate, providing a context, when the provided context is empty)
Parameters:
  context - the activation context for the page.
 BlockfindBlock(String blockId)
     As with ComponentResourcesCommon.getBlock(String) , but returns null if the block is not found.
 BlockgetBlock(String blockId)
     Returns a block from the component's template, referenced by its id.
 StringgetCompleteId()
     Returns a string consisting of the fully qualified class name of the containing page, and the ComponentResourcesCommon.getNestedId() nested id of this component, separated by a colon.
 StringgetElementName()
     Returns the name of element that represents the component in its template, or null if the element was a component type (in the Tapestry namespace).
 StringgetId()
     Returns the id of the component.
 LocalegetLocale()
     Returns the locale for the page containing this component.
 LoggetLog()
     Returns the log instance associated with the component (which is based on the component or mixin's class name).
 StringgetNestedId()
     Return a string consisting the concatinated ids of all containing components, separated by periods.
 StringgetPageName()
     Returns the logical name of the page containing this component.
 booleanisRendering()
     Returns true if the component is currently rendering, false otherwise.
 booleantriggerEvent(String eventType, Object[] context, ComponentEventHandler handler)
     Triggers a component event.



Method Detail
createActionLink
Link createActionLink(String action, boolean forForm, Object... context)(Code)
Creates a component action request link as a callback for this component.
Parameters:
  action - a name for the action associated with the link
Parameters:
  forForm - if true, the link will be used as the action for an HTML form submission, whichmay affect what information is encoded into the link
Parameters:
  context - additional objects to be encoded into the path portion of the link; each isconverted to a string an URI encoded



createPageLink
Link createPageLink(String pageName, boolean override, Object... context)(Code)
Creates a render request link to a specific page.
Parameters:
  pageName - the logical name of the page to link to
Parameters:
  override - if true, the context is used even if empty (normally, the target page is allowedto passivate, providing a context, when the provided context is empty)
Parameters:
  context - the activation context for the page. If omitted, the activation context isobtained from the target paget



findBlock
Block findBlock(String blockId)(Code)
As with ComponentResourcesCommon.getBlock(String) , but returns null if the block is not found.
Parameters:
  blockId - the id of the block (case insensitive) the block, or null



getBlock
Block getBlock(String blockId)(Code)
Returns a block from the component's template, referenced by its id.
Parameters:
  blockId - the id of the block (case insensitive) the identified Block
throws:
  BlockNotFoundException - if no block with the given id exists
See Also:   ComponentResourcesCommon.findBlock(String)



getCompleteId
String getCompleteId()(Code)
Returns a string consisting of the fully qualified class name of the containing page, and the ComponentResourcesCommon.getNestedId() nested id of this component, separated by a colon. I.e., "MyPage:foo.bar.baz". For a page, returns just the page's logical name.

This value is often used to obtain an equivalent component instance in a later request.
See Also:   ComponentSource




getElementName
String getElementName()(Code)
Returns the name of element that represents the component in its template, or null if the element was a component type (in the Tapestry namespace). the element name



getId
String getId()(Code)
Returns the id of the component. The id will be unique within the component's immediate container. For a page's root component, the value null is returned.



getLocale
Locale getLocale()(Code)
Returns the locale for the page containing this component.



getLog
Log getLog()(Code)
Returns the log instance associated with the component (which is based on the component or mixin's class name).
See Also:   ComponentModel.getLog



getNestedId
String getNestedId()(Code)
Return a string consisting the concatinated ids of all containing components, separated by periods. In addition, nested ids are always all lower case. I.e., "foo.bar.baz". Returns null for a page.



getPageName
String getPageName()(Code)
Returns the logical name of the page containing this component. This is the short name (it often appears in URLs) the logical name of the page which contains this component



isRendering
boolean isRendering()(Code)
Returns true if the component is currently rendering, false otherwise. This is most often used to determine if parameter values should be cached.



triggerEvent
boolean triggerEvent(String eventType, Object[] context, ComponentEventHandler handler)(Code)
Triggers a component event. A search for an event handling method will occur, first in the component, then its container, and so on. When a matching event handler method is located, it is invoked. If the method returns a value, the value is passed to the handler (if handler is null, then it is an error for a method to return a non-null vavlue).

Resolution of event type to event handler methods is case insensitive.
Parameters:
  eventType - event type (as determined from the request, or otherwise by design)
Parameters:
  context - the context (as extracted from the request, or provided by the triggeringcomponent); these values may be provided to event handler methods via theirparameters (may be null)
Parameters:
  handler - the handler to be informed of the result, or null if the event is a notificationthat does not support return values from event handler methods (the value true isallowed even if the handler is null). true if any event handler was invoked (even if no event handler method returns anon-null value)
See Also:   OnEventWorker
See Also:   OnEvent




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.