Examples of openElement()


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("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

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

        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

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

        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

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

        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

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

        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

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

        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

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

        // @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);

        assertSame("The DOM's current element isn't the td element",
View Full Code Here

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

        // shard link attributes we prepared earlier.
        ShardLinkMenuItem shardLinkMenuItem = (ShardLinkMenuItem) item;

        // Open the SHARD LINK element.
        Element element;
        element = dom.openElement(DissectionConstants.SHARD_LINK_ELEMENT);

        // Add the shard link attributes we prepared earlier.
        element.setAnnotation(shardLinkMenuItem.getShardLinkAttributes());

        return delegate.open(buffer, item);
View Full Code Here

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

        // Downcast to the shard link specific menu so we can extract the
        // shard link group attributes we prepared earlier.
        ShardLinkMenu shardLinkMenu = (ShardLinkMenu) menu;

        // Open the SHARD LINK GROUP element.
        Element shardLinkGroup = dom.openElement(
                DissectionConstants.SHARD_LINK_GROUP_ELEMENT);

        // Add the shard link group attributes we prepared earlier.
        shardLinkGroup.setAnnotation(
                shardLinkMenu.getShardLinkGroupAttributes());
View Full Code Here

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

        // Downcast to the shard link specific menu so we can extract the
        // shard link group attributes we prepared earlier.
        ShardLinkMenu shardLinkMenu = (ShardLinkMenu) menu;

        // Open the SHARD LINK GROUP element.
        Element shardLinkGroup = buffer.openElement(
                DissectionConstants.SHARD_LINK_GROUP_ELEMENT);

        // Add the shard link group attributes we prepared earlier.
        shardLinkGroup.setAnnotation(
                shardLinkMenu.getShardLinkGroupAttributes());
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.