Package com.volantis.styling

Examples of com.volantis.styling.Styles


        } catch (IllegalArgumentException iae) {
            // Test succeeded - the call caused this exception
        }

        // Test setting
        Styles testStyles = StylesBuilder.getEmptyStyles();
        testElementDetails.setStyles(testStyles);

        // Test getting
        Styles gotStyles = testElementDetails.getStyles();
        assertNotNull("Should not be null", gotStyles);
        assertEquals("Should be the same", testStyles, gotStyles);
        assertNotNull("Should not be null", gotStyles.getPropertyValues());
    }
View Full Code Here


        ContextInternals.setMarinerPageContext(requestContext, context);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        XFFormAttributes attributes = new XFFormAttributes();
        final Styles styles = StylesBuilder.getInitialValueStyles();
        attributes.setStyles(styles);
        attributes.setFormData(formInstance);
        attributes.setAction(new LiteralLinkAssetReference("testaction"));
        attributes.setMethod("post");
        attributes.setFormSpecifier(formSpecifier);
View Full Code Here

                "}" +
                "*:active {" +
                "background-color: #0000ff; " +
                "}"));

        Styles styles = tableCellAttributes.getStyles();

        // we need to override the style with this mock style only for testing
        // the bgimage as the actual addBackgroundImage in the style attempts
        // to perform methods on a null Volantis object.
        WapTV5_WMLVersion1_3Style style =
                new WapTV5_WMLVersion1_3Style(
                        styles.getPropertyValues(), wapProtocol);
        wapProtocol.setStyle(style);
        wapProtocol.setActiveStyle(new WapTV5_WMLVersion1_3Style(
                styles.findNestedStyles(StatefulPseudoClasses.ACTIVE)
                .getPropertyValues(), wapProtocol));
        wapProtocol.setFormatStyle(new WapTV5_WMLVersion1_3Style(
                styles.findNestedStyles(StatefulPseudoClasses.ACTIVE)
                .getPropertyValues(), wapProtocol));

        Element element = domFactory.createElement();
        protocol.addTableCellAttributes(element, tableCellAttributes);
        assertEquals("1", element.getAttributeValue("linegap"));
View Full Code Here

        DOMOutputBuffer outputBuffer = (DOMOutputBuffer) buffer;

        Element element = outputBuffer.openElement("span");

        ElementDetails elementDetails = item.getElementDetails();
        Styles styles = elementDetails.getStyles();
        if (styles != null) {
            element.setStyles(styles);
        }
        return true;
    }
View Full Code Here

     * The background color of the rechercher was coming out as green rather
     * than white.
     */
    public void testRechererBug() throws Exception {

        Styles blackWhite = StylesBuilder.getStyles(
                "background-color: white; " +
                "color: black");

        Styles blueWhite = StylesBuilder.getStyles(
                "background-color: white; " +
                "color: blue");

        Styles noneGreen = StylesBuilder.getStyles("background-color: lime");

        openTexte(blackWhite);
            open(blueWhite);
                open(noneGreen);
                    text(" 1");
View Full Code Here

        renderer.open(buffer, item);
        SpanAttributes attributes = (SpanAttributes)PrivateAccessor.
                getField(renderer, "attributes");
        assertNotNull("MCS Attributes should not be null", attributes);
        Styles styles = attributes.getStyles();

        assertNotNull("The Styles on the MCS Attributes must not be null",
                styles);
        assertEquals("The styles on the MCS Attributes must be the same " +
                "as the styles on the ElementDetails",
View Full Code Here

        throws RendererException {

        MenuLabel label = item.getLabel();
        MenuIcon icon = label.getIcon();
        ElementDetails elementDetails = icon.getElementDetails();
        Styles styles = null;
        if (elementDetails != null ) {
            styles = elementDetails.getStyles();
        }

View Full Code Here

     * for testing with         N
     * @return a XFSelectAttributes instance
     */
    public XFSelectAttributes buildSelectAttributes() {
        XFSelectAttributes atts = new XFSelectAttributes();
        Styles styles = STYLING_FACTORY.createInheritedStyles(
                (Styles) null, DisplayKeywords.INLINE);
        atts.setStyles(styles);
        styles.getPropertyValues().setComputedValue(
                StylePropertyDetails.TEXT_ALIGN,
                TextAlignKeywords._INTERNAL_DEFERRED_INHERIT);

        Form form = new Form(null) {
            public boolean isFragmented() {
View Full Code Here

        element.setVolantisAttributes(protocolAttributes);

        element.elementStart(requestContext, attrsAttributes);

        // ensure that there is a CSP Container in the protocol attributes
        Styles styles = protocolAttributes.getStyles();
        assertNotNull("The protocol attributes should have a Styles after" +
                "elementStart has been called", styles);
    }
View Full Code Here

            this.element = element;
            deviceStyles = deviceStylingEngine.startElement(
                                localName, this);
        }

        Styles inputStyles = element.getStyles();
        StyleValues oldParentValues = parentValues;
        if (inputStyles != null) {
            parentValues = inputStyles.getPropertyValues();
        }

        // Process the children.
        element.forEachChild(this);
View Full Code Here

TOP

Related Classes of com.volantis.styling.Styles

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.