Class PageElementFactoryImpl
java.lang.Object
org.apache.tapestry5.internal.services.PageElementFactoryImpl
- All Implemented Interfaces:
PageElementFactory
-
Constructor Summary
ConstructorsConstructorDescriptionPageElementFactoryImpl
(TypeCoercer typeCoercer, BindingSource bindingSource) -
Method Summary
Modifier and TypeMethodDescriptionnewAttributeElement
(ComponentResources componentResources, AttributeToken token) Creates a RenderCommand for rendering an attribute, when the attribute contains expansions.newBinding
(String parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, String defaultBindingPrefix, String expression, Location location) Creates a new binding as withBindingSource.newBinding(String, ComponentResources, ComponentResources, String, String, Location)
.newExpansionElement
(ComponentResources componentResources, ExpansionToken token) Converts an expansion token into a command that renders the expanded value.
-
Constructor Details
-
PageElementFactoryImpl
-
-
Method Details
-
newAttributeElement
public RenderCommand newAttributeElement(ComponentResources componentResources, AttributeToken token) Description copied from interface:PageElementFactory
Creates a RenderCommand for rendering an attribute, when the attribute contains expansions.- Specified by:
newAttributeElement
in interfacePageElementFactory
- Parameters:
componentResources
- identifies componenttoken
- token containing value with expansions- Returns:
- render command to render the text with expansions expanded
-
newExpansionElement
public RenderCommand newExpansionElement(ComponentResources componentResources, ExpansionToken token) Description copied from interface:PageElementFactory
Converts an expansion token into a command that renders the expanded value.- Specified by:
newExpansionElement
in interfacePageElementFactory
- Parameters:
componentResources
- identifies the componenttoken
- contains expansion expression- Returns:
- command to render expansion
-
newBinding
public Binding newBinding(String parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, String defaultBindingPrefix, String expression, Location location) Description copied from interface:PageElementFactory
Creates a new binding as withBindingSource.newBinding(String, ComponentResources, ComponentResources, String, String, Location)
. However, if the binding contains an expansion (i.e.,${...}
), then a binding that returns the fully expanded expression will be returned.- Specified by:
newBinding
in interfacePageElementFactory
-