Package ariba.ui.meta.core

Examples of ariba.ui.meta.core.Context


    }

    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


    public void search ()
    {
        if (errorManager().checkErrorsAndEnableDisplay()) return;
        Predicate pred = Predicate.fromKeyValueMap(_searchMap);
        Context context = MetaContext.currentContext(this);
        String className = (String)context.values().get(UIMeta.KeyClass);
        QuerySpecification spec = new QuerySpecification(className, pred);

        context.push();
        context.setScopeKey(UIMeta.KeyClass);
        spec.setUseTextIndex(pred != null
                && context.booleanPropertyForKey(PersistenceMeta.PropUseTextSearch, false));
        context.pop();

        MetaSearch.updateQuerySpecification(requestContext(), spec);
    }
View Full Code Here

        _currentModule = null;
    }

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

        void prepare ()
        {
            UIMeta meta = UIMeta.getInstance();
            if (_modules == null || _ruleSetGeneration < meta.ruleSetGeneration()) {
                Context context = meta.newContext();
                _moduleInfo = meta.computeModuleInfo(context, true);
                _modules = _moduleInfo.modules;
                if (_selectedModule != null)_selectedModule = moduleNamed(_selectedModule.name());
                _ruleSetGeneration = meta.ruleSetGeneration();
            }
View Full Code Here

        public AWResponseGenerating gotoModule (ModuleProperties module, AWRequestContext requestContext)
        {
            selectModule(module);

            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

        public void selectModule (ModuleProperties selectedModule)
        {
            if (_selectedModule == selectedModule) return;
            _selectedModule = selectedModule;
            UIMeta meta = UIMeta.getInstance();
            Context context = meta.newContext();

            context.push();

            assignCurrentModuleContext(context);

            _actionsByCategory = new HashMap();
            _actionCategories = meta.actionsByCategory(context, _actionsByCategory, UIMeta.ModuleActionZones);

            context.pop();
        }
View Full Code Here

        public AWResponseGenerating redirectForPage (AWComponent pageComponent)
        {
            AWComponent page = pageComponent;
            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();
            return page;
        }
View Full Code Here

            _keyPath = keyPath;
        }

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

    }

    String detailClassName ()
    {
        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);
    }
View Full Code Here

        }
    }

    public void setSelectedParentRecord (Context.AssignmentRecord selectedRecord)
    {
        Context context = _meta.newContext();
        prepareContext(context, Context.staticContext(_meta, selectedRecord, true), null, true);
        setSelectedRecord((Context.AssignmentRecord)context.debugTracePropertyProvider());
    }
View Full Code Here

TOP

Related Classes of ariba.ui.meta.core.Context

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.