Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWComponentDefinition$ScriptClassProvider


        {
            for (String prefix : _prefixes) {
                String name = prefix.concat(componentName);
                String pkg = null;
                AWConcreteApplication application = (AWConcreteApplication)AWConcreteApplication.sharedInstance();
                AWComponentDefinition componentDefinition = application._componentDefinitionForName(name, null);
                if (componentDefinition != null) {
                    pkg = componentDefinition.componentPackageName();
                } else {
                    Class componentClass = application.resourceManager().classForName(name);
                    if (componentClass != null) {
                        Package compPkg = componentClass.getPackage();
                        pkg = (compPkg != null) ? compPkg.getName() : "";
View Full Code Here


    }

    public AWComponent openComponentAPIPage ()
    {
        AWApiPage page = (AWApiPage)pageWithName(AWApiPage.Name);
        AWComponentDefinition defn = AWComponentApiManager.componentDefinition(componentName());
        page.setSelectedComponent(defn);
        return page;
    }
View Full Code Here

        }

        // Record the "main" component to highlight by default in the viewer
        if (_mainComponentDefinition == null) {
            if (element instanceof AWComponentReference) {
                AWComponentDefinition def = ((AWComponentReference)element).componentDefinition();
                if (!def.isStateless()) _mainComponentDefinition = def;
            }
            /*
            if (component == component.pageComponent()) {
                _mainComponentDefinition = component.componentDefinition();
            }
View Full Code Here

            _selectedObjectPackageErrorList = ListUtil.list();
            if (selectedObject() != null) {
                List components = childrenForPackage(selectedObject());
                for (int i = 0, size = components.size(); i < size; i++) {
                    String componentName = (String) components.get(i);
                    AWComponentDefinition componentDefinition = AWComponentApiManager.componentDefinition(componentName);
                    if (componentDefinition.validationErrorCount() != 0) {
                        addToComponentNameErrorList(_selectedObjectPackageErrorList,componentDefinition.bindingErrorList(),componentName);
                    }
                    if (componentDefinition.componentApiErrorCount() != 0) {
                        addUnsupportedBindingDefinitions(_selectedObjectPackageErrorList,componentDefinition.unsupportedBindingDefinitions(),componentName);
                        addMissingSupportedBindingDefinitions(_selectedObjectPackageErrorList,componentDefinition.missingSupportedBindingDefinitions(),componentName);
                        addInvalidBindingAlternates(_selectedObjectPackageErrorList,componentDefinition.invalidComponentBindingApiAlternates(), componentName);
                        addMismatchedBindingAlternates(_selectedObjectPackageErrorList,componentDefinition.mismatchedComponentBindingApiAlternates(), componentName);
                        addToComponentNameErrorList(_selectedObjectPackageErrorList,componentDefinition.templateParsingErrors(),componentName);
                    }
                }
            }
        }
        return _selectedObjectPackageErrorList;
View Full Code Here

    {
        if (!_awlName.endsWith(".awl")) {
            // _awlName = _awlName+".awl";
        }

        AWComponentDefinition result = application().componentDefinitionForName(_awlName);
        if (result == null) {
            _awlLookupResult = "No resource found";
        }
        else {
            String templateName = result.templateName();
            AWResource resource = application().resourceManager().resourceNamed(templateName);
            _awlLookupResult = "Class: " + result.componentClass().getName() + "<br>"
                                  + "Template Name: " + templateName  + "<br>"
                                  + "Resource: " + ((resource != null) ? resource.toString() : "null");
        }
        return null;
    }
View Full Code Here

    {
        AWValidationErrorPage errorPage = (AWValidationErrorPage)pageWithName(AWValidationErrorPage.Name);
        AWValidationContext validationContext = page().validationContext();
        AWComponent pageComponent = pageComponent();
        String pageComponentName = pageComponent.name();
        AWComponentDefinition pageComponentDefinition = pageComponent.componentDefinition();
        String packageName = AWComponentApiManager.packageNameForComponent(pageComponentDefinition);
        errorPage.setup(validationContext, pageComponentName, packageName);
        return errorPage;
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.core.AWComponentDefinition$ScriptClassProvider

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.