Examples of openElement()


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

                            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

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

            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

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

        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

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

        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

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

        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

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

                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

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

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

        LinkAssetReference reference = attributes.getHref();
        if (reference != null) {
            option.setAttribute("onpick", reference.getURL());
View Full Code Here

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

            // This means rendering the text of the link inside a "fake" pane
            // element, which is required to provide geometry information.

            // Open our fake pane.
            final DOMOutputBuffer dom = (DOMOutputBuffer) outputBuffer;
            Element element = dom.openElement(
                    VDXMLConstants.PSEUDO_PANE_ELEMENT);
            MutablePropertyValues propertyValues = null;
            if (styles != null) {
                propertyValues = styles.getPropertyValues();
            }
View Full Code Here

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

    protected boolean open(OutputBuffer buffer, MenuItem item, String href)
            throws RendererException {

        DOMOutputBuffer dom = (DOMOutputBuffer) buffer;

        Element element = dom.openElement("option");

        // Write out the attributes.
        if (item.getTitle() != null) {
            element.setAttribute("title", item.getTitle());
        }
View Full Code Here

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

        if (null != timedRefreshInfo) {
            DOMOutputBuffer oneventBuffer = (DOMOutputBuffer)
                deviceLayoutContext.getOutputBuffer(
                    NativeMarkupAttributes.WML_CARD_ONEVENT, true);
            Element onEventElement = oneventBuffer.openElement("onevent");
            onEventElement.setAttribute("type", "ontimer");
            Element goElement = oneventBuffer.addElement("go");
           
            String url = timedRefreshInfo.getRefreshURL();
            if (null == url) {
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.