Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWBindingDictionary


            fastStringBuffer.append(borderString);
            fastStringBuffer.append("\"");
        }
        // no alt binding, so specifying empty string for now
        fastStringBuffer.append(" alt=\"\"");
        AWBindingDictionary bindingsDictionary = AWBinding.bindingsDictionary(bindingsHashtable);
        appendHtmlAttributes(fastStringBuffer, bindingsDictionary);
        fastStringBuffer.append(">");
        return fastStringBuffer.toString();
    }
View Full Code Here


        // If we have children, push our template on as context
        if (_hasMetaRuleChildren == 1) {
            context.merge(MetaRules.TemplateId, component.templateName());
        }

        AWBindingDictionary bindings = _bindings;
        if (isPush) {
            context.push();
            String scopeKey = (_scopeKeyBinding != null)
                                    ? (String)_scopeKeyBinding.value(component) : null;
            Map <String, Object> values;
            if (_valueMapBinding != null && ((values = (Map)_valueMapBinding.value(component)) != null)) {
                // ToDo: sort based on Meta (KeyData) defined rank (e.g. module -> class -> operation ...)
                // ToDo: cache sort?
                List<String> sortedKeys = new ArrayList(values.keySet());
                Collections.sort(sortedKeys);
                for (String key : sortedKeys) {
                    if (key.equals(scopeKeyBindingKey)) {
                        scopeKey = (String)values.get(key);
                    } else {
                        context.set(key, values.get(key));
                    }
                }
            }

            for (int index = bindings.size() - 1; index >= 0; index--) {
                AWBinding currentBinding = bindings.elementAt(index);
                Object value = currentBinding.value(component);
                String key = bindings.keyAt(index);
                context.set(key, value);
            }

            if (scopeKey != null) context.setScopeKey(scopeKey);
        } else {
View Full Code Here

            } else {
                binding = AWBinding.bindingWithNameAndConstant(name, val);
            }
            bindingMap.put(name, binding);
        }
        return new AWBindingDictionary(bindingMap);
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.core.AWBindingDictionary

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.