Examples of openStyledElement()


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

            // Allow subclasses to add extra attributes to the text input.
            addTextInputAttributes (element, attributes);

            addTextInputValidation(element, attributes);
        } else {
            Element element = dom.openStyledElement ("textarea", attributes);

            // Append the core attributes to the buffer.
            addCoreAttributes (element, attributes);

            // set any attribute values that should be applied for all form fields.
View Full Code Here

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

                (ContainerInstance) context.getFormatInstance(pane,
                        NDimensionalIndex.ZERO_DIMENSIONS);
        DOMOutputBuffer dom = (DOMOutputBuffer)
                containerInstance.getCurrentBuffer();

        Element menu = dom.openStyledElement("menu", attributes);

        // Add the id attribute if there is one.
        String id = attributes.getId();
        if (id != null) {
            menu.setAttribute("id", id);
View Full Code Here

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

        }
        nestingDepth = 1;

        // Generate the markup.
        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        Element element = dom.openStyledElement("form", attributes);
        element.setAttribute("id", attributes.getName());

        String value;
        // Add the prompt which should already be properly quoted as it contains
        // VoiceXML markup.
View Full Code Here

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

        // Direct the markup to the entry container's content buffer.
        dom = getCurrentBuffer(entryContainerInstance);

        // Generate the markup.
        Element element = dom.openStyledElement("field", attributes);

        // set any attribute values that should be applied for all form fields.
        addFormFieldAttributes(element, attributes);

        element.setAttribute("name", attributes.getName());
View Full Code Here

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

        // Direct the markup to the entry ContainerInstance's content buffer.
        dom = getCurrentBuffer(entryContainerInstance);

        // Generate the markup.
        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        Element element = dom.openStyledElement("field", attributes);
        // set any attribute values that should be applied for all form fields.
        addFormFieldAttributes(element, attributes);
        element.setAttribute("name", name);

        appendVoiceXMLLiteral(dom, attributes);
View Full Code Here

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

        // Direct the markup to the entry container's content buffer.
        dom = getCurrentBuffer(entryContainerInstance);

        // Generate the markup.
        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        Element element = dom.openStyledElement("field", attributes);
        // set any attribute values that should be applied for all form fields.
        addFormFieldAttributes(element, attributes);
        element.setAttribute("name", name);

        appendVoiceXMLLiteral(dom, attributes);
View Full Code Here

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

        // Direct the markup to the entry ContainerInstance's content buffer.
        dom = getCurrentBuffer(entryContainerInstance);

        // Generate the markup.
        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        Element element = dom.openStyledElement("subdialog", attributes);
        // set any attribute values that should be applied for all form fields.
        addFormFieldAttributes(element, attributes);
        element.setAttribute("name", name);
        element.setAttribute("src", "#" + subId);
View Full Code Here

Examples of com.volantis.mcs.protocols.TestDOMOutputBuffer.openStyledElement()

    protected void doTestCreateEnclosingElement(
            PaneAttributes attributes,
            String expected)
            throws Exception {
        TestDOMOutputBuffer dom = new TestDOMOutputBuffer();
        Element element = dom.openStyledElement("td", attributes);

//        if (elementClassAttributes != null) {
//            element.setAttribute("class", elementClassAttributes);
//        }
View Full Code Here

Examples of com.volantis.mcs.protocols.TestDOMOutputBuffer.openStyledElement()

    protected void doTestUseEnclosingTableCell(
            PaneAttributes attributes,
            String expected)
            throws Exception {
        TestDOMOutputBuffer dom = new TestDOMOutputBuffer();
        Element element = dom.openStyledElement("td", attributes);

//        if (elementClassAttributes != null) {
//            element.setAttribute("class", elementClassAttributes);
//        }
View Full Code Here

Examples of com.volantis.mcs.protocols.TestDOMOutputBuffer.openStyledElement()

                                          PaneAttributes attributes,
                                          PaneRendering expected)
            throws Exception {

        TestDOMOutputBuffer dom = new TestDOMOutputBuffer();
        dom.openStyledElement(elementName, attributes);

        PaneRendering actual = protocol.checkPaneRendering(dom, attributes);
        assertEquals("Result shouild match\n" +
                     "EXPECTED: " + expected + "\n" +
                     "ACTUAL  : " + actual + "\n", expected, actual);
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.