Package ariba.ui.meta.core

Examples of ariba.ui.meta.core.UIMeta


        {
        }

        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

        }

        void checkSelectedModule (AWComponent pageComponent)
        {
            // Auto select the best match for the current page
            UIMeta meta = UIMeta.getInstance();
            selectModule(meta.matchForPage(_modules, pageComponent, _selectedModule));
        }
View Full Code Here

        }

        public AWResponseGenerating fireAction (ItemProperties action, AWRequestContext requestContext)
        {
            // ToDo -- figure out how to fire Action
            UIMeta meta = UIMeta.getInstance();
            UIMeta.UIContext context = (UIMeta.UIContext)meta.newContext();
            context.setRequestContext(requestContext);
            context.push();
            context.set(UIMeta.KeyModule, _selectedModule.name());
            String className = (String)action.properties().get(UIMeta.KeyClass);
            if (className != null) context.set(UIMeta.KeyClass, className);
            AWResponseGenerating response =  meta.fireAction(action, context, requestContext);
            context.pop();
            return response;
        }
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

        return _editManager != null && _editManager.editing();
    }

    public void renderResponse (AWRequestContext requestContext, AWComponent component)
    {
        UIMeta meta = UIMeta.getInstance();

        _editManager = EditManager.currentEditManager(meta, session(), true);
        Context.AssignmentRecord prevRec = _srec;
        _srec = _editManager.getSelectedRecord();
View Full Code Here

    }

    void invalidateForEdit ()
    {
        _didInvalidate = true;
        UIMeta meta = UIMeta.getInstance();
        meta.invalidateRules();
        if (_metadataNode != null) _metadataNode.invalidate();
        _refreshMainWindowActionId = "\"refresh\""; // bogus actionId, causes refresh
    }
View Full Code Here

    public List<ItemProperties> actionCategories ()
    {
        if (!_isGlobal) {
            Context context = MetaContext.currentContext(this);
            UIMeta meta = (UIMeta)context.meta();
            context.push();
            _actionsByCategory = new HashMap();
            List<ItemProperties> categories = meta.actionsByCategory(context, _actionsByCategory, UIMeta.ActionZones);
            context.pop();
            return categories;
        }

        List <String> showCategories = (List)valueForBinding("showOnly");
View Full Code Here

    }

    public void doneEditing ()
    {
        if (_editingRule == null) return;
        UIMeta meta = UIMeta.getInstance();
        Map newProp = MapUtil.map();
        String newAssignmentString = (isPropertiesPanel())
                ? _editingKey + ": " + OSSWriter.escapeString(_editableAssignmentString)
                : _editableAssignmentString;
        String errorMessage = meta.parsePropertyAssignment(newAssignmentString, newProp);
        if (errorMessage != null) {
            recordValidationError("property", errorMessage, _editableAssignmentString);
        }
        if (newProp.isEmpty()) {
            recordValidationError("property", "Unable to parse property assignment", _editableAssignmentString);
View Full Code Here

TOP

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

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.