| org.apache.tapestry.runtime.Component
Component | public interface Component extends ComponentResourcesAware,PageLifecycleListener(Code) | | Interface that defining the lifecycle of a component, within a page, allowing for callbacks into
the component for many different events. This interface is part of the public API for Tapestry,
but is not expected to be directly implemented by component classes; it should only be
implemented as part of the component class transformation process.
Most of the methods are related to render phases; see the corresponding annotations and component
rendering documentation to see how they relate to each other.
This interface is likely to change without notice.
|
afterRenderBody | void afterRenderBody(MarkupWriter writer, Event event)(Code) | | Invoked just after rendering the body of the component.
|
afterRenderTemplate | void afterRenderTemplate(MarkupWriter writer, Event event)(Code) | | Invoked after rendering the template for a component (only for components with a template).
|
beforeRenderBody | void beforeRenderBody(MarkupWriter writer, Event event)(Code) | | Invoked just before rendering the body of component.
|
beforeRenderTemplate | void beforeRenderTemplate(MarkupWriter writer, Event event)(Code) | | This phase is only invoked for components with templates.
|
beginRender | void beginRender(MarkupWriter writer, Event event)(Code) | | Invoked to allow a component to render its tag (start tag and attributes).
|
cleanupRender | void cleanupRender(MarkupWriter writer, Event event)(Code) | | Generally used to perform final cleanup of the component after rendering.
|
handleComponentEvent | boolean handleComponentEvent(ComponentEvent event)(Code) | | Invoked to handle a component event. Methods with the
OnEvent annotation will be
invoked until one returns a non-null value.
Parameters: event - true if any handler was found (and invoked), false otherwise |
postRenderCleanup | void postRenderCleanup()(Code) | | Lifecycle method invoked at the end of the
org.apache.tapestry.annotations.CleanupRender render phase. There is no annotation
for this method, it is part of CleanupRender, but is always invoked. Its specific use is to
allow components to clean up cached parameter values.
|
setupRender | void setupRender(MarkupWriter writer, Event event)(Code) | | Invoked before rendering a component (or its template).
|
|
|