Package com.volantis.mcs.protocols.assets.implementation

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralImageAssetReference


     */
    public void testCreateImageMenuItemGroupSeparator() throws Exception {
        checkClass("createImageMenuItemGroupSeparator",
                   getExpectedImageMenuItemGroupSeparatorRendererClass(),
                   createFactory().createImageMenuItemGroupSeparator(
                           new LiteralImageAssetReference("url")));
    }
View Full Code Here


        builder.startMenuItem();
        builder.setElementDetails("menuitem", "menuitem1",
                StylesBuilder.getInitialValueStyles());
        builder.startLabel();
        builder.startIcon();
        builder.setNormalImageURL(new LiteralImageAssetReference("normal.gif"));
        builder.setOverImageURL(new LiteralImageAssetReference("over.gif"));
        builder.endIcon();
        builder.startText();

        OutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.writeText("text");
View Full Code Here

        builder.startMenuItem();
        builder.setElementDetails("menuitem", "menuitem1",
                StylesBuilder.getInitialValueStyles());
        builder.startLabel();
        builder.startIcon();
        builder.setNormalImageURL(new LiteralImageAssetReference("normal.gif"));
        builder.setOverImageURL(new LiteralImageAssetReference("over.gif"));
        builder.endIcon();
        builder.startText();

        OutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.writeText("text");
View Full Code Here

     * combinations.
     */
    public void testGetNormalURL() {
        // String to use for the tests
        final ImageAssetReference testNormalURL =
                new LiteralImageAssetReference("normal");

        ImageAssetReference testString;

        ConcreteMenuIcon testInstance = createTestClass();

View Full Code Here

     * Create a test image asset reference using default values.
     *
     * @return An image asset reference
     */
    public ImageAssetReference createImageAssetReference() {
        return new LiteralImageAssetReference(IMAGE);
    }
View Full Code Here

     *
     * @param name The name of the image to create the reference around
     * @return An image asset reference
     */
    public ImageAssetReference createImageAssetReference(String name) {
        return new LiteralImageAssetReference(name);
    }
View Full Code Here

        }

        final ImageAssetReference imageAssetReference;
        if (value instanceof StyleURI) {
            String uri = ((StyleURI) value).getURI();
            imageAssetReference = new LiteralImageAssetReference(uri);
        } else if (value instanceof StyleComponentURI) {
            StyleComponentURI styleComponentURI = (StyleComponentURI) value;

            // Resolve the identity against the project associated with the
            // value.
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.assets.implementation.LiteralImageAssetReference

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.