|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.LinkSourceImpl
public class LinkSourceImpl
Constructor Summary | |
---|---|
LinkSourceImpl(PageRenderQueue pageRenderQueue,
PageActivationContextCollector contextCollector,
TypeCoercer typeCoercer,
ComponentClassResolver resolver,
ComponentEventLinkEncoder linkEncoder,
RequestGlobals requestGlobals,
RequestPageCache pageCache,
List<LinkCreationListener2> configuration)
|
Method Summary | |
---|---|
void |
addListener(LinkCreationListener listener)
Adds a listener. |
void |
addListener(LinkCreationListener2 listener)
Adds a listener. |
Link |
createComponentEventLink(Page page,
String nestedId,
String eventType,
boolean forForm,
Object... eventContext)
Creates a stateful action link. |
Link |
createPageRenderLink(String pageName,
boolean override,
Object... pageActivationContext)
Creates a render link for the page. |
LinkCreationHub |
getLinkCreationHub()
Returns the hub, used to register and de-register LinkCreationListener2 s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkSourceImpl(PageRenderQueue pageRenderQueue, PageActivationContextCollector contextCollector, TypeCoercer typeCoercer, ComponentClassResolver resolver, ComponentEventLinkEncoder linkEncoder, RequestGlobals requestGlobals, RequestPageCache pageCache, List<LinkCreationListener2> configuration)
Method Detail |
---|
public Link createComponentEventLink(Page page, String nestedId, String eventType, boolean forForm, Object... eventContext)
LinkSource
createComponentEventLink
in interface LinkSource
page
- the page holding the componentnestedId
- the component's qualified id (a sequence of simple ids, separated by dots).eventType
- the type of event to triggerforForm
- true if the link is for a form, false otherwiseeventContext
- Additional path data, each value will be converted to a string and appended to the URI @return a
linkComponentResourcesCommon.createActionLink(String, boolean, Object[])
public Link createPageRenderLink(String pageName, boolean override, Object... pageActivationContext)
LinkSource
createPageRenderLink
in interface LinkSource
pageName
- name of the page to which a link should be createdoverride
- if true, then the provided activation context is always used even if emptypageActivationContext
- the activation context for the page
ComponentResourcesCommon.createPageLink(String, boolean, Object[])
public LinkCreationHub getLinkCreationHub()
LinkSource
LinkCreationListener2
s.
getLinkCreationHub
in interface LinkSource
public void addListener(LinkCreationListener listener)
LinkCreationHub
addListener
in interface LinkCreationHub
public void addListener(LinkCreationListener2 listener)
LinkCreationHub
addListener
in interface LinkCreationHub
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |