Examples of AWBinding


Examples of ariba.ui.aribaweb.core.AWBinding

        return (AWResponseGenerating)valueForBinding(_currentAction._action);
    }

    public boolean isActionVisible ()
    {
        AWBinding binding = _currentAction._isVisible;
        return binding == null ?
            true :
            booleanValueForBinding(binding);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

    public String isCurrentItemSelected ()
    {
        String isCurrentItemSelected = null;
        // If we have a itemSelectedBinding, let that define
        // if this item is selected.
        AWBinding itemSelectedBinding = itemSelectedBinding();
        if (itemSelectedBinding != null) {
            if (booleanValueForBinding(itemSelectedBinding)) {
                isCurrentItemSelected = BindingNames.awstandalone;
            }
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

    public void setFormValue (String formValueString)
    {
        Object objectValue = null;
        boolean shouldSetValue = true;
        if (formValueString.length() == 0) {
            AWBinding emptyStringValueBinding =
                bindingForName(BindingNames.emptyStringValue, true);
            if (emptyStringValueBinding != null) {
                formValueString = (String)valueForBinding(emptyStringValueBinding);
            }
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

    public AWEncodedString inputName ()
    {

        if (_inputName == null) {
            AWBinding name = bindingForName(BindingNames.name);
            if (hasBinding(name)) {
                _inputName =
                    AWEncodedString.sharedEncodedString(
                        stringValueForBinding(name));
            }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

        // recording & playback
        // provide a better semantic key
    protected AWBinding _debugPrimaryBinding ()
    {
        AWBinding primaryBinding = null;
        AWComponentReference componentRef = componentReference();

        if (componentRef != null) {
            AWComponent parent = parent();
            primaryBinding = componentRef.bindingForName(BindingNames.action, parent);
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

        if (_disabled) {
            return;
        }
        Object objectValue = null;
        if (formValueString.length() == 0) {
            AWBinding emptyStringValueBinding =
                bindingForName(BindingNames.emptyStringValue, true);
            if (emptyStringValueBinding != null) {
                formValueString = (String)valueForBinding(emptyStringValueBinding);
            }
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

        if (_disabled) {
            return;
        }
        Object objectValue = null;
        if (formValueString.length() == 0) {
            AWBinding emptyStringValueBinding =
                bindingForName(BindingNames.emptyStringValue, true);
            if (emptyStringValueBinding != null) {
                formValueString = (String)valueForBinding(emptyStringValueBinding);
            }
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

    }

    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.");
            }
            widthString = widthBinding.encodedStringValue(null);
        }
        else if (imageInfo != null) {
            widthString = imageInfo.widthString;
        }
        return widthString;
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

    }

    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.");
            }
            heightString = heightBinding.encodedStringValue(null);
        }
        else if (imageInfo != null) {
            heightString = imageInfo.heightString;
        }
        return heightString;
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWBinding

        return heightString;
    }

    private String computeImgString (Map bindingsHashtable)
    {
        AWBinding filenameBinding = (AWBinding)bindingsHashtable.remove(BindingNames.filename);
        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();
        AWFastStringBuffer fastStringBuffer = new AWFastStringBuffer();
        fastStringBuffer.append("<img src=\"");
        fastStringBuffer.append(imageUrl);
        fastStringBuffer.append("\"");
        if (widthString != null) {
            fastStringBuffer.append(" width=\"");
            fastStringBuffer.append(widthString);
            fastStringBuffer.append("\"");
        }
        if (heightString != null) {
            fastStringBuffer.append(" height=\"");
            fastStringBuffer.append(heightString);
            fastStringBuffer.append("\"");
        }
        AWBinding borderBinding = (AWBinding)bindingsHashtable.remove(BindingNames.border);
        String borderString = (borderBinding != null) ? borderBinding.stringValue(null) : "0";
        if (borderString != null) {
            fastStringBuffer.append(" border=\"");
            fastStringBuffer.append(borderString);
            fastStringBuffer.append("\"");
        }
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.