public interface ComponentResources extends ComponentResourcesCommon
| Modifier and Type | Method and Description | 
|---|---|
| void | addPageLifecycleListener(PageLifecycleListener listener)Deprecated. 
 In 5.3.4, use  getPageLifecycleCallbackHub()instead | 
| void | discardPersistentFieldChanges()Discards all persistent field changes for the page containing the component. | 
| AnnotationProvider | getAnnotationProvider(java.lang.String parameterName)Returns an annotation provider, used to obtain annotations related to the parameter. | 
| Resource | getBaseResource()Returns the base resource for the component, which will represent the class's location within the classpath (this
 is used to resolve relative assets). | 
| Block | getBlockParameter(java.lang.String parameterName)Used to access an informal parameter that's a Block. | 
| java.lang.reflect.Type | getBoundGenericType(java.lang.String parameterName)Returns the generic type of the bound parameter, or null if the parameter is not bound. | 
| java.lang.Class | getBoundType(java.lang.String parameterName)Returns the actual type of the bound parameter, or null if the parameter is not bound. | 
| Component | getComponent()Returns the component this object provides resources for. | 
| ComponentModel | getComponentModel()Returns the component model object that defines the behavior of the component. | 
| Component | getContainer()Returns the component which contains this component, or null for the root component. | 
| Messages | getContainerMessages()Returns the  Messagesfrom the container, or null if this is the root component (with no container). | 
| ComponentResources | getContainerResources()Returns the  ComponentResourcesfor the container, or null if the this is the root component (that has no
 container). | 
| java.lang.String | getElementName()Returns the name of element that represents the component in its template, or null if not known. | 
| Component | getEmbeddedComponent(java.lang.String embeddedId)Returns an embedded component, given the component's id. | 
| <T> T | getInformalParameter(java.lang.String name,
                    java.lang.Class<T> type)Reads an informal parameter and coerces the bound
 value to the indicated type. | 
| java.util.List<java.lang.String> | getInformalParameterNames()Returns a list of the names of any informal parameters bound to this component. | 
| Messages | getMessages()Returns the message catalog for this component. | 
| Component | getPage()Returns the page that contains this component. | 
| PageLifecycleCallbackHub | getPageLifecycleCallbackHub()Provides access to an object that can be used to register callbacks for page lifecycle events. | 
| <T extends java.lang.annotation.Annotation> | getParameterAnnotation(java.lang.String parameterName,
                      java.lang.Class<T> annotationType)Obtains an annotation provided by a parameter. | 
| java.lang.Object | getRenderVariable(java.lang.String name)Returns a previously stored render variable. | 
| boolean | isBound(java.lang.String parameterName)Returns true if the named parameter is bound, false if not. | 
| boolean | isMixin()Returns true if these resources represent a mixin to another component. | 
| void | removePageLifecycleListener(PageLifecycleListener listener)Deprecated. 
 in 5.3.4, not necessary with  PageLifecycleCallbackHub.addPageLoadedCallback(Runnable). | 
| void | renderInformalParameters(MarkupWriter writer)Indentifies all parameters that are not formal parameters and writes each as a attribute/value pair into the
 current element of the markup writer. | 
| void | storeRenderVariable(java.lang.String name,
                   java.lang.Object value)Stores a render variable, accessible with the provided name. | 
createEventLink, createFormEventLink, findBlock, getBlock, getBody, getCompleteId, getElementName, getId, getLocale, getLogger, getNestedId, getPageName, getResourceSelector, hasBody, isRendering, triggerContextEvent, triggerEventgetLocationResource getBaseResource()
ComponentModel getComponentModel()
Component getComponent()
Component getContainer()
ComponentResources getContainerResources()
ComponentResources for the container, or null if the this is the root component (that has no
 container). As a special case, for a mixin, this returns the core component's resources.Messages getContainerMessages()
Messages from the container, or null if this is the root component (with no container). As a
 special case, for a mixin, this return the core component's messages.Component getPage()
Component getEmbeddedComponent(java.lang.String embeddedId)
embeddedId - selects the embedded component (case is ignored)UnknownValueException - if this component does not contain a component with the given idboolean isBound(java.lang.String parameterName)
<T extends java.lang.annotation.Annotation> T getParameterAnnotation(java.lang.String parameterName, java.lang.Class<T> annotationType)
parameterName - name of parameter to search for the annotationannotationType - the type of annotationvoid renderInformalParameters(MarkupWriter writer)
writer - to which attributes will be writtenMessages getMessages()
java.lang.Class getBoundType(java.lang.String parameterName)
parameterName - used to select the parameter (case is ignored)Binding.getBindingType()java.lang.reflect.Type getBoundGenericType(java.lang.String parameterName)
parameterName - used to select the parameter (case is ignored)Binding.getBindingType()AnnotationProvider getAnnotationProvider(java.lang.String parameterName)
parameterName - used to select the parameter (case is ignored)Block getBlockParameter(java.lang.String parameterName)
parameterName - the name of the informal parameter (case is ignored)java.lang.Object getRenderVariable(java.lang.String name)
name - of the variable (case will be ignored)java.lang.IllegalArgumentException - if the name doesn't correspond to a stored valuevoid storeRenderVariable(java.lang.String name, java.lang.Object value)
name - of value to storevalue - value to store (may not be null)java.lang.IllegalStateException - if the component is not currently renderingvoid addPageLifecycleListener(PageLifecycleListener listener)
getPageLifecycleCallbackHub() insteadPageLifecycleCallbackHub getPageLifecycleCallbackHub()
void removePageLifecycleListener(PageLifecycleListener listener)
PageLifecycleCallbackHub.addPageLoadedCallback(Runnable).void discardPersistentFieldChanges()
Session) which will take effect in the
 next request (the attached page instance is not affected).java.lang.String getElementName()
java.util.List<java.lang.String> getInformalParameterNames()
SupportsInformalParameters<T> T getInformalParameter(java.lang.String name, java.lang.Class<T> type)
name - name of informal parametertype - output value type${project.version} - Copyright © 2003-2015 The Apache Software Foundation.