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 defaultLinkCreationListener2
that triggers theEventConstants.DECORATE_COMPONENT_EVENT_LINK
andEventConstants.DECORATE_PAGE_RENDER_LINK
events 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 void
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 Detail
-
LinkDecorationListener
public LinkDecorationListener(ComponentClassResolver resolver, ComponentSource componentSource, ComponentModelSource modelSource)
-
-
Method Detail
-
createdComponentEventLink
public void createdComponentEventLink(Link link, ComponentEventRequestParameters parameters)
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
public void createdPageRenderLink(Link link, PageRenderRequestParameters parameters)
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
-
-