Examples of AWEncodedString


Examples of ariba.ui.aribaweb.util.AWEncodedString

        return senderId();
    }

    public String remoteLinkUrl ()
    {
        AWEncodedString senderId = senderId();
        String url = AWComponentActionRequestHandler.SharedInstance.urlWithSenderId(requestContext(), senderId);
        return StringUtil.strcat(url, "&", AWComponentActionRequestHandler.SenderKey, "=", senderId.string());
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWEncodedString

        return _textFieldName;
    }

    public AWEncodedString textFieldId ()
    {
        AWEncodedString id = null;
        if (hasBinding(BindingNames.id)) {
            id = encodedStringValueForBinding(BindingNames.id);
        }

        if (id == null) {
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWEncodedString

    {
        if (_background != null) {
            String filename = _background.stringValue(component);
            if (filename != null) {
                String imageUrl = AWBaseImage.imageUrl(requestContext, component, filename);
                AWEncodedString encodedImageUrl = AWEncodedString.sharedEncodedString(imageUrl);
                AWGenericElement.appendHtmlAttributeToResponse(response, component, BindingNames.background, encodedImageUrl);
            }
        }
        super.appendAttributes(requestContext, component, response, isBrowserMicrosoft);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWEncodedString

        return _imageInfo;
    }

    protected AWEncodedString imageUrl (String filename)
    {
        AWEncodedString imageUrl = null;
        if (filename == null) {
            imageUrl = encodedStringValueForBinding(_srcBinding);
            Log.aribawebResource_brand.debug("AWBaseImage: filename %s", imageUrl);
        }
        else {
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWEncodedString

        return imageUrl(filename);
    }

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

Examples of ariba.ui.aribaweb.util.AWEncodedString

        return width;
    }

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

Examples of ariba.ui.aribaweb.util.AWEncodedString

        return _submitFormDefault;
    }

    public AWEncodedString formActionUrl ()
    {
        AWEncodedString formActionUrl =  (requestContext().isStaticGeneration())
                ? new AWEncodedString(requestContext().staticUrlForActionResults((AWResponseGenerating)valueForBinding(AWBindingNames.action)))
                : AWComponentActionRequestHandler.SharedInstance.requestHandlerUrlEncoded(request());
        String fragmentIdentifier = stringValueForBinding(BindingNames.fragmentIdentifier);
        if (fragmentIdentifier != null) {
            String url = StringUtil.strcat(formActionUrl.string(), "#", fragmentIdentifier);
            formActionUrl = AWEncodedString.sharedEncodedString(url);
        }

        return formActionUrl;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWEncodedString

        return bareString;
    }

    private AWEncodedString widthString (Map bindingsHashtable, AWImageInfo imageInfo)
    {
        AWEncodedString widthString = null;
        AWBinding widthBinding = (AWBinding)bindingsHashtable.remove(BindingNames.width);
        if (widthBinding != null) {
            if (!widthBinding.isConstantValue()) {
                throw new AWGenericException(getClass().getName() + ": \"width\" binding must be constant.");
            }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWEncodedString

        return widthString;
    }

    private AWEncodedString heightString (Map bindingsHashtable, AWImageInfo imageInfo)
    {
        AWEncodedString heightString = null;
        AWBinding heightBinding = (AWBinding)bindingsHashtable.remove(BindingNames.height);
        if (heightBinding != null) {
            if (!heightBinding.isConstantValue()) {
                throw new AWGenericException(getClass().getName() + ": \"height\" binding must be constant.");
            }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWEncodedString

        }
        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();
        AWFastStringBuffer fastStringBuffer = new AWFastStringBuffer();
        fastStringBuffer.append("<img src=\"");
        fastStringBuffer.append(imageUrl);
        fastStringBuffer.append("\"");
        if (widthString != null) {
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.