Examples of openStyledElement()


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

        // 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
        labelStyles.removeNestedStyles(StatefulPseudoClasses.ACTIVE);
        labelStyles.getPropertyValues().clearPropertyValue(
                StylePropertyDetails.CONTENT);
View Full Code Here

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

        }
        tdsRendered += (null == tdLeftMargin ? 0 : 1);

        // Create a td with styles specified for tab label
        String labelId = protocol.getMarinerPageContext().generateUniqueFCID();
        Element labelTdElement = labelsBuffer.openStyledElement("td",
                inactiveLabelStyles);
        setElementLocked(protocol, labelTdElement);
        labelTdElement.setAttribute("id", labelId);
        context.getCurrentTabAndLabel().labelTdId = labelId;
View Full Code Here

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

        context.getCurrentTabAndLabel().labelTdId = labelId;

        // Open div inside td with no styles
        Styles labelDivStyles = StylingFactory.getDefaultInstance()
                .createStyles(null);
        Element labelDivElement = labelsBuffer.openStyledElement("div",
                labelDivStyles);
        setElementLocked(protocol, labelDivElement);

        // Set div width according to label width
        applyWidthToChild(inactiveLabelStyles.getPropertyValues()
View Full Code Here

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

        anchorStyles.getPropertyValues().setComputedAndSpecifiedValue(
                StylePropertyDetails.VERTICAL_ALIGN,
                VerticalAlignKeywords.BOTTOM);

        // Open anchor element with created styles
        Element anchorElement = labelsBuffer.openStyledElement("a",
                anchorStyles);
        anchorElement.setAttribute("href", "javascript:void(null)");
        setElementLocked(protocol, anchorElement);

        String inactiveId = renderLabelContents(protocol, inactiveLabelContent,
View Full Code Here

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

        OptionAttributes optionAttributes = (OptionAttributes)attributes;
       
        // Render input element.
        DOMOutputBuffer buffer = getCurrentBuffer(protocol);
       
        optionElement = buffer.openStyledElement("option", attributes.getStyles());
                          
        if (optionAttributes.getValue() != null) {
            optionElement.setAttribute("value", optionAttributes.getValue());
        }
       
View Full Code Here

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

                    DisplayKeywords.NONE);

            // Open invisible <span> element
            DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);

            currentBuffer.openStyledElement("span", styles);

        } else {
            // This is rendering code multiple validator.

            WidgetDefaultModule widgetModule = (WidgetDefaultModule) protocol.getWidgetModule();
View Full Code Here

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

        }
       
        if (usesNativeRendering(protocol, attributes)) {
            DOMOutputBuffer domBuffer = getCurrentBuffer(protocol);           
           
            Element element = domBuffer.openStyledElement("button", attributes.getStyles());
            element.setAttribute("id", elementId);
            // buttons alre always rendered as type="button"
            // default value is submit which leads to unexpected behaviour when button is
            // rendered in form (like in wizard)
View Full Code Here

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

        openDivElement(intDivStyle, currentBuffer);

        Styles ulStyle = StylingFactory.getDefaultInstance().createInheritedStyles(
                attributes.getStyles(),DisplayKeywords.BLOCK);
        setULStyles(ulStyle);
        currentBuffer.openStyledElement("ul",ulStyle);
       
        itemTemplateId = null;
        itemTemplateOutputBuffer = null;
    }
   
View Full Code Here

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

        // Initialise the title attribute from the prompt attribute, as
        // title is one of the core attributes.
        attributes.setTitle (getPlainText (attributes.getPrompt ()));

        Styles formStyles = attributes.getStyles();
        Element element = dom.openStyledElement ("form", formStyles);

        addCoreAttributes (element, attributes);

        // Note: if action attribute is specified via a LinkComponent
        // and no suitable Link Asset is found it does not make sense
View Full Code Here

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

        // Form elements must be inside a div tag.
        StylingFactory factory = StylingFactory.getDefaultInstance();
        Styles divStyles = factory.createInheritedStyles(formStyles,
                DisplayKeywords.BLOCK);
        dom.openStyledElement ("div", divStyles);

        // Add the top fragment links.
        doTopFragmentLinks (dom, attributes);

        // Add an implicit field which is used to specify the form descriptor.
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.