Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWImageInfo


            if (application.allowBrandingImages()) {
                String urlString = imageUrl(requestContext(), this, filename, useFullUrl());
                imageUrl = AWEncodedString.sharedEncodedString(urlString);
            }
            else {
                AWImageInfo imageInfo = imageInfo(filename);
                if (imageInfo == null) {
                    String urlString = AWUtil.formatErrorUrl(filename);
                    imageUrl = AWEncodedString.sharedEncodedString(urlString);
                }
                else {
View Full Code Here


    public AWEncodedString width ()
    {
        AWEncodedString width = null;
        if (_widthBinding == null) {
            String filename = filename();
            AWImageInfo imageInfo = imageInfo(filename);
            if (imageInfo != null) {
                width = imageInfo.widthString;
            }
        }
        else {
View Full Code Here

    public AWEncodedString height ()
    {
        AWEncodedString height = null;
        if (_heightBinding == null) {
            String filename = filename();
            AWImageInfo imageInfo = imageInfo(filename);
            if (imageInfo != null) {
                height = imageInfo.heightString;
            }
        }
        else {
View Full Code Here

        if (!filenameBinding.isConstantValue()) {
            throw new AWGenericException(getClass().getName() + ": \"filename\" binding must be constant.");
        }
        String filename = filenameBinding.stringValue(null);
        AWMultiLocaleResourceManager resourceManager = AWConcreteApplication.SharedInstance.resourceManager();
        AWImageInfo imageInfo = resourceManager.imageInfoForName(filename);
        String imageUrl = imageUrl(imageInfo, filename);
        AWEncodedString width = widthString(bindingsHashtable, imageInfo);
        AWEncodedString height = heightString(bindingsHashtable, imageInfo);
        String widthString = width.string();
        String heightString = height.string();
View Full Code Here

    private static long ProductImageCRC = 0;
    private static long BannerImageCRC = 0;

    public boolean evaluateCondition (AWRequestContext requestContext)
    {
        AWImageInfo imageInfo =
            productImageBrandedOnly(requestContext);
        return imageInfo != null;
    }
View Full Code Here

public class DisplayProductImageInBannerAreaConditionHandler extends ConditionHandler
{
    public boolean evaluateCondition (AWRequestContext requestContext)
    {
        boolean displayProductImageInBannerArea = false;
        AWImageInfo imageInfo = HideBannerImageConditionHandler.productImageBrandedOnly(requestContext);
        if (imageInfo != null) {
            displayProductImageInBannerArea = isImageWide(imageInfo);
        }
        return displayProductImageInBannerArea;
    }
View Full Code Here

    }

    public String style ()
    {
        if (_style == null) {
            AWImageInfo awImageInfo = resourceManager().imageInfoForName(filename());
            if (awImageInfo != null) {
                int height = awImageInfo.height;
                int width = awImageInfo.width;

                int minWidth = minWidth();
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.util.AWImageInfo

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.