Package com.volantis.mcs.protocols

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


                (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

        }
        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

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

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

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

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

        // Direct the rest of the markup to the sub dialogs buffer.
        dom = subDialogs;

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

        // Generate the grammar.
        Collection options = attributes.getOptions();
        dom.openElement("grammar");
View Full Code Here

        SelectAttributes selectAttributes = (SelectAttributes)attributes;
       
        // Render input element.
        DOMOutputBuffer buffer = getCurrentBuffer(protocol);
       
        selectElement = buffer.openStyledElement("select", attributes.getStyles());
       
        if (selectAttributes.getId() != null) {
            selectElement.setAttribute("id", selectAttributes.getId());
        } else {
            selectElement.setAttribute("id", protocol.getMarinerPageContext().generateUniqueFCID());           
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.