Package com.volantis.mcs.protocols

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


        // Generate the grammar.
        element = dom.openElement("grammar");
        grammar.generateBooleanGrammar(
                dom, name, attributes.getFalseValues(),
                attributes.getTrueValues());
        dom.closeElement("grammar");
        dom.closeElement("field");
    }

    public void doSelectInput(XFSelectAttributes attributes) {
        if (attributes.isMultiple()) {
View Full Code Here


        element = dom.openElement("grammar");
        grammar.generateBooleanGrammar(
                dom, name, attributes.getFalseValues(),
                attributes.getTrueValues());
        dom.closeElement("grammar");
        dom.closeElement("field");
    }

    public void doSelectInput(XFSelectAttributes attributes) {
        if (attributes.isMultiple()) {
            doMultipleSelectInput(attributes);
View Full Code Here

        // Generate the grammar.
        Collection options = attributes.getOptions();

        dom.openElement("grammar");
        grammar.generateSingleSelectGrammar(dom, this, name, options);
        dom.closeElement("grammar");
        dom.closeElement("field");
    }

    private void doMultipleSelectInput(XFSelectAttributes attributes) {
View Full Code Here

        Collection options = attributes.getOptions();

        dom.openElement("grammar");
        grammar.generateSingleSelectGrammar(dom, this, name, options);
        dom.closeElement("grammar");
        dom.closeElement("field");
    }

    private void doMultipleSelectInput(XFSelectAttributes attributes) {

        DOMOutputBuffer dom;
View Full Code Here

        element = dom.openElement("filled");
        element = dom.addElement("assign");
        element.setAttribute("name", name);
        element.setAttribute("expr", name + ".result");
        dom.closeElement("filled");

        dom.closeElement("subdialog");

        // Direct the rest of the markup to the sub dialogs buffer.
        dom = subDialogs;
View Full Code Here

        element = dom.addElement("assign");
        element.setAttribute("name", name);
        element.setAttribute("expr", name + ".result");
        dom.closeElement("filled");

        dom.closeElement("subdialog");

        // 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
View Full Code Here

        // Generate the grammar.
        Collection options = attributes.getOptions();
        dom.openElement("grammar");
        grammar.generateMultipleSelectGrammar(dom, name, options);
        dom.closeElement("grammar");

        dom.openElement("initial");
        appendVoiceXMLLiteral(dom, attributes);
        dom.closeElement("initial");
View Full Code Here

        grammar.generateMultipleSelectGrammar(dom, name, options);
        dom.closeElement("grammar");

        dom.openElement("initial");
        appendVoiceXMLLiteral(dom, attributes);
        dom.closeElement("initial");


        // Add the fields, one for each option.
        int o = 0;
        handleOptionFields(options, dom, o);
View Full Code Here

        element = dom.openElement("filled");
        element.setAttribute("mode", "any");

        element = dom.openElement("script");
        dom.appendEncoded("var separator = \"\";var result = \"\";");
        element = dom.closeElement("script");

        element = dom.addElement("return");
        element.setAttribute("namelist", "result");
        dom.closeElement("filled");
        dom.closeElement("form");
View Full Code Here

        dom.appendEncoded("var separator = \"\";var result = \"\";");
        element = dom.closeElement("script");

        element = dom.addElement("return");
        element.setAttribute("namelist", "result");
        dom.closeElement("filled");
        dom.closeElement("form");
    }

    private void handleOptionFields(Collection options, DOMOutputBuffer dom,
                                      int count) {
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.