Examples of openElement()


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

                }

                if (attributes.isMultiple()) {
                    // open the option element
                    Element optionElement =
                            dom.openElement(VDXMLConstants.INPUT_FIELD_ELEMENT);

                    optionElement.setAttribute(VDXMLConstants.NAME_ATTRIBUTE,
                                               attributes.getName());
                    optionElement.setAttribute(VDXMLConstants.LIBREVAL_ATTRIBUTE,
                                               VDXMLConstants.NO_VALUE);
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 annotator = dom.openStyledElement(
                AccesskeyConstants.ACCESSKEY_ANNOTATION_ELEMENT, attributes);

        // Open the anchor element.
        Element anchor = dom.openElement("a");

        // Copy attributes into the anchor element.
        ctx.addTitleAttribute(anchor, attributes);
        anchor.setAttribute("href", attributes.getHref().getURL());
        // Add the dummy accesskey attribute as well.
View Full Code Here

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

    protected void openForm(XFFormAttributes attributes)
            throws ProtocolException {

        DOMOutputBuffer dom = getContentBuffer(attributes.getFormData ());
        String value;
        Element element = dom.openElement(VDXMLConstants.FORM_ELEMENT);

        // Note: if action attribute is specified via a LinkComponent
        // and no suitable Link Asset is found it does not make sense
        // to fallback to a TextComonent.
        value = resolveFormAction(attributes);
View Full Code Here

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

        if (trueText != null) {
            trueValues = parseCommaSeparatedList(trueText);
        }

        // Generate the markup
        Element element = dom.openElement(VDXMLConstants.INPUT_FIELD_ELEMENT);

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

        // set specific attribute values
View Full Code Here

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

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

        // Generate the markup
        Element element = dom.openElement(VDXMLConstants.INPUT_FIELD_ELEMENT);

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

        // set specific attribute values
View Full Code Here

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

                .getMarinerPageContext().getCurrentOutputBuffer();

        if (content instanceof StyleString) {
            // Writing text label inside a span, in case we support switching
            // text labels in active/inactive states
            Element spanElem = buffer.openElement("span");

            protocol.getInserter().insertPreservingExistingContent(spanElem,
                    content);

            // Set id
View Full Code Here

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

    public void doTestDissectionElement(WBSAXDissectionElementProcessor
            processor, String attributeValue) throws Exception {
        // Create <p><da {na}><a href="[url]"/></da></p>
        TestDOMOutputBuffer buffer = new TestDOMOutputBuffer();
        Element p = buffer.openElement("p");
        Element da = domFactory.createElement();
        da.setName("da");
        NodeAnnotation na = new NodeAnnotation() {};
        da.setObject(na);
        buffer.openElement(da);
View Full Code Here

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

        Element p = buffer.openElement("p");
        Element da = domFactory.createElement();
        da.setName("da");
        NodeAnnotation na = new NodeAnnotation() {};
        da.setObject(na);
        buffer.openElement(da);
        Element a = buffer.openElement("a");
        a.setAttribute("href", "[url]");
        buffer.closeElement(a);
        buffer.closeElement(da);
        buffer.closeElement(p);
View Full Code Here

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

        Element da = domFactory.createElement();
        da.setName("da");
        NodeAnnotation na = new NodeAnnotation() {};
        da.setObject(na);
        buffer.openElement(da);
        Element a = buffer.openElement("a");
        a.setAttribute("href", "[url]");
        buffer.closeElement(a);
        buffer.closeElement(da);
        buffer.closeElement(p);
       
View Full Code Here

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

                              String expected) throws Exception {
        // Create the test buffer
        TestDOMOutputBuffer testBuffer = new TestDOMOutputBuffer();

        // Start span element
        testBuffer.openElement("span");

        // Render using the test buffer
        renderer.render(testBuffer);

        // End span element
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.