Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.StyleAttributes


        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();

        resetElement();

        attribute = new StyleAttributes();
        attribute.setStyles(StylesBuilder.getDeprecatedStyles());
        attribute.setTitle("My title");

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
View Full Code Here


        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();

        resetElement();

        attribute = new StyleAttributes();
        attribute.setStyles(StylesBuilder.getDeprecatedStyles());
        attribute.setTitle("My title");

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
View Full Code Here

        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        deviceContext.setDeviceLayout(runtimeDeviceLayout);

        resetElement();

        attribute = new StyleAttributes();
        attribute.setStyles(StylesBuilder.getDeprecatedStyles());
        attribute.setTitle("My title");

        context.pushDeviceLayoutContext(deviceContext);
        protocol.setMarinerPageContext(context);
View Full Code Here

        buffer.initialise();

        final ProtocolConfigurationImpl protocolConfiguration =
            (ProtocolConfigurationImpl) protocol.getProtocolConfiguration();
        protocolConfiguration.setCSSMedia("handheld");
        final StyleAttributes styleAttributes = new StyleAttributes();
        protocol.openStyle(buffer, styleAttributes);
        final Element head = (Element) buffer.getRoot().getHead();
        assertEquals("handheld", head.getAttributeValue("media"));
        assertEquals("text/css", head.getAttributeValue("type"));
        buffer.appendEncoded(".c {color:red}");
View Full Code Here

        buffer.initialise();

        final ProtocolConfigurationImpl protocolConfiguration =
            (ProtocolConfigurationImpl) protocol.getProtocolConfiguration();
        protocolConfiguration.setCSSMedia(null);
        final StyleAttributes styleAttributes = new StyleAttributes();
        protocol.openStyle(buffer, styleAttributes);
        final Element head = (Element) buffer.getRoot().getHead();
        assertNull(head.getAttributeValue("media"));
        assertEquals("text/css", head.getAttributeValue("type"));
        buffer.appendEncoded(".c {color:red}");
View Full Code Here

                runtimeDeviceLayout1;
        deviceContext.setDeviceLayout(runtimeDeviceLayout);

        resetElement();

        attribute = new StyleAttributes();
        attribute.setStyles(StylesBuilder.getDeprecatedStyles());
        attribute.setTitle("My title");

        context.pushDeviceLayoutContext(deviceContext);
        protocol.setMarinerPageContext(context);
View Full Code Here

     *
     * @param styles the styles to use for the element.
     */
    private void open(Styles styles) {
        // Create an instance of MCSAttributes - the type doesn't matter
        MCSAttributes attributes = new StyleAttributes();
        attributes.setStyles(styles);
        buffer.openStyledElement(VDXMLConstants.PSEUDO_INLINE_ELEMENT,
                attributes);
    }
View Full Code Here

     *
     * @param begin the styles to begin this display context with.
     */
    private void openTexte(Styles begin) {
        // Create an instance of MCSAttributes - the type doesn't matter
        MCSAttributes attributes = new StyleAttributes();
        attributes.setStyles(begin);
        buffer.openStyledElement(VDXMLConstants.TEXT_BLOCK_ELEMENT, attributes);
    }
View Full Code Here

     * @param styles the styles to use for the element.
     */
    private void open(Styles styles) {

        // Create an instance of MCSAttributes - the type doesn't matter
        MCSAttributes attributes = new StyleAttributes();
        attributes.setStyles(styles);
        buffer.openStyledElement(
                VDXMLConstants.PSEUDO_BLOCK_ELEMENT, attributes);
    }
View Full Code Here

     * @param begin the styles to use for the element.
     */
    private void openTexte(Styles begin) {

        // Create an instance of MCSAttributes - the type doesn't matter
        MCSAttributes attributes = new StyleAttributes();
        attributes.setStyles(begin);
        buffer.openStyledElement(VDXMLConstants.TEXT_BLOCK_ELEMENT, attributes);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.StyleAttributes

Copyright © 2018 www.massapicom. 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.