Examples of openStyledElement()


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

        if (attributes.getId() != null) {
            messageElement.setAttribute("id", attributes.getId());
        }
       
        // Open span element with actual message content
        Element contentElement = currentBuffer.openStyledElement("span", attributes.getStyles());
    }

    // Javadoc inherited
    public void doRenderClose(VolantisProtocol protocol, MCSAttributes attributes) throws ProtocolException {
        // If protocol does not support Framework Client, do not render
View Full Code Here

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

            // put label content in anchor
            styles = StylingFactory.getDefaultInstance()
            .createInheritedStyles(protocol.getMarinerPageContext().getStylingEngine().getStyles(),
            DisplayKeywords.INLINE);

            Element link = currentBuffer.openStyledElement("a", styles);
            link.setAttribute("href","javascript:void(0)");
            return true;
        }
    }
View Full Code Here

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

        // currently we cannot tell, fix when VBM:2005092701 is fixed
        Styles styles = menu.getElementDetails().getStyles();
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.WHITE_SPACE,
                WhiteSpaceKeywords.NOWRAP);
        dom.openStyledElement(WMLConstants.BLOCH_ELEMENT, styles);
    }

    /**
     * End the p element.
     */
 
View Full Code Here

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

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

        // Generate the markup.
        Element element = dom.openStyledElement("select", attributes);

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

        String tabindex = (String)attributes.getTabindex();
View Full Code Here

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

        WMLFragmentLinkRendererContext ctx =
                (WMLFragmentLinkRendererContext) context;

        // Open the annotation element.
        // @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");
View Full Code Here

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

        Styles style = attributes.getStyles();

        style.getPropertyValues().setComputedAndSpecifiedValue(
                StylePropertyDetails.DISPLAY, DisplayKeywords.TABLE);

        Element tabsTableElem = mainBuffer.openStyledElement("table", style);
        tabsTableElem.setAttribute("id", attributes.getId());
        tabsTableElem.setAttribute("border", "0");
        tabsTableElem.setAttribute("cellspacing", "0");
        setElementLocked(protocol, tabsTableElem);
View Full Code Here

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

          .createInheritedStyles(
            protocol.getMarinerPageContext().getStylingEngine()
            .getStyles(), DisplayKeywords.TABLE_ROW);
               
        // Create tr element for labels in main buffer       
        Element labelsTrElem = mainBuffer.openStyledElement("tr", contentsTrStyle);
       
        labelsTrElem.setAttribute("id", protocol.getMarinerPageContext()
                .generateUniqueFCID());
        // set in order to label occupy only area for content
        labelsTrElem.setAttribute("style", "height: 1px");
View Full Code Here

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

        // Close labels tr
        mainBuffer.closeElement("tr");

        // Create tr element for contents in main buffer               
        Element contentsTrElem = mainBuffer.openStyledElement("tr", contentsTrStyle);
       
        contentsTrElem.setAttribute("id", protocol.getMarinerPageContext()
                .generateUniqueFCID());
        setElementLocked(protocol, contentsTrElem);
View Full Code Here

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

        Styles contentsTdStyle = StylingFactory.getDefaultInstance()
          .createInheritedStyles(
                 protocol.getMarinerPageContext().getStylingEngine()           
            .getStyles(), DisplayKeywords.TABLE_CELL);
       
        Element contentsTdElem = mainBuffer.openStyledElement("td",
                contentsTdStyle);
        String contentId = protocol.getMarinerPageContext()
                .generateUniqueFCID();
        context.setContentId(contentId);
        contentsTdElem.setAttribute("id", contentId);
View Full Code Here

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

        StyleValue labelContent = (null == labelStyles ? null : labelStyles
                .getPropertyValues().getSpecifiedValue(
                        StylePropertyDetails.CONTENT));

        // Open label p
        Element labelElement = tabsBuffer.openStyledElement("p", labelStyles);

        // Render label content
        if (null != labelContent) {
            StyleValue contentToRender = getSingleStyleValue(labelContent);
            // If content is an image, we have to extract the alternative text
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.