| org.apache.tapestry.internal.services.PageElementFactory
All known Subclasses: org.apache.tapestry.internal.services.PageElementFactoryImpl,
Method Summary | |
void | addMixinByClassName(ComponentPageElement component, String mixinClassName) Adds a mixin to the element. | void | addMixinByTypeName(ComponentPageElement component, String mixinType) Adds a mixin to the element, resolving the mixin type to a mixin class. | PageElement | newAttributeElement(ComponentResources componentResources, AttributeToken token) | Binding | newBinding(String parameterName, ComponentResources loadingComponentResources, ComponentResources embeddedComponentResources, String defaultBindingPrefix, String expression, Location location) Creates a new binding as with
BindingSource.newBinding(StringComponentResourcesComponentResourcesStringStringLocation) . | PageElement | newCommentElement(CommentToken token) Creates a new element from the token. | ComponentPageElement | newComponentElement(Page page, ComponentPageElement container, String id, String componentType, String componentClassName, String elementName, Location location) Creates a new component and adds it to the page and to its container. | PageElement | newDTDElement(DTDToken token) | PageElement | newEndElement() | PageElement | newExpansionElement(ComponentResources componentResources, ExpansionToken token) | PageElement | newRenderBodyElement(ComponentPageElement component) | ComponentPageElement | newRootComponentElement(Page page, String className) Creates a new root component for a page. | PageElement | newStartElement(StartElementToken token) | PageElement | newTextElement(TextToken token) |
addMixinByClassName | void addMixinByClassName(ComponentPageElement component, String mixinClassName)(Code) | | Adds a mixin to the element.
Sure, this isn't quite a factory method, but PEF has all the tools to accomplish
this handy, as opposed to PageLoaderImpl.
Parameters: component - the component to which a mixin will be added Parameters: mixinClassName - fully qualified class name of the mixin |
addMixinByTypeName | void addMixinByTypeName(ComponentPageElement component, String mixinType)(Code) | | Adds a mixin to the element, resolving the mixin type to a mixin class.
Sure, this isn't quite a factory method, but PEF has all the tools to accomplish
this handy, as opposed to PageLoaderImpl.
Parameters: component - the component to which a mixin will be added Parameters: mixinType - used to resolve the mixin class name |
newComponentElement | ComponentPageElement newComponentElement(Page page, ComponentPageElement container, String id, String componentType, String componentClassName, String elementName, Location location)(Code) | | Creates a new component and adds it to the page and to its container.
Note: doesn't add the component as a child of the container.
Parameters: page - the page that will ultimately contain the new component Parameters: container - the existing component that contains the new component Parameters: id - the id, unique within the container, of the new component Parameters: componentType - the type of the component (as defined in the template or the Componentannotation) Parameters: componentClassName - the fully qualfied class name used when the componentType is blank (null or theempty string) Parameters: elementName - TODO Parameters: location - location of the component's element within its container's template the newly created comopnent, after adding it to the page and container |
newRootComponentElement | ComponentPageElement newRootComponentElement(Page page, String className)(Code) | | Creates a new root component for a page. Adds any mixins defined by the components model.
Parameters: page - the page that will contain the root component Parameters: className - the fully qualified class name of the root component the root page element |
|
|