Examples of Styles


Examples of com.volantis.styling.Styles

        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

Examples of com.volantis.styling.Styles

     * 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

Examples of com.volantis.styling.Styles

        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

Examples of com.volantis.styling.Styles

        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

Examples of com.volantis.styling.Styles

     * 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

Examples of com.volantis.styling.Styles

        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

Examples of com.volantis.styling.Styles

            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

Examples of com.volantis.styling.Styles

        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        protocol.setMarinerPageContext(pageContext);

        MenuElementImpl menuElement = new MenuElementImpl();
        Styles testStyles = StylesBuilder.getStyles(
                "mcs-menu-image-style: rollover");

        PrivateAccessor.setField(menuElement, "menuProperties",
                testStyles.getPropertyValues());
        pageContext.pushElement(menuElement);

        pageContext.setPolicyReferenceResolver(
                PolicyReferenceResolverTestHelper.getCommonExpectations(
                        expectations, mockFactory));
View Full Code Here

Examples of flex2.compiler.css.Styles

      namespaceHistory.clear();
    }

    if (styles == null)
    {
      styles = new Styles(2);
    }
    else
    {
      styles.clear();
    }
View Full Code Here

Examples of org.apache.flex.swf.types.Styles

    private void printShape(Shape shapes)
    {
        if (shapes == null)
            return;

        Styles styles = null;

        if (shapes instanceof ShapeWithStyle)
        {
            styles = new Styles(((ShapeWithStyle)shapes).getFillStyles(),
                                ((ShapeWithStyle)shapes).getLineStyles());
        }

        for (ShapeRecord shape : shapes.getShapeRecords())
        {
            indent();
            if (shape instanceof StyleChangeRecord)
            {
                StyleChangeRecord styleChange = (StyleChangeRecord)shape;
                out.print("<styleChange ");
                if (styleChange.isStateMoveTo())
                {
                    out.print("dx=\"" + styleChange.getMoveDeltaX() + "\" dy=\"" +
                              styleChange.getMoveDeltaY() + "\" ");
                }
                if (styleChange.isStateFillStyle0())
                {
                    out.print("fillStyle0=\"" +
                              (styles.getFillStyles().indexOf(styleChange.getFillstyle0()) + 1) + "\" ");
                }
                if (styleChange.isStateFillStyle1())
                {
                    out.print("fillStyle1=\"" +
                              (styles.getFillStyles().indexOf(styleChange.getFillstyle1()) + 1) + "\" ");
                }
                if (styleChange.isStateLineStyle())
                {
                    out.print("lineStyle=\"" +
                              (styles.getFillStyles().indexOf(styleChange.getLinestyle()) + 1) + "\" ");
                }
                if (styleChange.isStateNewStyles())
                {
                    out.println(">");
                    indent++;
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.