Package com.volantis.mcs.themes

Examples of com.volantis.mcs.themes.StyleKeyword


            // add the keywords to the combo. Note: keywords are not localized
            // as the are part of the CSS spec.
            if (allowableKeywords != null) {
                List keywords = allowableKeywords.getKeywords();
                for (int i = 0; i < keywords.size(); i++) {
                    StyleKeyword keyword = (StyleKeyword) keywords.get(i);
                    if (!keyword.isInternal()) {
                        editableCombo.add(keyword.getName());
                    }
                }
            }
        }
        if (colorButtonRequired) {
View Full Code Here


    protected StyleKeyword getArgumentAsKeyword(
            String functionName, List arguments, int index,
            AllowableKeywords allowableKeywords) {

        StyleValue value = (StyleValue) arguments.get(index);
        StyleKeyword keyword = null;
        if (value instanceof StyleKeyword) {
            keyword = (StyleKeyword) value;
        } else {
            unexpectedType(functionName, index, StyleValueType.KEYWORD, value);
        }
View Full Code Here

     * images disabled.
     *
     * @throws Exception
     */
    public void testBothNoneStyle() throws Exception {
        StyleKeyword imageStyle = MCSMenuImageStyleKeywords.NONE;
        StyleKeyword textStyle = MCSMenuTextStyleKeywords.NONE;
        StyleKeyword orderStyle = null;
        checkMenuStyles(imageStyle, textStyle, orderStyle);
    }
View Full Code Here

     * @throws Exception if there was a problem testing the menu rendering.
     */
    private void checkMenuContent(String menuTitle)
            throws Exception {
        // Declare the fixed data items which will be used in the menu.
        StyleKeyword imageStyle = MCSMenuImageStyleKeywords.PLAIN;
        StyleKeyword textStyle = MCSMenuTextStyleKeywords.PLAIN;
        StyleKeyword orderStyle = MCSMenuItemOrderKeywords.IMAGE_FIRST;
        // Test the menu.
        checkSimpleMenu(imageStyle, textStyle, orderStyle, menuTitle);
    }
View Full Code Here

*/
public class CSSBorderStylePropertyRendererTestCase extends TestCaseAbstract {

   
    public void testRenderWhenBorderStyleIsDotted() {
        StyleKeyword borderStyle = BorderStyleKeywords.DOTTED;

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

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

        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWhenBorderStyleIsDashed() {
        StyleKeyword borderStyle = BorderStyleKeywords.DASHED;

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

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

        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWhenBorderStyleIsSolid() {
        StyleKeyword borderStyle = BorderStyleKeywords.SOLID;

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

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

        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWhenBorderStyleIsDouble() {
        StyleKeyword borderStyle = BorderStyleKeywords.DOUBLE;

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

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

        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWhenBorderStyleIsGroove() {
        StyleKeyword borderStyle = BorderStyleKeywords.GROOVE;

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

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

        assertEquals(expectedRendering, actualRendering);
    }

    public void testRenderWhenBorderStyleIsRidge() {
        StyleKeyword borderStyle = BorderStyleKeywords.RIDGE;

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

        String expectedRendering = "border-top-style:ridge;";
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.