Package com.volantis.mcs.protocols

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


            assertNull("Class attribute on tr", el.getAttributeValue("class"));
            assertNull("bgcolor on tr", el.getAttributeValue("bgcolor"));
            assertNull("border on tr", el.getAttributeValue("border"));
            assertNull("cellspacing on tr", el.getAttributeValue("cellspacing"));
            assertNull("cellpadding on tr", el.getAttributeValue("cellpadding"));
            el = buffer.closeElement("table");
//            assertNull("Invalid class attribute on table",
//                    el.getAttributeValue("class"));
            assertEquals("Invalid bgcolor attribute",
                    "#ff0000", el.getAttributeValue("bgcolor"));
            assertEquals("Invalid border attribute",
View Full Code Here


        parent = dom.openStyledElement("body", attributes);
        protocol.openPane(dom, attributes);

        try {
            element = dom.closeElement("body");
        } catch (IllegalStateException e) {
            fail("Expected body element not found");
        }

        assertSame("The parent was not as expected",
View Full Code Here

    public void close(OutputBuffer buffer, MenuItem item)
        throws RendererException {

        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;

        outputBuffer.closeElement("span");
    }
}

/*
===========================================================================
View Full Code Here

            element.setAttribute("href", assetReference.getURL());
        } catch (AssetReferenceException e) {
            throw new ExtendedRuntimeException(e);
        }

        buf.closeElement("<group-image-separator>");
    }
}

/*
===========================================================================
View Full Code Here

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

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

/*
===========================================================================
View Full Code Here

    public void close(OutputBuffer buffer, MenuItem item)
            throws RendererException {

        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;

        outputBuffer.closeElement("link");
    }
}

/*
===========================================================================
View Full Code Here

            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) {
                OutputBufferStack outputBufferStack = ctx.getOutputBufferStack();
View Full Code Here

            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

            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");
        instance.addRegionContent(content);
View Full Code Here

        protocol.openPane(buffer, attributes);
        // Check the td element.
        el = buffer.getCurrentElement();
        // First we need to find it!
        while (!el.getName().equals("td")) {
            buffer.closeElement(el.getName());
            el = buffer.getCurrentElement();
        }
        el = buffer.closeElement("td");

        // System.out.println(bufferToString(buffer));
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.