Examples of StyleAttributes


Examples of com.volantis.mcs.papi.StyleAttributes

    // javadoc inherited
    protected int exprElementStart(
            MarinerRequestContext context,
            PAPIAttributes papiAttributes) throws PAPIException {

        StyleAttributes attributes = (StyleAttributes) papiAttributes;
        String typeAttribute = attributes.getType();
        if (!"text/css".equals(typeAttribute)) {
            throw new IllegalArgumentException(
                    "Style element must have type=\"text/css\"");
        }
View Full Code Here

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

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

Examples of com.volantis.mcs.protocols.StyleAttributes

        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

Examples of com.volantis.mcs.protocols.StyleAttributes

        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

Examples of com.volantis.mcs.protocols.StyleAttributes

        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

Examples of com.volantis.mcs.protocols.StyleAttributes

                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

Examples of com.volantis.mcs.protocols.StyleAttributes

     *
     * @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

Examples of com.volantis.mcs.protocols.StyleAttributes

     *
     * @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

Examples of com.volantis.mcs.protocols.StyleAttributes

     * @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
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.