Class LinkDecorationListener
java.lang.Object
org.apache.tapestry5.internal.services.LinkDecorationListener
- All Implemented Interfaces:
LinkCreationListener2
A default
LinkCreationListener2
that triggers the EventConstants.DECORATE_COMPONENT_EVENT_LINK
and
EventConstants.DECORATE_PAGE_RENDER_LINK
events as links are generated.- Since:
- 5.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionLinkDecorationListener
(ComponentClassResolver resolver, ComponentSource componentSource, ComponentModelSource modelSource) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createdComponentEventLink
(Link link, ComponentEventRequestParameters parameters) Invoked when an action link (a link that asks a component to perform an action) is created.void
createdPageRenderLink
(Link link, PageRenderRequestParameters parameters) Invoked when a page link (a link that renders a page) is created.
-
Constructor Details
-
LinkDecorationListener
public LinkDecorationListener(ComponentClassResolver resolver, ComponentSource componentSource, ComponentModelSource modelSource)
-
-
Method Details
-
createdComponentEventLink
Description copied from interface:LinkCreationListener2
Invoked when an action link (a link that asks a component to perform an action) is created. The listener may decide to encode additional query parameters into the link (viaLink.addParameter(String, String)
).- Specified by:
createdComponentEventLink
in interfaceLinkCreationListener2
- Parameters:
link
- the newly created linkparameters
- information encoded into the link
-
createdPageRenderLink
Description copied from interface:LinkCreationListener2
Invoked when a page link (a link that renders a page) is created. The listener may decide to encode additional query parameters into the link (viaLink.addParameter(String, String)
).- Specified by:
createdPageRenderLink
in interfaceLinkCreationListener2
- Parameters:
link
- the newly created linkparameters
- information encoded into the link
-