Examples of propertyForKey()


Examples of ariba.ui.meta.core.Context.propertyForKey()

    public String searchOperation ()
    {
        if (_searchOperation == null) {
            Context context = MetaContext.currentContext(this);
            _searchOperation = (String)context.propertyForKey("searchOperation");
            _supportsTextSearch = context.booleanPropertyForKey("textSearchSupported", false);
        }
        return _searchOperation;
    }
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

    public String currentModuleLabel ()
    {
        Context context = MetaContext.currentContext(this);
        context.push();
        context.set(UIMeta.KeyModule, _currentModule.name());
        String label = (String)context.propertyForKey(UIMeta.KeyLabel);
        context.pop();
        return label;
    }

    public AWResponseGenerating moduleClicked ()
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

            UIMeta meta = UIMeta.getInstance();
            Context context = meta.newContext();
            context.push();
            context.set(UIMeta.KeyModule, module.name());
            String pageName = (String)context.propertyForKey(UIMeta.KeyHomePage);
            AWComponent page = requestContext.pageWithName(pageName);
            meta.preparePage(context, page);
            context.pop();
            return page;
        }
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

            checkSelectedModule(pageComponent);
            UIMeta meta = UIMeta.getInstance();
            Context context = meta.newContext();
            context.push();
            context.set(UIMeta.KeyModule, _selectedModule.name());
            String pageName = (String)context.propertyForKey(UIMeta.KeyHomePage);
            if (pageName != null && !pageName.equals(pageComponent.componentDefinition().componentName())) {
                page = pageComponent.requestContext().pageWithName(pageName);
                meta.preparePage(context, page);
            }
            context.pop();
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

        public Class typeClass ()
        {
            Context ctx = _meta.newContext();
            ctx.set(ObjectMeta.KeyClass, _className);
            ctx.set(ObjectMeta.KeyField, _keyPath);
            String type = (String)ctx.propertyForKey(ObjectMeta.KeyType);
            return type != null ? ClassUtil.classForName(type) : null;
        }
    }

    public TypeProvider (Meta meta, String className)
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

    {
        ObjectMeta meta = UIMeta.getInstance();
        Context context = meta.newContext();
        context.set(ObjectMeta.KeyClass, _parentObject.getClass().getName());
        context.set(ObjectMeta.KeyField, _detailFieldPath.fieldPathString());
        return (String)context.propertyForKey(ObjectMeta.KeyElementType);
    }

    public Object insert()
    {
        if (_parentObject == null) return null;
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

        // Need to find all fields with `draggedItem` as predecessor and give them
        // its predecessor
        Context context = _meta.newContext();
        prepareContext(context, dragContext, dragContext.scopeKey, false);
        List<String> zones = (List)context.propertyForKey("zones");
        String[] zoneArr = (zones != null) ? zones.toArray(new String[zones.size()]) : UIMeta.ZonesTLRB;
        String defaultZone = zoneArr[0];
        Map<String, List> preds = _meta.predecessorMap(context, dragContext.scopeKey, defaultZone);

        // Any items after the dragged should now be after its predecessor
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

    public String currentTabLabel ()
    {
        Context context = MetaContext.currentContext(this);
        context.push();
        context.set(UIMeta.KeyLayout, _currentTabName);
        String label = (String)context.propertyForKey(UIMeta.KeyLabel);
        context.pop();
        return label;
    }
}
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

                }
            }
            ctx.set(UIMeta.KeyAction, action);
            if (page != null) ctx.set("page", page);
            _actionResults = ((UIMeta)ctx.meta()).fireAction(ctx, requestContext());
            _actionTarget = (String)ctx.propertyForKey("linkTarget");
            ctx.pop();
        } else {
            // static URL -- initialize action target
            Context ctx = MetaContext.currentContext(this);
            ctx.push();
View Full Code Here

Examples of ariba.ui.meta.core.Context.propertyForKey()

        } else {
            // static URL -- initialize action target
            Context ctx = MetaContext.currentContext(this);
            ctx.push();
            ctx.set("page", _actionUrl);
            _actionTarget = (String)ctx.propertyForKey("linkTarget");
            ctx.pop();

            _actionResults = AWRedirect.getRedirect(requestContext(), _actionUrl);
        }
    }
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.