Package ariba.util.fieldvalue

Examples of ariba.util.fieldvalue.OrderedList.elementAt()


        incrementNestingLevel();
        OrderedList orderedListClassExtension = OrderedList.get(currSubList);
        int count = orderedListClassExtension.size(currSubList);
        for (int i=0; i<count; i++) {
            Object currObj = orderedListClassExtension.elementAt(currSubList, i);
            all.add(currObj);
            setCurrentItem(currObj);
            if (isExpanded()) {
                accumulateList(all, currentItemChildren());
            }
View Full Code Here


    {
        Object sublist = null;
        int startIndex = _nextGroupIndex;
        if (startIndex < _orderedListCount) {
            OrderedList orderedListClassExtension = OrderedList.get(_orderedList);
            Object currentItem = orderedListClassExtension.elementAt(_orderedList, startIndex);
            Object groupingValue = FieldValue.getFieldValue(currentItem, _groupByKeyPath);
            int currentIndex = startIndex + 1;
            while (currentIndex < _orderedListCount) {
                Object currentElement = orderedListClassExtension.elementAt(_orderedList, currentIndex);
                Object currentValue = FieldValue.getFieldValue(currentElement, _groupByKeyPath);
View Full Code Here

            OrderedList orderedListClassExtension = OrderedList.get(_orderedList);
            Object currentItem = orderedListClassExtension.elementAt(_orderedList, startIndex);
            Object groupingValue = FieldValue.getFieldValue(currentItem, _groupByKeyPath);
            int currentIndex = startIndex + 1;
            while (currentIndex < _orderedListCount) {
                Object currentElement = orderedListClassExtension.elementAt(_orderedList, currentIndex);
                Object currentValue = FieldValue.getFieldValue(currentElement, _groupByKeyPath);
                if ((groupingValue == currentValue) || ((groupingValue != null) && groupingValue.equals(currentValue))) {
                    currentIndex++;
                }
                else {
View Full Code Here

                String key = null;
                if (_semanticKey != null) {
                    key = (String)_semanticKey.value(component);
                }
                if (key == null && orderedList != null) {
                    Object item = orderedListClassExtension.elementAt(orderedList, index);
                    if (item != null) {
                        SemanticKeyProvider provider = AWSemanticKeyProvider.get(item);
                        if (provider != null) {
                            key = SemanticKeyProviderUtil.getKey(provider, item, component);
                        }
View Full Code Here

                Object tabList = tabList();
                OrderedList list = OrderedList.get(tabList);
                Object selectedTab = null;
                for (int i=0, size=list.size(tabList);
                     i < size && selectedTab == null; i++) {
                    selectedTab = list.elementAt(tabList, i);
                }
                Assert.that(selectedTab != null, "No visible tabs found in tabset.");
                setSelectedTab(selectedTab);
            }
        }
View Full Code Here

        Assert.that(count > 0, "Meta data table must have > 0 columns in the Layout");

        // alloc and register AWTGroupColumns based on the meta data
        boolean useXMLFieldPath = table.booleanValueForBinding(_useXMLFieldPathBinding);
        for (int i=0; i<count; i++) {
            Element columnMeta = (Element)listImpl.elementAt(columnMetas, i);
            String key = columnMeta.getAttribute("key");
            String label = columnMeta.hasAttribute("label") ? columnMeta.getAttribute("label") : null;
            AWTMetaColumn column = new AWTMetaColumn();
            column.init(table, key, label, columnMeta, useDirectActionBinding, formatters, useXMLFieldPath);
            table.registerColumn(column);
View Full Code Here

            Assert.that(index instanceof Number, "array subscript must be number");
            // if (indexType == ExprRuntime.INDEXED_PROPERTY_OBJECT) {
            // throw new ExprException("DynamicSubscript '" + this + "' not allowed for object indexed property '" + source + "'");
        }
        try {
            Object value = listProto.elementAt(source, ((Number)index).intValue());
            return ExprRuntime.convert(value);
        }
        catch (IndexOutOfBoundsException e) {
            // If there is no element, return null
            return null;
View Full Code Here

            }
            OrderedList orderedList = OrderedList.get(list);
            int count = orderedList.size(list);
            result = ListUtil.list(count);
            for (int i=0; i<count; i++) {
                result.add(orderedList.elementAt(list, i));
            }
        }
        return result;
    }
View Full Code Here

            }
            OrderedList orderedList = OrderedList.get(list);
            int count = orderedList.size(list);
            result = new Object[count];
            for (int i=0; i<count; i++) {
                result[i] = orderedList.elementAt(list, i);
            }
        }
        return result;
    }
View Full Code Here

        }

        // otherwise, we need to walk cached list and see if we happen
        // to have the same list
        for (int i=0, size=array.length; i < size; i++) {
            if (orderedList.elementAt(list, i) != array[i]) {
                return false;
            }
        }

        return true;
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.