Package com.volantis.mcs.protocols

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


        // add contentsRegionContent to main RegionInstance
        containingInstance.getCurrentBuffer().transferContentsFrom(
                getContentsRegionInstance().getCurrentBuffer());

        // Close contents tr element
        mainBuffer.closeElement("td");
        mainBuffer.closeElement("tr");

        // Close tabs table element in main buffer
        mainBuffer.closeElement("table");
View Full Code Here


        containingInstance.getCurrentBuffer().transferContentsFrom(
                getContentsRegionInstance().getCurrentBuffer());

        // Close contents tr element
        mainBuffer.closeElement("td");
        mainBuffer.closeElement("tr");

        // Close tabs table element in main buffer
        mainBuffer.closeElement("table");

        // Check if any tab was specified as active, if not set
View Full Code Here

        // Close contents tr element
        mainBuffer.closeElement("td");
        mainBuffer.closeElement("tr");

        // Close tabs table element in main buffer
        mainBuffer.closeElement("table");

        // Check if any tab was specified as active, if not set
        // the first one as active
        if (null == context.getActiveTabId()) {
            context.setActiveTabId(context.getFirstTabId());
View Full Code Here

            // Render label contents here
            renderLabelContents(protocol, contentToRender, true);
        }

        // Close label p
        tabsBuffer.closeElement(labelElement);

        // Open a div element with styles as specified to tab element
        tabsBuffer.openStyledElement("div", tabAttributes.getStyles());

        // Remove styles specific to mcs-label pseudoelement
View Full Code Here

        // for fallback tabs buffer is a main buffer
        DOMOutputBuffer tabsBuffer = (DOMOutputBuffer) context.getPageContext()
                .getCurrentOutputBuffer();

        // Close div element opened for tab contents
        tabsBuffer.closeElement("div");

    }

    /**
     * Renders tab label according to attributes of tab tag
View Full Code Here

            activeId = renderLabelContents(protocol, activeLabelContent, false);
        }
        context.getCurrentTabAndLabel().inactiveContentId = inactiveId;
        context.getCurrentTabAndLabel().activeContentId = activeId;

        labelsBuffer.closeElement(anchorElement);
        labelsBuffer.closeElement(labelDivElement);
        labelsBuffer.closeElement(labelTdElement);

        // Generate right margin td (if image labels not used)
        if (!context.getCurrentTabAndLabel().usesImageLabels) {
View Full Code Here

        }
        context.getCurrentTabAndLabel().inactiveContentId = inactiveId;
        context.getCurrentTabAndLabel().activeContentId = activeId;

        labelsBuffer.closeElement(anchorElement);
        labelsBuffer.closeElement(labelDivElement);
        labelsBuffer.closeElement(labelTdElement);

        // Generate right margin td (if image labels not used)
        if (!context.getCurrentTabAndLabel().usesImageLabels) {
            tdRightMargin = renderLabelMarginTds(labelsBuffer,
View Full Code Here

        context.getCurrentTabAndLabel().inactiveContentId = inactiveId;
        context.getCurrentTabAndLabel().activeContentId = activeId;

        labelsBuffer.closeElement(anchorElement);
        labelsBuffer.closeElement(labelDivElement);
        labelsBuffer.closeElement(labelTdElement);

        // Generate right margin td (if image labels not used)
        if (!context.getCurrentTabAndLabel().usesImageLabels) {
            tdRightMargin = renderLabelMarginTds(labelsBuffer,
                    inactiveLabelStyles, StylePropertyDetails.MARGIN_RIGHT);
View Full Code Here

            // Set id
            String spanId = protocol.getMarinerPageContext()
                    .generateUniqueFCID();
            spanElem.setAttribute("id", spanId);
            buffer.closeElement(spanElem);

            if (!visible) {
                spanElem.setAttribute("style", "display:none");
            }
View Full Code Here

        if(!isWidgetSupported(protocol)) {
            return;
        }       
       
        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
        currentBuffer.closeElement("option");       
    }

}
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.