Class LinkDecorationListener
- java.lang.Object
-
- org.apache.tapestry5.internal.services.LinkDecorationListener
-
- All Implemented Interfaces:
LinkCreationListener2
public class LinkDecorationListener extends java.lang.Object implements LinkCreationListener2
A defaultLinkCreationListener2that triggers theEventConstants.DECORATE_COMPONENT_EVENT_LINKandEventConstants.DECORATE_PAGE_RENDER_LINKevents as links are generated.- Since:
- 5.2.0
-
-
Constructor Summary
Constructors Constructor Description LinkDecorationListener(ComponentClassResolver resolver, ComponentSource componentSource, ComponentModelSource modelSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreatedComponentEventLink(Link link, ComponentEventRequestParameters parameters)Invoked when an action link (a link that asks a component to perform an action) is created.voidcreatedPageRenderLink(Link link, PageRenderRequestParameters parameters)Invoked when a page link (a link that renders a page) is created.
-
-
-
Constructor Detail
-
LinkDecorationListener
public LinkDecorationListener(ComponentClassResolver resolver, ComponentSource componentSource, ComponentModelSource modelSource)
-
-
Method Detail
-
createdComponentEventLink
public void createdComponentEventLink(Link link, ComponentEventRequestParameters parameters)
Description copied from interface:LinkCreationListener2Invoked 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:
createdComponentEventLinkin interfaceLinkCreationListener2- Parameters:
link- the newly created linkparameters- information encoded into the link
-
createdPageRenderLink
public void createdPageRenderLink(Link link, PageRenderRequestParameters parameters)
Description copied from interface:LinkCreationListener2Invoked 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:
createdPageRenderLinkin interfaceLinkCreationListener2- Parameters:
link- the newly created linkparameters- information encoded into the link
-
-