Package com.webobjects.foundation

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


    public void moveUp(DRAttribute member, boolean up) {
        int cnt;
        NSMutableArray arr = _attribute.attributes();
        int cur = arr.indexOfObject(member);
        arr.removeObject(member);
        cnt = arr.count();

        if (up) {
            int newdex = cur-1;
View Full Code Here



    public Object deleteSubMasterCrit() {
        NSMutableArray smcList = new NSMutableArray(masterCriteria.subCriteriaList());
        DRMasterCriteriaEditing prnt = (DRMasterCriteriaEditing)parent();
        smcList.removeObject(aSubMasterCriteria);
        prnt.replaceMCWith(masterCriteria, smcList);
        return null;
    }

View Full Code Here

    public void moveUpDimension(DRGroup vGroup, boolean up, String dim) {
        int cnt;
        NSMutableArray dims = (NSMutableArray)dimensionForName(dim);
        int cur = dims.indexOfObject(vGroup);
        dims.removeObject(vGroup);
        cnt = dims.count();

        if (up) {
            int newdex = cur-1;
View Full Code Here

                    return null;
                }
            }else{
                NSMutableArray temp = new NSMutableArray(att.rules());
                if(temp.count()!=0)
                    temp.removeObject(selectedRule());
                GSVRule ru=null;
                for(int s=0;s<temp.count();s++){
                    ru = (GSVRule)temp.objectAtIndex(s);
                    if(ru.ruleName().equals(selectedRule().ruleName())){
                        errorMessage = "There is already a rule named: "+ selectedRule().ruleName();
View Full Code Here

            boolean contains = array.containsObject(o);
            if(add && !contains) {
                array.addObject(o);
                entity.setClassProperties(array);
            } else if(!add && contains){
                array.removeObject(o);
                entity.setClassProperties(array);
            }
        }
       
        public void addRelationship(EOEntity selectedEntity, EOEntity targetEntity, EOAttribute foreignAttribute, boolean isToMany, boolean addBack) {
View Full Code Here

    public void replaceMCWith(DRMasterCriteria oldMC, NSArray smcList) {
        NSMutableArray arr = new NSMutableArray(masterCriteriaList());
        int indx = arr.indexOfObject(oldMC);
        arr.insertObjectAtIndex(DRMasterCriteria.withSubMasterCriteriaUserInfo(smcList, oldMC.userInfo()), indx);
        arr.removeObject(oldMC);
        setMasterCriteriaList(arr);
    }
}
View Full Code Here

      if ((value instanceof NSMutableArray)) {
        NSMutableArray mutableValue = (NSMutableArray) value;

        if (mutableValue.containsObject(eo)) {
          willChange();
          mutableValue.removeObject(eo);
        }
      } else if ((value instanceof NSArray)) {
        NSArray immutableValue = (NSArray) value;
        if (immutableValue.containsObject(eo)) {
          NSMutableArray newArray = new NSMutableArray(immutableValue);
View Full Code Here

      } else if ((value instanceof NSArray)) {
        NSArray immutableValue = (NSArray) value;
        if (immutableValue.containsObject(eo)) {
          NSMutableArray newArray = new NSMutableArray(immutableValue);

          newArray.removeObject(eo);
          takeValueForKey(newArray, key);
        }
      } else if (value != null) {
        throw new IllegalArgumentException("removeObjectToPropertyWithKey: the key " + key
            + " is not a Array or one of its subclasses - unable to remove the value.");
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.