Examples of PageElement


Examples of org.apache.tapestry.internal.structure.PageElement

        Logger logger = mockLogger();
        EmbeddedComponentModel emodel = mockEmbeddedComponentModel();
        ComponentPageElement childElement = mockComponentPageElement();
        InternalComponentResources childResources = mockInternalComponentResources();
        Location l = mockLocation();
        PageElement body = mockPageElement();
        ComponentTemplate childTemplate = mockComponentTemplate();
        ComponentClassResolver resolver = mockComponentClassResolver();

        train_resolvePageNameToClassName(resolver, LOGICAL_PAGE_NAME, PAGE_CLASS_NAME);
        train_newRootComponentElement(elementFactory, PAGE_CLASS_NAME, rootElement);
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

            addMixinByClassName(component, mixinClassName);
    }

    public PageElement newRenderBodyElement(final ComponentPageElement component)
    {
        return new PageElement()
        {
            public void render(MarkupWriter writer, RenderQueue queue)
            {
                component.enqueueBeforeRenderBody(queue);
            }
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

            bindParameterFromTemplate(activeElement, token);
            return;
        }

        PageElement element = _pageElementFactory.newAttributeElement(token);

        addToBody(element);
    }
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

        // text or comment content "inside" the BODY.
    }

    private void comment(CommentToken token)
    {
        PageElement commentElement = _pageElementFactory.newCommentElement(token);

        addToBody(commentElement);
    }
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

        boolean discard = _discardEndTagStack.pop();

        if (!discard)
        {
            PageElement element = _pageElementFactory.newEndElement();

            addToBody(element);
        }

        Runnable command = _endElementCommandStack.pop();
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

        command.run();
    }

    private void expansion(ExpansionToken token)
    {
        PageElement element = _pageElementFactory.newExpansionElement(_loadingElement
                .getComponentResources(), token);

        addToBody(element);
    }
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

        configureEnd(true, cleanup);
    }

    private void startElement(StartElementToken token)
    {
        PageElement element = _pageElementFactory.newStartElement(token);

        addToBody(element);

        // Controls how attributes are interpretted.
        _addAttributesAsComponentBindings = false;
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

        configureEnd(false, NO_OP);
    }

    private void text(TextToken token)
    {
        PageElement element = _pageElementFactory.newTextElement(token);

        addToBody(element);
    }
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

    private void dtd(DTDToken token)
    {
        // first DTD encountered wins.
        if (_dtdAdded) return;
       
        PageElement element = _pageElementFactory.newDTDElement(token);
        // since rendering via the markup writer is to the document tree,
        // we don't really care where this gets placed in the tree; the
        // DTDPageElement will set the dtd of the document directly, rather than
        // writing anything to the markup writer
        _page.getRootElement().addToTemplate(element);
View Full Code Here

Examples of org.apache.tapestry.internal.structure.PageElement

        return defaultBindingPrefix != null ? defaultBindingPrefix : informalParameterBindingPrefix;
    }

    private void addRenderBodyElement()
    {
        PageElement element = newRenderBodyElement();

        _loadingElement.addToTemplate(element);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.