Package com.volantis.mcs.themes.mappers

Examples of com.volantis.mcs.themes.mappers.KeywordMapper


        super(propertyName);
    }

    // Javadoc inherited.
    protected void setKeywordMapper(RendererContext renderContext) {
        KeywordMapper keywordMapper = renderContext.getKeywordMapperFactory().
                getBorderStyleKeywordMapper();
        renderContext.setKeywordMapper(keywordMapper);
    }
View Full Code Here


        super(propertyName);
    }

    // Javadoc inherited.
    protected void setKeywordMapper(RendererContext renderContext) {
        KeywordMapper keywordMapper =
                renderContext.getKeywordMapperFactory().
                getBorderWidthKeywordMapper();
        renderContext.setKeywordMapper(keywordMapper);
    }
View Full Code Here

    /**
     * Tests the KeywordMapper for the BackgroundXPosition property
     * is correct
     */
    public void testGetBackgroundXPositionKeywordMapper() {
        KeywordMapper mapper = RuntimeKeywordMapperFactory.getSingleton().
                getBackgroundXPositionKeywordMapper();

        assertEquals(mapper.getClass(),
                     RuntimeBackgroundXPositionKeywordMapper.class);
    }
View Full Code Here

    /**
     * Tests the KeywordMapper for the BackgroundYPosition property
     * is correct
     */
    public void testGetBackgroundYPositionKeywordMapper() {
        KeywordMapper mapper = RuntimeKeywordMapperFactory.getSingleton().
                getBackgroundYPositionKeywordMapper();

        assertEquals(mapper.getClass(),
                     RuntimeBackgroundYPositionKeywordMapper.class);
    }
View Full Code Here

    /**
     * Test that the mapping for constant BACKGROUND_XPOSITION__LEFT is set
     * up correctly.
     */
    public void testMapperLeft() {
        KeywordMapper keywordMapper =
                RuntimeBackgroundXPositionKeywordMapper.getSingleton();

        assertEquals("0%", keywordMapper.
                getExternalString(BackgroundXPositionKeywords.LEFT));
    }
View Full Code Here

    /**
     * Test that the mapping for constant BACKGROUND_XPOSITION__CENTER
     * is set up correctly.
     */
    public void testMapperCenter() {
        KeywordMapper keywordMapper =
                RuntimeBackgroundXPositionKeywordMapper.getSingleton();

        assertEquals("50%", keywordMapper.
                getExternalString(BackgroundXPositionKeywords.CENTER));
    }
View Full Code Here

    /**
     * Test that the mapping for constant BACKGROUND_XPOSITION__RIGHT
     * is set up correctly.
     */
    public void testMapperRight() {
        KeywordMapper keywordMapper =
                RuntimeBackgroundXPositionKeywordMapper.getSingleton();

        assertEquals("100%", keywordMapper.
                getExternalString(BackgroundXPositionKeywords.RIGHT));
    }
View Full Code Here

    /**
     * Test that the mapping for constant BACKGROUND_YPOSITION__TOP is set
     * up correctly.
     */
    public void testMapperTop() {
        KeywordMapper keywordMapper =
                RuntimeBackgroundYPositionKeywordMapper.getSingleton();

        assertEquals("0%", keywordMapper.
                getExternalString(BackgroundYPositionKeywords.TOP));
    }
View Full Code Here

    /**
     * Test that the mapping for constant BACKGROUND_YPOSITION__CENTER is set
     * up correctly.
     */
    public void testMapperCenter() {
        KeywordMapper keywordMapper =
                RuntimeBackgroundYPositionKeywordMapper.getSingleton();

        assertEquals("50%", keywordMapper.
                getExternalString(BackgroundYPositionKeywords.CENTER));
    }
View Full Code Here

    /**
     * Test that the mapping for constant BACKGROUND_YPOSITION__BOTTOM is set
     * up correctly.
     */
    public void testMapperBottom() {
        KeywordMapper keywordMapper =
                RuntimeBackgroundYPositionKeywordMapper.getSingleton();

        assertEquals("100%", keywordMapper.
                getExternalString(BackgroundYPositionKeywords.BOTTOM));
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.themes.mappers.KeywordMapper

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.