Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.openElement()


    public boolean open(OutputBuffer buffer, MenuItem item)
        throws RendererException {

        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;

        Element element = outputBuffer.openElement("span");

        ElementDetails elementDetails = item.getElementDetails();
        Styles styles = elementDetails.getStyles();
        if (styles != null) {
            element.setStyles(styles);
View Full Code Here


    public void render(OutputBuffer buffer)
            throws RendererException {
        DOMOutputBuffer buf = (DOMOutputBuffer)buffer;

        Element element = buf.openElement("<group-image-separator>");

        try {
            element.setAttribute("href", assetReference.getURL());
        } catch (AssetReferenceException e) {
            throw new ExtendedRuntimeException(e);
View Full Code Here

    public void render(OutputBuffer buffer)
            throws RendererException {
        DOMOutputBuffer buf = (DOMOutputBuffer)buffer;

        buf.openElement("<group-text-separator>");

        for (int i = 0; i < repeat; i++) {
            buf.appendEncoded(chars);
        }
View Full Code Here

        if (elementDetails != null) {
            styles = elementDetails.getStyles();
        }

        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;
        Element element = outputBuffer.openElement("plain-text");
        if (styles != null) {
            element.setStyles(styles);
        }
        DOMOutputBuffer textOutputBuffer = (DOMOutputBuffer) text.getText();
        outputBuffer.addOutputBuffer(textOutputBuffer);
View Full Code Here

    public boolean open(OutputBuffer buffer, MenuItem item)
            throws RendererException {

        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;

        Element element = outputBuffer.openElement("link");

        // Only add the style class from the menu item if this is an outer link.
        if (outer) {
            ElementDetails elementDetails = item.getElementDetails();
            Styles styles = elementDetails.getStyles();
View Full Code Here

        RegionContent content = new RegionContent() {
            public void render(FormatRendererContext ctx) {
                OutputBufferStack outputBufferStack = ctx.getOutputBufferStack();
                DOMOutputBuffer buffer = (DOMOutputBuffer)
                        outputBufferStack.getCurrentOutputBuffer();
                buffer.openElement(buffer.allocateElement("regionContent"));
                buffer.closeElement("regionContent");
            }
        };
        RegionContent content2 = new RegionContent() {
            public void render(FormatRendererContext ctx) {
View Full Code Here

        RegionContent content2 = new RegionContent() {
            public void render(FormatRendererContext ctx) {
                OutputBufferStack outputBufferStack = ctx.getOutputBufferStack();
                DOMOutputBuffer buffer = (DOMOutputBuffer)
                        outputBufferStack.getCurrentOutputBuffer();
                buffer.openElement(buffer.allocateElement("regionContent2"));
                buffer.closeElement("regionContent2");
            }
        };
        instance.addRegionContent(content);
        instance.addRegionContent(content2);
View Full Code Here

        RegionContent content = new RegionContent() {
            public void render(FormatRendererContext ctx) {
                OutputBufferStack outputBufferStack = ctx.getOutputBufferStack();
                DOMOutputBuffer buffer = (DOMOutputBuffer)
                        outputBufferStack.getCurrentOutputBuffer();
                buffer.openElement(buffer.allocateElement("regionContent"));
                buffer.closeElement("regionContent");
            }
        };

        instance.getCurrentBuffer().writeText("   \n");
View Full Code Here

        Pane pane = new Pane(new CanvasLayout());
        attributes.setPane(pane);

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        dom.openStyledElement("body", attributes);
        dom.openElement("table");
        dom.openElement("tr");
        Element td = dom.openElement("td");

        // Requires non-null pane attributes with a valid pane.
        protocol.closePane(dom, attributes);
View Full Code Here

        attributes.setPane(pane);

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        dom.openStyledElement("body", attributes);
        dom.openElement("table");
        dom.openElement("tr");
        Element td = dom.openElement("td");

        // Requires non-null pane attributes with a valid pane.
        protocol.closePane(dom, attributes);
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.