Uses of Interface
org.apache.tapestry5.ComponentResources
-
Packages that use ComponentResources Package Description org.apache.tapestry5 Root package for Tapestry, containing common interfaces and data types used throughout the framework.org.apache.tapestry5.corelib.base Base components intended to be extended by other components rather than used directly in templates.org.apache.tapestry5.corelib.internal [INTERNAL USE ONLY] support classes for the Tapestry-core module; API subject to change core components.org.apache.tapestry5.internal [INTERNAL USE ONLY] internal support classes; API subject to change.org.apache.tapestry5.internal.beanvalidator [INTERNAL USE ONLY] JSR-303 Bean Validation implementation details; API subject to changeorg.apache.tapestry5.internal.bindings [INTERNAL USE ONLY] support classes for binding; API subject to changeorg.apache.tapestry5.internal.renderers [INTERNAL USE ONLY] support classes for component template rendering; API subject to changeorg.apache.tapestry5.internal.services [INTERNAL USE ONLY] internal service classes; API subject to changeorg.apache.tapestry5.internal.services.ajax [INTERNAL USE ONLY] AJAX support services; API subject to changeorg.apache.tapestry5.internal.services.compatibility org.apache.tapestry5.internal.structure [INTERNAL USE ONLY] page structure implementation details; API subject to change.org.apache.tapestry5.internal.transform [INTERNAL USE ONLY] component class transformation implementation classes; API subject to change.org.apache.tapestry5.runtime Contains interfaces that are added to component classes at runtime.org.apache.tapestry5.services Core servicesorg.apache.tapestry5.services.compatibility A more structured approach to tracking how compatibility features are enabled, as well as tracking compatibility exceptions.org.apache.tapestry5.services.dynamic Services supporting theDynamic
component.org.apache.tapestry5.services.javascript Support for Javascript (and CSS), including dynamically-added JavaScript and services that manage dynamically-added links to JavaScript (and CSS) assets.org.apache.tapestry5.test Support for testing Tapestry pages -
-
Uses of ComponentResources in org.apache.tapestry5
Methods in org.apache.tapestry5 that return ComponentResources Modifier and Type Method Description ComponentResources
ComponentResources. getContainerResources()
Returns theComponentResources
for the container, or null if the this is the root component (that has no container).Methods in org.apache.tapestry5 with parameters of type ComponentResources Modifier and Type Method Description FieldValidationSupport. clientValue, ComponentResources componentResources, > translator, NullFieldStrategy nullFieldStrategy)
A wrapper aroundTranslator.parseClient(Field, String, String)
.FieldValidationSupport. value, ComponentResources componentResources, > translator, NullFieldStrategy nullFieldStrategy)
A wrapper aroundTranslator.toClient(Object)
that first fires a "toclient" event on the component to see if it can perform the conversion.void
FieldValidationSupport. value, ComponentResources componentResources, FieldValidator validator)
Performs validation on a parsed value from the client. -
Uses of ComponentResources in org.apache.tapestry5.corelib.base
Fields in org.apache.tapestry5.corelib.base declared as ComponentResources Modifier and Type Field Description protected ComponentResources
AbstractField. resources
protected ComponentResources
AbstractLink. resources
protected ComponentResources
BaseClientElement. resources
-
Uses of ComponentResources in org.apache.tapestry5.corelib.internal
Constructors in org.apache.tapestry5.corelib.internal with parameters of type ComponentResources Constructor Description FormSupportImpl(ComponentResources resources, formValidationId)
Constructor used when processing a form submission.FormSupportImpl(ComponentResources resources, clientId, ComponentActionSink actionSink, boolean clientValidationEnabled, IdAllocator idAllocator, formValidationId)
Full constructor (specifically constructor for render time). -
Uses of ComponentResources in org.apache.tapestry5.internal
Subinterfaces of ComponentResources in org.apache.tapestry5.internal Modifier and Type Interface Description interface
InternalComponentResources
An extension ofComponentResources
that represents additional methods that are private to the framework and not exposed in any public APIs.Constructors in org.apache.tapestry5.internal with parameters of type ComponentResources Constructor Description PropertyOverridesImpl(ComponentResources resources)
-
Uses of ComponentResources in org.apache.tapestry5.internal.beanvalidator
Methods in org.apache.tapestry5.internal.beanvalidator with parameters of type ComponentResources Modifier and Type Method Description FieldValidator
BeanFieldValidatorDefaultSource. createDefaultValidator(ComponentResources resources, parameterName)
-
Uses of ComponentResources in org.apache.tapestry5.internal.bindings
Methods in org.apache.tapestry5.internal.bindings with parameters of type ComponentResources Modifier and Type Method Description Binding
AssetBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
BlockBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
ComponentBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
ContextBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
LiteralBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
MessageBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
NullFieldStrategyBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
PropBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
RenderVariableBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
SymbolBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
TranslateBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Binding
ValidateBindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Constructors in org.apache.tapestry5.internal.bindings with parameters of type ComponentResources Constructor Description BlockBinding(Location location, description, ComponentResources component, blockId)
ComponentBinding(Location location, description, ComponentResources resources, componentId)
RenderVariableBinding(Location location, description, ComponentResources resources, name)
-
Uses of ComponentResources in org.apache.tapestry5.internal.renderers
Methods in org.apache.tapestry5.internal.renderers with parameters of type ComponentResources Modifier and Type Method Description void
ComponentResourcesRenderer. render(ComponentResources object, MarkupWriter writer)
-
Uses of ComponentResources in org.apache.tapestry5.internal.services
Methods in org.apache.tapestry5.internal.services with parameters of type ComponentResources Modifier and Type Method Description boolean
PageActivator. activatePage(ComponentResources pageResources, EventContext activationContext, ComponentEventResultProcessor resultProcessor)
Activates the page.boolean
PageActivatorImpl. activatePage(ComponentResources pageResources, EventContext activationContext, ComponentEventResultProcessor resultProcessor)
FieldTranslator
FieldTranslatorSourceImpl. createDefaultTranslator(ComponentResources resources, parameterName)
FieldValidator
FieldValidatorDefaultSourceImpl. createDefaultValidator(ComponentResources resources, parameterName)
FieldTranslator
FieldTranslatorSourceImpl. createTranslator(ComponentResources resources, translatorName)
Binding
ComponentDefaultProviderImpl. parameterName, ComponentResources resources)
ComponentDefaultProviderImpl. defaultLabel(ComponentResources resources)
FieldTranslator
ComponentDefaultProviderImpl. parameterName, ComponentResources resources)
Binding
ComponentDefaultProviderImpl. parameterName, ComponentResources resources)
FieldValidator
ComponentDefaultProviderImpl. parameterName, ComponentResources resources)
Binding
ComponentDefaultProviderImpl. parameterName, ComponentResources resources)
ValueEncoder
ComponentDefaultProviderImpl. parameterName, ComponentResources resources)
<T> T
MetaDataLocatorImpl. key, ComponentResources resources, <T> expectedType)
Asset
AssetSourceImpl. getComponentAsset(ComponentResources resources, path, libraryName)
void
UnknownActivationContextHandler. handleUnknownContext(ComponentResources pageResources, EventContext activationContext)
Answer the client in the case of a request coming in with an unknown activation context.void
UnknownActivationContextHandlerImpl. handleUnknownContext(ComponentResources pageResources, EventContext activationContext)
RenderCommand
PageElementFactory. newAttributeElement(ComponentResources componentResources, AttributeToken token)
Creates a RenderCommand for rendering an attribute, when the attribute contains expansions.RenderCommand
PageElementFactoryImpl. newAttributeElement(ComponentResources componentResources, AttributeToken token)
Binding
BindingSourceImpl. description, ComponentResources container, defaultPrefix, expression)
Binding
BindingSourceImpl. description, ComponentResources container, ComponentResources component, defaultPrefix, expression, Location location)
Binding
PageElementFactory. parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, defaultBindingPrefix, expression, Location location)
Creates a new binding as withBindingSource.newBinding(String, ComponentResources, ComponentResources, String, String, Location)
.Binding
PageElementFactoryImpl. parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, defaultBindingPrefix, expression, Location location)
RenderCommand
PageElementFactory. newExpansionElement(ComponentResources componentResources, ExpansionToken token)
Converts an expansion token into a command that renders the expanded value.RenderCommand
PageElementFactoryImpl. newExpansionElement(ComponentResources componentResources, ExpansionToken token)
FieldValidationSupportImpl. clientValue, ComponentResources componentResources, > translator, NullFieldStrategy nullFieldStrategy)
void
ComponentResourcesOperation. perform(ComponentResources resources)
Deprecated.Perform some operation that requires the components' resources.void
PersistentFieldManager. pageName, ComponentResources resources, fieldName, newValue)
Posts a change of a persistent property.void
PersistentFieldManagerImpl. pageName, ComponentResources resources, fieldName, newValue)
void
RenderQueueImpl. startComponent(ComponentResources resources)
FieldValidationSupportImpl. value, ComponentResources componentResources, > translator, NullFieldStrategy nullFieldStrategy)
void
FieldValidationSupportImpl. value, ComponentResources componentResources, FieldValidator validator)
-
Uses of ComponentResources in org.apache.tapestry5.internal.services.ajax
Methods in org.apache.tapestry5.internal.services.ajax with parameters of type ComponentResources Modifier and Type Method Description JavaScriptSupportImpl. allocateClientId(ComponentResources resources)
-
Uses of ComponentResources in org.apache.tapestry5.internal.services.compatibility
Methods in org.apache.tapestry5.internal.services.compatibility with parameters of type ComponentResources Modifier and Type Method Description void
DeprecationWarningImpl. componentParameter(ComponentResources resources, parameterName, message)
void
DeprecationWarningImpl. componentParameterValue(ComponentResources resources, parameterName, parameterValue, message)
void
DeprecationWarningImpl. ignoredComponentParameters(ComponentResources resources, ... parameterNames)
-
Uses of ComponentResources in org.apache.tapestry5.internal.structure
Classes in org.apache.tapestry5.internal.structure that implement ComponentResources Modifier and Type Class Description class
InternalComponentResourcesImpl
The bridge between a component and itsComponentPageElement
, that supplies all kinds of resources to the component, including access to its parameters, parameter bindings, and persistent field data.Methods in org.apache.tapestry5.internal.structure that return ComponentResources Modifier and Type Method Description ComponentResources
InternalComponentResourcesImpl. getContainerResources()
ComponentResources
ComponentPageElement. mixinId)
Returns theComponentResources
for a mixin attached to this component element.ComponentResources
ComponentPageElementImpl. mixinId)
Methods in org.apache.tapestry5.internal.structure with parameters of type ComponentResources Modifier and Type Method Description Link
ComponentPageElementResources. createComponentEventLink(ComponentResources resources, eventType, boolean forForm, ... context)
Creates a link on behalf of a component.Link
ComponentPageElementResourcesImpl. createComponentEventLink(ComponentResources resources, eventType, boolean forForm, ... context)
void
Page. persistFieldChange(ComponentResources resources, fieldName, newValue)
Posts a change to a persistent field.void
PageImpl. persistFieldChange(ComponentResources resources, fieldName, newValue)
Constructors in org.apache.tapestry5.internal.structure with parameters of type ComponentResources Constructor Description InternalComponentResourcesImpl(Page page, ComponentPageElement element, ComponentResources containerResources, ComponentPageElementResources elementResources, completeId, nestedId, Instantiator componentInstantiator, boolean mixin)
-
Uses of ComponentResources in org.apache.tapestry5.internal.transform
Constructors in org.apache.tapestry5.internal.transform with parameters of type ComponentResources Constructor Description ReadOnlyComponentFieldConduit(ComponentResources resources, fieldName)
-
Uses of ComponentResources in org.apache.tapestry5.runtime
Methods in org.apache.tapestry5.runtime that return ComponentResources Modifier and Type Method Description ComponentResources
ComponentResourcesAware. getComponentResources()
Returns the resources associated with this component class.Methods in org.apache.tapestry5.runtime with parameters of type ComponentResources Modifier and Type Method Description void
RenderQueue. startComponent(ComponentResources resources)
Indicates that a component is starting its render. -
Uses of ComponentResources in org.apache.tapestry5.services
Methods in org.apache.tapestry5.services with parameters of type ComponentResources Modifier and Type Method Description FieldTranslator
FieldTranslatorSource. createDefaultTranslator(ComponentResources resources, parameterName)
FieldValidator
FieldValidatorDefaultSource. createDefaultValidator(ComponentResources resources, parameterName)
A convenience for the full version; assumes that the resources are associated with aField
.FieldTranslator
FieldTranslatorSource. createTranslator(ComponentResources componentResources, translatorName)
Creates a translator (used by thetranslate: binding prefix
).Binding
ComponentDefaultProvider. parameterName, ComponentResources resources)
Checks to see if the container of the component (identified by its resources) contains a property matching the component's id.ComponentDefaultProvider. defaultLabel(ComponentResources resources)
Computes the default label for the component (which will generally be aField
).FieldTranslator
ComponentDefaultProvider. parameterName, ComponentResources resources)
Binding
ComponentDefaultProvider. parameterName, ComponentResources resources)
Provides a binding that itself provides the field translator.FieldValidator
ComponentDefaultProvider. parameterName, ComponentResources resources)
Binding
ComponentDefaultProvider. parameterName, ComponentResources resources)
Provides a binding that itself provides the field translator.ValueEncoder
ComponentDefaultProvider. parameterName, ComponentResources resources)
Gets or creates a value encoder based on the type of the named parameter.<T> T
MetaDataLocator. key, ComponentResources resources, <T> expectedType)
Searches for the value for the corresponding key.Asset
AssetSource. getComponentAsset(ComponentResources resources, path, libraryName)
Gets an asset that is used with, or injected into, a component, that will be exposed to the client.Binding
BindingFactory. description, ComponentResources container, ComponentResources component, expression, Location location)
Creates a new binding instance.Binding
BindingSource. description, ComponentResources container, defaultPrefix, expression)
A simpler version ofBindingSource.newBinding(String, ComponentResources, ComponentResources, String, String, Location)
that defaults the values for several parameters.Binding
BindingSource. description, ComponentResources container, ComponentResources component, defaultPrefix, expression, Location location)
Examines the expression and strips off the leading prefix. -
Uses of ComponentResources in org.apache.tapestry5.services.compatibility
Methods in org.apache.tapestry5.services.compatibility with parameters of type ComponentResources Modifier and Type Method Description void
DeprecationWarning. componentParameter(ComponentResources resources, parameterName, message)
Used to identify a component parameter that has been deprecated.void
DeprecationWarning. componentParameterValue(ComponentResources resources, parameterName, parameterValue, message)
Used to identify a specific parameter value that is no longer supported.void
DeprecationWarning. ignoredComponentParameters(ComponentResources resources, ... parameterNames)
The most common case: checks to see if the parameter name is bound and if so emits a warning that the parameter is ignored and will be removed. -
Uses of ComponentResources in org.apache.tapestry5.services.dynamic
Methods in org.apache.tapestry5.services.dynamic that return ComponentResources Modifier and Type Method Description ComponentResources
DynamicDelegate. getComponentResources()
Returns the component resources (i.e., theDynamic
component), used when creating bindings for expansions located inside the dynamic template. -
Uses of ComponentResources in org.apache.tapestry5.services.javascript
Methods in org.apache.tapestry5.services.javascript with parameters of type ComponentResources Modifier and Type Method Description JavaScriptSupport. allocateClientId(ComponentResources resources)
As withJavaScriptSupport.allocateClientId(String)
but uses the id of the component extracted from the resources. -
Uses of ComponentResources in org.apache.tapestry5.test
Methods in org.apache.tapestry5.test that return ComponentResources Modifier and Type Method Description protected ComponentResources
TapestryTestCase. mockComponentResources()
Methods in org.apache.tapestry5.test with parameters of type ComponentResources Modifier and Type Method Description protected void
TapestryTestCase. train_createDefaultTranslator(FieldTranslatorSource source, ComponentResources resources, parameterName, FieldTranslator translator)
protected <T> void
TapestryTestCase. train_findMeta(MetaDataLocator locator, key, ComponentResources resources, <T> expectedType, T value)
protected void
TapestryTestCase. train_getBlockParameter(ComponentResources resources, name, Block block)
protected void
TapestryTestCase. train_getBoundType(ComponentResources resources, parameterName, type)
protected void
TapestryTestCase. train_getComponent(ComponentResources resources, Component component)
protected void
TapestryTestCase. train_getComponentResources(Component component, ComponentResources resources)
protected void
TapestryTestCase. train_getContainer(ComponentResources resources, Component container)
protected void
TapestryTestCase. train_getContainerMessages(ComponentResources resources, Messages containerMessages)
protected void
TapestryTestCase. train_getContainerResources(ComponentResources resources, ComponentResources containerResources)
protected void
TapestryTestCase. train_getId(ComponentResources resources, id)
protected void
TapestryTestCase. train_getMessages(ComponentResources resources, Messages messages)
protected void
TapestryTestCase. train_getPage(ComponentResources resources, Component page)
protected void
TapestryTestCase. train_newBinding(BindingFactory factory, description, ComponentResources container, ComponentResources component, expression, Location l, Binding binding)
protected void
TapestryTestCase. train_newBinding(BindingSource bindingSource, description, ComponentResources componentResources, defaultBindingPrefix, expression, Binding binding)
protected void
TapestryTestCase. train_renderInformalParameters(ComponentResources resources, MarkupWriter writer, ... informals)
-