Package org.apache.tapestry

Examples of org.apache.tapestry.IAsset.buildURL()


        IAsset imageAsset = getImage();

        if (imageAsset == null)
            throw Tapestry.createRequiredParameterException(this, "image");

        String imageURL = imageAsset.buildURL(cycle);

        writer.beginEmpty("img");

        writer.attribute("src", imageURL);
View Full Code Here


    protected IAsset newAsset(IRequestCycle cycle, String imageURL)
    {
        MockControl control = newControl(IAsset.class);
        IAsset asset = (IAsset) control.getMock();

        asset.buildURL(cycle);
        control.setReturnValue(imageURL);

        return asset;
    }
View Full Code Here

        boolean disabled = isDisabled();
        IAsset disabledImage = getDisabledImage();

        IAsset finalImage = (disabled && disabledImage != null) ? disabledImage : getImage();

        String imageURL = finalImage.buildURL(cycle);

        writer.beginEmpty("input");
        writer.attribute("type", "image");
        writer.attribute("name", name);
View Full Code Here

            }

            IAsset icon = getIcon();

            writer.beginEmpty("img");
            writer.attribute("src", icon.buildURL(cycle));
            writer.attribute("border", 0);

            if (!disabled)
                writer.end(); // <a>
View Full Code Here

        boolean disabled = isDisabled();
        IAsset disabledImage = getDisabledImage();

        IAsset finalImage = (disabled && disabledImage != null) ? disabledImage : getImage();

        String imageURL = finalImage.buildURL();

        writer.beginEmpty("input");
        writer.attribute("type", "image");
        writer.attribute("name", getName());
       
View Full Code Here

    protected IAsset newAsset(IRequestCycle cycle, String imageURL)
    {
        IAsset asset = newMock(IAsset.class);
        checkOrder(asset, false);
       
        expect(asset.buildURL()).andReturn(imageURL);

        return asset;
    }

    public void testPrerendered()
View Full Code Here

    private IAsset newAsset(String url)
    {
        IAsset asset = newMock(IAsset.class);
        checkOrder(asset, false);
       
        expect(asset.buildURL()).andReturn(url);

        return asset;
    }

    private CharArrayWriter _writer;
View Full Code Here

        IAsset imageAsset = getImage();

        if (imageAsset == null)
            throw Tapestry.createRequiredParameterException(this, "image");

        String imageURL = imageAsset.buildURL(cycle);

        writer.beginEmpty("img");

        writer.attribute("src", imageURL);
View Full Code Here

    private IAsset newAsset(IRequestCycle cycle, String url)
    {
        MockControl control = newControl(IAsset.class);
        IAsset asset = (IAsset) control.getMock();

        asset.buildURL(cycle);
        control.setReturnValue(url);

        return asset;
    }
View Full Code Here

    protected IAsset newAsset(IRequestCycle cycle, String imageURL)
    {
        MockControl control = newControl(IAsset.class);
        IAsset asset = (IAsset) control.getMock();

        asset.buildURL(cycle);
        control.setReturnValue(imageURL);

        return asset;
    }
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.