Examples of openStyledElement()


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

        attributes.setStyles(StylesBuilder.getDeprecatedStyles());
        Pane pane = new Pane(new CanvasLayout());
        attributes.setPane(pane);

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        dom.openStyledElement("body", attributes);
        dom.openElement("table");
        dom.openElement("tr");
        Element td = dom.openElement("td");

        // Requires non-null pane attributes with a valid pane.
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);
                    Element element = buffer.openStyledElement(
                            WMLConstants.BLOCH_ELEMENT, styles);

                    // Open a select for the menu.
                    element = buffer.openElement("select");
                    if (menu.getTitle() != null) {
View Full Code Here

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

                Object object) throws ProtocolException {

            DOMOutputBuffer dom = (DOMOutputBuffer) object;

            // open the option group
            Element element = dom.openStyledElement("optgroup", optionGroup);

            protocol.addOptGroupAttributes(element, attributes);

            // Need to fully qualify access to outer class due to bug in
            // the Sun 1.2 jdk compiler
View Full Code Here

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

        Pane pane = new Pane(null);
        attributes.setPane(pane);

        final Element expected;
        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        dom.openStyledElement("body", attributes);
        dom.openElement("table");
        dom.openElement("tr");
        expected = dom.openElement("td");

        dom.appendEncoded("Example");
View Full Code Here

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

                    Object object) throws ProtocolException {

                DOMOutputBuffer dom = (DOMOutputBuffer) object;

                // open the option group
                Element element = dom.openStyledElement("optgroup",
                                                        optionGroup);

                addOptGroupAttributes(element, attributes);

                // Need to fully qualify access to outer class due to bug in
View Full Code Here

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

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

        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        Element select = dom.openElement("select");
        ctx.addTitleAttribute(select, attributes);
View Full Code Here

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

        InputAttributes inputAttributes = (InputAttributes)attributes;
       
        // Render input element.
        DOMOutputBuffer buffer = getCurrentBuffer(protocol);
       
        inputElement = buffer.openStyledElement("input", attributes.getStyles());
       
        if (inputAttributes.getName() != null) {
            inputElement.setAttribute("name", inputAttributes.getName());
        }
View Full Code Here

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

                // the Sun 1.2 jdk compiler
                String title = getPlainText(option.getPrompt());
                option.setTitle(title);

                // Create the option element.
                Element optionElement = dom.openStyledElement("option", option);

                // core attributes.
                addCoreAttributes(optionElement, option,
                                  supportsTitleOnOption);
View Full Code Here

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

                        currentOptgroupDepth < maxOptgroupDepth);

                if (writeOptGroup) {
                    currentOptgroupDepth++;

                    Element element = dom.openStyledElement("optgroup", optionGroup);

                    // Need to fully qualify access to outer class due to bug
                    // in the Sun 1.2 jdk compiler
                    String title = getPlainText(optionGroup.getPrompt());
View Full Code Here

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

        Styles emptyStyles = StylingFactory.getDefaultInstance()
          .createInheritedStyles(
                protocol.getMarinerPageContext()
                .getStylingEngine().getStyles(), DisplayKeywords.INLINE);
       
        Element messageElement = currentBuffer.openStyledElement("span", emptyStyles);
       
        if (attributes.getId() != null) {
            messageElement.setAttribute("id", attributes.getId());
        }
       
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.