Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleKeyword


        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWhenBorderStyleIsInset() {
        StyleKeyword borderStyle = BorderStyleKeywords.INSET;

        CSSBorderStylePropertyRenderer borderStylePropertyRenderer =
                new CSSBorderStylePropertyRenderer("border-top-style");

        String expectedRendering = "border-top-style:inset;";
View Full Code Here


        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWhenBorderStyleIsOutset() {
        StyleKeyword borderStyle = BorderStyleKeywords.OUTSET;

        CSSBorderStylePropertyRenderer borderStylePropertyRenderer =
                new CSSBorderStylePropertyRenderer("border-top-style");

        String expectedRendering = "border-top-style:outset;";
View Full Code Here

        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWithWidthSpecifiedUsingThinKeyword() {
        StyleKeyword borderStyle = BorderWidthKeywords.THIN;

        CSSBorderWidthPropertyRenderer borderPropertyRenderer =
                new CSSBorderWidthPropertyRenderer("border-top-width");

        String expectedRendering = "border-top-width:thin;";
View Full Code Here

        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWithWidthSpecifiedUsingMediumKeyword() {
        StyleKeyword borderStyle = BorderWidthKeywords.MEDIUM;

        CSSBorderWidthPropertyRenderer borderPropertyRenderer =
                new CSSBorderWidthPropertyRenderer("border-top-width");

        String expectedRendering = "border-top-width:medium;";
View Full Code Here

        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWithWidthSpecifiedUsingThickKeyword() {
        StyleKeyword borderStyle = BorderWidthKeywords.THICK;

        CSSBorderWidthPropertyRenderer borderPropertyRenderer =
                new CSSBorderWidthPropertyRenderer("border-top-width");

        String expectedRendering = "border-top-width:thick;";
View Full Code Here

    public void testSelectMenuSeparatorHorizontal() throws Exception {
        for (int index = 0; index < horizontalSeparatorTypes.length; index++) {
            MenuSeparatorRendererSelector selector = createSelector();
            Menu menu;

            StyleKeyword type = horizontalSeparatorTypes[index];

            menu = createMenu(StylesBuilder.getCompleteStyles(
                    "mcs-menu-orientation: horizontal; " +
                    "mcs-menu-horizontal-separator: " + type.getStandardCSS()),
                    null);

            checkSeparator("selectMenuSeparator(horizontal type=" + type + ")",
                           getMenuSeparatorHorizontalClass(type),
                           selector.selectMenuSeparator(menu));
View Full Code Here

    public void testSelectMenuItemSeparatorHorizontal() throws Exception {
        for (int index = 0; index < horizontalSeparatorTypes.length; index++) {
            MenuSeparatorRendererSelector selector = createSelector();
            Menu menu;

            StyleKeyword type = horizontalSeparatorTypes[index];

            menu = createMenu(StylesBuilder.getCompleteStyles(
                    "mcs-menu-item-orientation: horizontal; " +
                    "mcs-menu-horizontal-separator: " + type.getStandardCSS()),
                    null);

            checkSeparator("selectMenuItemSeparator(horizontal type=" + type + ")",
                           getMenuItemSeparatorHorizontalClass(type),
                           selector.selectMenuItemSeparator(menu));
View Full Code Here

        String counterName = getCounterName(functionName, styleValues, 0);

        String separator = getArgumentAsString(functionName, styleValues, 1);

        StyleKeyword formatStyle = ListStyleTypeKeywords.DECIMAL;
        if (styleValues.size() == 3) {
            formatStyle = getArgumentAsKeyword(functionName, styleValues, 2,
                    ALLOWABLE_FORMAT_STYLES);
        }
View Full Code Here

                    "styling-function-argument-count"));
        }

        String counterName = getCounterName(functionName, styleValues, 0);

        StyleKeyword formatStyle = ListStyleTypeKeywords.DECIMAL;
        if (styleValues.size() == 2) {
            formatStyle = getArgumentAsKeyword(functionName, styleValues, 1,
                    ALLOWABLE_FORMAT_STYLES);
        }
View Full Code Here

    public void testAddingVerticalAlignmentAttribute() throws Exception {
        final HTML3_2VerticalAlignEmulationPropertyRenderer renderer =
                new HTML3_2VerticalAlignEmulationPropertyRenderer();

        // Create the "top" vertical alignment style value.
        final StyleKeyword kvalue = VerticalAlignKeywords.TOP;

        // Test that an align attribute is added to the img element.
        assertTrue("align attribute should be added to the img element",
                doTest(renderer, kvalue, "img",
                        "<img align=\"top\"/>"));
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.StyleKeyword

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.