Examples of replaceObjectAtIndex()


Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

      if (mutableList) {
        int replacedItemIndex = itemPageRange.location();
        Object replacedItem = reorderedList.objectAtIndex(replacedItemIndex);
        if (replacedItem != replacingItem) {
          int replacingItemIndex = replacedItemIndex + itemPageArray.indexOfObject(replacingItem);
          reorderedList.replaceObjectAtIndex(replacingItem, replacedItemIndex);
          reorderedList.replaceObjectAtIndex(replacedItem, replacingItemIndex);
        }
      }
      else {
        reorderedList.addObject(replacingItem);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

        int replacedItemIndex = itemPageRange.location();
        Object replacedItem = reorderedList.objectAtIndex(replacedItemIndex);
        if (replacedItem != replacingItem) {
          int replacingItemIndex = replacedItemIndex + itemPageArray.indexOfObject(replacingItem);
          reorderedList.replaceObjectAtIndex(replacingItem, replacedItemIndex);
          reorderedList.replaceObjectAtIndex(replacedItem, replacingItemIndex);
        }
      }
      else {
        reorderedList.addObject(replacingItem);
      }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

        for (int i = 0; i < optionalConfigurationFiles.count(); i ++) {
          String optionalConfigurationFile = (String)optionalConfigurationFiles.objectAtIndex(i);
          if (!new File(optionalConfigurationFile).exists()) {
              String resourcePropertiesPath = ERXFileUtilities.pathForResourceNamed(optionalConfigurationFile, "app", null);
              if (resourcePropertiesPath != null) {
                  optionalConfigurationFiles.replaceObjectAtIndex(ERXProperties.getActualPath(resourcePropertiesPath), i);
              }
          }
        }
      }
      return optionalConfigurationFiles;
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

      if(mutableList) {
        int replacedItemIndex = itemPageRange.location();
        Object replacedItem = reorderedList.objectAtIndex(replacedItemIndex);
        if(replacedItem != replacingItem) {
          int replacingItemIndex = replacedItemIndex + itemPageArray.indexOfObject(replacingItem);
          reorderedList.replaceObjectAtIndex(replacingItem, replacedItemIndex);
          reorderedList.replaceObjectAtIndex(replacedItem, replacingItemIndex);
        }
      } else {
        reorderedList.addObject(replacingItem);
      }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

        int replacedItemIndex = itemPageRange.location();
        Object replacedItem = reorderedList.objectAtIndex(replacedItemIndex);
        if(replacedItem != replacingItem) {
          int replacingItemIndex = replacedItemIndex + itemPageArray.indexOfObject(replacingItem);
          reorderedList.replaceObjectAtIndex(replacingItem, replacedItemIndex);
          reorderedList.replaceObjectAtIndex(replacedItem, replacingItemIndex);
        }
      } else {
        reorderedList.addObject(replacingItem);
      }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

                        qualifiers.addObjectsFromArray(q.qualifiers());
                    }
                    if (cache == q1)
                        log.warn("Found sub-qualifier: " + cache + " in cache when parent qualifier is not?!?!");
                    else
                        qualifiers.replaceObjectAtIndex(cache, c);
                }
            }
            if (qualifiers != null) {
                // Need to reconstruct
                cachedQualifier = new EOAndQualifier(qualifiers);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

                        qualifiers.addObjectsFromArray(q.qualifiers());
                    }
                    if (cache == q1)
                        log.warn("Found sub-qualifier: " + cache + " in cache when parent qualifier is not?!?!");
                    else
                        qualifiers.replaceObjectAtIndex(cache, c);
                }
            }
            if (qualifiers != null) {
                // Need to reconstruct
                cachedQualifier = new EOOrQualifier(qualifiers);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

            }
            //log.info("Start: " + item + "  " + currentRow + "/" + rowSpan + " " + currentCol + "/" + colSpan + " " + colCounts);
            for(int i = row; i < row + rowSpan; i++) {
              int currentMaxColumns = ((Integer) colCounts.objectAtIndex(i)).intValue();
              currentMaxColumns = currentMaxColumns - (colSpan - (i == row ? 1 : 0));
              colCounts.replaceObjectAtIndex(Integer.valueOf(currentMaxColumns), i);
              //log.info("Curr: " + item + "  " + i + "/" + rowSpan + " " + currentMaxColumns + "/" + colSpan + " " + colCounts);
            }
            //log.info("Intern: " + item + "  " + currentRow + "/" + rowSpan + " " + currentCol + "/" + colSpan + " " + colCounts);
            int currentRowMaxColums = ((Integer) colCounts.objectAtIndex(row)).intValue();
            total += rowSpan * colSpan;
 
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

    public void setNavigationLevel(int level, String state) {
        if (level > 0) {
            NSMutableArray navTemp = new NSMutableArray(navigationState());
            if (navTemp.count() >= level)
                navTemp.replaceObjectAtIndex(state, level - 1);
            else
                navTemp.addObject(state);
            setNavigationState(navTemp);
        }
    }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()

    public void setStateForLevel(String state, int level) {
        if (level > 0) {
            NSMutableArray navState = new NSMutableArray(state());
            if (navState.count() >= level)
                navState.replaceObjectAtIndex(state, level - 1);
            else
                navState.addObject(state);
            setState(navState);
        } else {
            log.error("Attempting to set the state: " + state + " for a negative level: " + level);
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.