Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWRequestContext


        String url = null;
        AWResource resource = styleSheetResource();
        Assert.that(resource != null, "Stylesheet resource %s not found",
                    styleSheetName());

        AWRequestContext requestContext = requestContext();
        AWConcreteApplication application =
            (AWConcreteApplication)AWConcreteApplication.sharedInstance();

        AWBrand brand = application().getBrand(requestContext);
        if (application.allowBrandingImages() && brand != null) {
View Full Code Here


    }

    static public TestContext getTestContext ()
    {
        TestContext tc = null;
        AWRequestContext rc = AWRequestContext._requestContext();
        if (rc != null) {
           tc =getTestContext(rc);
        }
        return tc;
    }
View Full Code Here

        resourceManager.registerResourceDirectory(directoryPath, urlPrefix);
    }

    public static AWComponent pageWithName (String pageName)
    {
        AWRequestContext requestContext = ApplicationSharedInstance.createRequestContext(null);
        return ApplicationSharedInstance.createPageWithName(pageName, requestContext);
    }
View Full Code Here

        return val;
    }

    public AWResponseGenerating renderPrintPage ()
    {
        AWRequestContext requestContext = requestContext();
        requestContext.setIsPrintMode(true);
        requestContext.setFrameName("AWPrintPage");

        // re-render the page
        return null;
    }
View Full Code Here

    public String onClick ()
    {
        AWResponse response = response();
        ActionHandler handler = handler();
        AWRequestContext requestContext = requestContext();
        String target = handler.target(requestContext);
        response.appendContent(Constants.Space);
        response.appendContent(Constants.OnClick);
        response.appendContent(Constants.Equals);
        response.appendContent(Constants.Quote);
View Full Code Here

    public String target ()
    {
        String targetString = null;
        ActionHandler handler = handler();
        if (handler != null) {
            AWRequestContext requestContext = requestContext();
            targetString = handler.target(requestContext);
        }
        return targetString;
    }
View Full Code Here

        return false;
    }

    public Object disabled ()
    {
        AWRequestContext requestContext = requestContext();
        if (requestContext.isPrintMode() ||
            AWEditableRegion.disabled(requestContext)) {
            return Boolean.TRUE;
        }
        else {
            return valueForBinding(AWBindingNames.disabled);
View Full Code Here

        return componentReference().bindingForName(BindingNames.list, parent());
    }

    public String isDisabled ()
    {
        AWRequestContext requestContext = requestContext();
        return (_disabled || requestContext.isPrintMode()) ?
            BindingNames.awstandalone : null;
    }
View Full Code Here

    public String onChangeString ()
    {
        String onChangeString = null;
        if (bindingForName(BindingNames.action) != null || booleanValueForBinding(BindingNames.isRefresh)) {
            AWRequestContext requestContext = requestContext();
            AWResponse response = requestContext.response();
            response.appendContent(AWConstants.Space);
            response.appendContent(AWConstants.OnChange);
            response.appendContent(AWConstants.Equals);
            response.appendContent(AWConstants.Quote);
            AWXBasicScriptFunctions.appendSubmitCurrentForm(requestContext, _elementId);
View Full Code Here

            editable = booleanValueForBinding(AWBindingNames.editable);
        }
        else {
            editable = (Boolean)env().peek("editable");
        }
        AWRequestContext requestContext = requestContext();
        return ((editable != null) && editable &&
                !requestContext.isPrintMode() && !requestContext.isExportMode());
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.core.AWRequestContext

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.