Package ariba.ui.meta.core

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


            // restore context for validation evaluation
            Context context = _contextSnapshot.hydrate();
            context.push();
            context.set(UIMeta.KeyField, fi);
            String errorMessage = UIMeta.validationError(context);
            context.pop();
            if (errorMessage != null) {
                recordValidationError(new AWErrorInfo(_object, fi, null,
                    errorMessage, null, false));
            }
        }
View Full Code Here


        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

    {
        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

            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;
        }

        public ItemProperties getSelectedModule()
        {
View Full Code Here

            assignCurrentModuleContext(context);

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

            context.pop();
        }

        void checkSelectedModule (AWComponent pageComponent)
        {
            // Auto select the best match for the current page
View Full Code Here

            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;
        }
    }

    public State _state;
View Full Code Here

    {
        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

            }
            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();
            ctx.set("page", _actionUrl);
View Full Code Here

            // 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

            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");
        List<ItemProperties> categories = MetaNavTabBar.getState(session()).getActionCategories();
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.