public class LinkDecorationListener extends java.lang.Object implements LinkCreationListener2
LinkCreationListener2
that triggers the EventConstants.DECORATE_COMPONENT_EVENT_LINK
and
EventConstants.DECORATE_PAGE_RENDER_LINK
events as links are generated.Constructor and Description |
---|
LinkDecorationListener(ComponentClassResolver resolver,
ComponentSource componentSource,
ComponentModelSource modelSource) |
Modifier and Type | Method and 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.
|
public LinkDecorationListener(ComponentClassResolver resolver, ComponentSource componentSource, ComponentModelSource modelSource)
public void createdComponentEventLink(Link link, ComponentEventRequestParameters parameters)
LinkCreationListener2
Link.addParameter(String, String)
).createdComponentEventLink
in interface LinkCreationListener2
link
- the newly created linkparameters
- information encoded into the linkpublic void createdPageRenderLink(Link link, PageRenderRequestParameters parameters)
LinkCreationListener2
Link.addParameter(String, String)
).createdPageRenderLink
in interface LinkCreationListener2
link
- the newly created linkparameters
- information encoded into the link${project.version} - Copyright © 2003-2015 The Apache Software Foundation.