Examples of AWComponent


Examples of ariba.ui.aribaweb.core.AWComponent

    {
        AWBinding primaryBinding = null;
        AWComponentReference componentRef = componentReference();

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

Examples of ariba.ui.aribaweb.core.AWComponent

    void processAll ()
    {
        String url;
        while ((url = _urlsToProcess.poll()) != null) {
            AWComponent component = _componentForUrl.get(url);
            processComponent(component, url);
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWComponent

        final AWConcreteApplication application = (AWConcreteApplication)AWConcreteApplication.createApplication(
                ExtendedDefaultApplication.class.getName(), ExtendedDefaultApplication.class);
        AWConcreteApplication.IsDebuggingEnabled = false;
       
        Assert.that(outputDir.isDirectory(), "Not a directory: %s", args[0]);
        AWComponent startPage;
        String mainName = application.mainPageName();

        if (args.length > 2 && !args[2].equals(".")) {
            mainName = args[2];
            startPage = AWComponent.createPageWithName(mainName);
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWComponent

    protected static final String ReturnPageKey = "AWXMReturnPage";

    public void awake ()
    {
        // Stash the page that preceded us the first time around
        AWComponent returnPage = returnPage(this);
        if (returnPage == null) {
            AWPage requestPage = requestContext().requestPage();
            if (requestPage != null) {
                returnPage = requestPage.pageComponent();
                pageComponent().dict().put(ReturnPageKey, returnPage);
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWComponent

    {
        AWBinding binding = bindingForName(AllowSwitch);
        if (binding != null) {
            return booleanValueForBinding(binding);
        } else {
            AWComponent r = AWNavigation.requestNavigation(this, AWNavigation.Hide);
            return (r == null);
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWComponent

        protected Object bindingValue (AWBinding binding)
        {
            Object bindingValue = null;
            if (binding != null) {
                AWComponent parent = this;
                while (!(parent instanceof AWTDataTable)) {
                    parent = parent.parent();
                }
                bindingValue = parent.valueForBinding(binding);
            }
            return bindingValue;
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWComponent

public final class HasSidebarConditionHandler extends ConditionHandler
{
    public boolean evaluateCondition (AWRequestContext requestContext)
    {
        AWComponent currComponent = requestContext.getCurrentComponent();
        ConditionHandler sidebarVisible =
            ConditionHandler.resolveHandlerInComponent(BindingNames.isSidebarVisible,
                                                       currComponent);
        ConditionHandler hasNotch =
            ConditionHandler.resolveHandlerInComponent(BindingNames.hasSidebarNotch,
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWComponent

public final class HasSidebarNotchConditionHandler extends ConditionHandler
{
    public boolean evaluateCondition (AWRequestContext requestContext)
    {
        // defer to binding, if one was passed on the <BasicPageWrapper>
        AWComponent parent = requestContext.getCurrentComponent().parent();
        if (parent.hasBinding(BindingNames.hasSidebarNotch)) {
            return parent.booleanValueForBinding(BindingNames.hasSidebarNotch);
        }
        if (requestContext.session(false) != null) {
            WidgetsSessionState state = WidgetsSessionState.get(requestContext);
            return state.hasSidebarNotch();
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWComponent

    public AWComponent openValidationErrorPage ()
    {
        AWValidationErrorPage errorPage = (AWValidationErrorPage)pageWithName(AWValidationErrorPage.Name);
        AWValidationContext validationContext = page().validationContext();
        AWComponent pageComponent = pageComponent();
        String pageComponentName = pageComponent.name();
        AWComponentDefinition pageComponentDefinition = pageComponent.componentDefinition();
        String packageName = AWComponentApiManager.packageNameForComponent(pageComponentDefinition);
        errorPage.setup(validationContext, pageComponentName, packageName);
        return errorPage;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWComponent

    }

    public boolean showHomeIcon ()
    {
        boolean disableHome = false;
        AWComponent parentComponent = requestContext().getCurrentComponent().parent();
        while (parentComponent != null && !(parentComponent instanceof PageWrapper) ) {
            parentComponent = parentComponent.parent();
        }
        if (parentComponent != null) {
            disableHome = parentComponent.booleanValueForBinding(
                                ariba.ui.widgets.BindingNames.disableHomeAction);
        }
        if (!disableHome) disableHome = MetaNavTabBar.getState(session()).getModules().size() == 0;
       
        // temporary check for login page
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.