Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWComponent.parent()


        {
            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


    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);
        }
View Full Code Here

abstract public class BrandingComponent extends AWComponent
{
    public Object findValueForBinding (String bindingName)
    {
        AWComponent parent;
        for (parent = parent(); parent != null; parent = parent.parent()) {
            AWBinding binding = parent.bindingForName(bindingName);
            if (binding != null) {
                return parent.valueForBinding(binding);
            }
        }
View Full Code Here

    public static AWComponent componentWithTemplateNamed (String templateName,
                                                          AWComponent component)
    {
        AWComponent context = component;
        for (; context != null; context = context.parent()) {
            AWElement contentElement = context.componentReference().contentElement();
            if (contentElement instanceof AWTemplate) {
                AWTemplate template = (AWTemplate)contentElement;
                if (template.indexOfNamedSubtemplate(templateName, component) != -1) {
                    return context;
View Full Code Here

{
    public boolean evaluateCondition (AWRequestContext requestContext)
    {
        AWComponent parentComponent = requestContext.getCurrentComponent().parent();
        if (!(parentComponent instanceof PageWrapper)) {
            parentComponent = parentComponent.parent();
        }
        boolean disableHome =
            parentComponent.booleanValueForBinding(BindingNames.disableHomeAction);

        return disableHome;
View Full Code Here

{
    public boolean evaluateCondition (AWRequestContext requestContext)
    {
        AWComponent parentComponent = requestContext.getCurrentComponent().parent();
        if (!(parentComponent instanceof PageWrapper)) {
            parentComponent = parentComponent.parent();
        }
        return parentComponent.booleanValueForBinding(BindingNames.disableHelpAction);
    }
}
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.