|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentPageElementResources
Provides access to common methods of various services, needed by implementations of ComponentPageElement
and
InternalComponentResources
.
Method Summary | ||
---|---|---|
|
coerce(S input,
Class<T> targetType)
Performs a coercion from an input type to a desired output type. |
|
Link |
createComponentEventLink(ComponentResources resources,
String eventType,
boolean forForm,
Object... context)
Creates a link on behalf of a component. |
|
Link |
createPageRenderLink(Class pageClass,
boolean override,
Object... context)
Creates a page render request link to render a specific page. |
|
Link |
createPageRenderLink(String pageName,
boolean override,
Object... context)
Creates a page render request link to render a specific page. |
|
|
createPerThreadValue()
Wrapper around PerthreadManager.createValue() . |
|
org.slf4j.Logger |
getEventLogger(org.slf4j.Logger componentLogger)
Returns the event logger for the provided component logger. |
|
Messages |
getMessages(ComponentModel componentModel)
Used to obtain a Messages instance for a particular component. |
|
ComponentResourceSelector |
getSelector()
Returns the selector associated with this resources. |
|
Class |
toClass(String className)
Gets the Class instance for then give name. |
Methods inherited from interface org.apache.tapestry5.services.ContextValueEncoder |
---|
toClient, toValue |
Methods inherited from interface org.apache.tapestry5.ioc.OperationTracker |
---|
invoke, run |
Method Detail |
---|
ComponentResourceSelector getSelector()
Messages getMessages(ComponentModel componentModel)
Messages
instance for a particular component. If the component
extends from another component, then its localized properties will merge with its parent's properties (with the
subclass overriding the super class on any conflicts).
componentModel
-
ComponentMessagesSource
<S,T> T coerce(S input, Class<T> targetType)
S
- source type (input)T
- target type (output)input
- targetType
- defines the target type
TypeCoercer
Class toClass(String className)
className
- fully qualified class name
ComponentClassCache
Link createComponentEventLink(ComponentResources resources, String eventType, boolean forForm, Object... context)
resources
- resources for the componenteventType
- type of event to createforForm
- true if generating for a form submissioncontext
- additional event context associated with the link
Link createPageRenderLink(String pageName, boolean override, Object... context)
pageName
- the logical name of the page to link tooverride
- if true, the context is used even if empty (normally, the target page is allowed to passivate,
providing a context, when the provided context is empty)context
- the activation context for the page. If omitted, the activation context is obtained from the
target page
Link createPageRenderLink(Class pageClass, boolean override, Object... context)
pageClass
- identifies the page to link tooverride
- if true, the context is used even if empty (normally, the target page is allowed to passivate,
providing a context, when the provided context is empty)context
- the activation context for the page. If omitted, the activation context is obtained from the
target page
org.slf4j.Logger getEventLogger(org.slf4j.Logger componentLogger)
componentLogger
- provides base name for logger
<T> PerThreadValue<T> createPerThreadValue()
PerthreadManager.createValue()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |