Interface PageElementFactory
- 
- All Known Implementing Classes:
 PageElementFactoryImpl
public interface PageElementFactory
Used by thePageLoaderto create partialar page elements. This has evolved and focused to mostly concern bindings and expansions. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RenderCommandnewAttributeElement(ComponentResources componentResources, AttributeToken token)Creates a RenderCommand for rendering an attribute, when the attribute contains expansions.BindingnewBinding(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).RenderCommandnewExpansionElement(ComponentResources componentResources, ExpansionToken token)Converts an expansion token into a command that renders the expanded value. 
 - 
 
- 
- 
Method Detail
- 
newAttributeElement
RenderCommand newAttributeElement(ComponentResources componentResources, AttributeToken token)
Creates a RenderCommand for rendering an attribute, when the attribute contains expansions.- Parameters:
 componentResources- identifies componenttoken- token containing value with expansions- Returns:
 - render command to render the text with expansions expanded
 
 
- 
newExpansionElement
RenderCommand newExpansionElement(ComponentResources componentResources, ExpansionToken token)
Converts an expansion token into a command that renders the expanded value.- Parameters:
 componentResources- identifies the componenttoken- contains expansion expression- Returns:
 - command to render expansion
 
 
- 
newBinding
Binding 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). However, if the binding contains an expansion (i.e.,${...}), then a binding that returns the fully expanded expression will be returned. 
 - 
 
 -