Package com.volantis.mcs.protocols

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


        // 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

        // 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

        // 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

                            WhiteSpaceKeywords.NOWRAP);
                    Element element = buffer.openStyledElement(
                            WMLConstants.BLOCH_ELEMENT, styles);

                    // Open a select for the menu.
                    element = buffer.openElement("select");
                    if (menu.getTitle() != null) {
                        element.setAttribute("title", menu.getTitle());
                    }

                    // Iterate over the children in order.
View Full Code Here

            throws RendererException {

        DOMOutputBuffer dom = (DOMOutputBuffer) buffer;

        // Open the SHARD LINK CONDITIONAL element
        Element shardLinkConditional = dom.openElement(
                DissectionConstants.SHARD_LINK_CONDITIONAL_ELEMENT);
        // Add the attributes for the element, luckily in this case
        // they are constant so we don't need any extra state for this
        // renderer.
        ShardLinkConditionalAttributes conditionalAttrs
View Full Code Here

        attributes.setPane(pane);

        final Element expected;
        // @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");
        expected = dom.openElement("td");

        dom.appendEncoded("Example");
View Full Code Here

        final Element expected;
        // @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");
        expected = dom.openElement("td");

        dom.appendEncoded("Example");

        protocol.closePane(dom, attributes);
View Full Code Here

        final Element expected;
        // @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");
        expected = dom.openElement("td");

        dom.appendEncoded("Example");

        protocol.closePane(dom, attributes);
View Full Code Here

                StylePropertyDetails.WHITE_SPACE,
                WhiteSpaceKeywords.NOWRAP);
        Element p = dom.openStyledElement(WMLConstants.BLOCH_ELEMENT, styles);

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        Element select = dom.openElement("select");
        ctx.addTitleAttribute(select, attributes);

        Element option = dom.openElement("option");
        ctx.addTitleAttribute(option, 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.