Examples of containsObject()


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

            }
            else if (_selectedValues != null)
            {
                if (_value != null)
                {
                    isSelectedItem = selectedObjects == null ? false : selectedObjects.containsObject(valueAsString);
                }
            }
            
            if (isSelectedItem)
            {
View Full Code Here

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

    }

    public void setChecked(boolean newChecked) {
        NSMutableArray selectedObjects = selectedObjects().mutableClone();
        if (newChecked) {
            if (!selectedObjects.containsObject(object())) {
                selectedObjects.addObject(object());
            }
        } else {
            selectedObjects.removeObject(object());
        }
View Full Code Here

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

        _setIsSelectedInstance(!isSelectedInstance());
    }

    public void _setIsSelectedInstance(boolean selected) {
        NSMutableArray selectedObjects = displayGroup.selectedObjects().mutableClone();
        if (selected && !selectedObjects.containsObject(currentInstance)) {
            selectedObjects.addObject(currentInstance);
        } else if (!selected && selectedObjects.containsObject(currentInstance)) {
            selectedObjects.removeObject(currentInstance);
        }
        displayGroup.setSelectedObjects(selectedObjects);
View Full Code Here

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

    public void _setIsSelectedInstance(boolean selected) {
        NSMutableArray selectedObjects = displayGroup.selectedObjects().mutableClone();
        if (selected && !selectedObjects.containsObject(currentInstance)) {
            selectedObjects.addObject(currentInstance);
        } else if (!selected && selectedObjects.containsObject(currentInstance)) {
            selectedObjects.removeObject(currentInstance);
        }
        displayGroup.setSelectedObjects(selectedObjects);
    }
View Full Code Here

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

    // Presumably, this is because EOM outputs other keys than WO and the logic to get at the actual
    // value type is pretty broken.
    // Adding factoryMethodArgumentType to the overridden key solves this. Of course,  this breaks
    // when you *do* have a different factoryMethodArgumentType in the attribute but this shouldn't ever be the case.
    boolean hasCustomClass = false;
    if(overriddenKeys.containsObject("valueFactoryMethodName")) {
      overriddenKeys.addObject("factoryMethodArgumentType");
      hasCustomClass = true;
    }
    if(attribute.isDerived()) {
      overriddenKeys.addObject("columnName");
View Full Code Here

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

                      // Prefer the parent entity as long as it is using the same table
                        EOEntity root = entity;
                        while (root.parentEntity() != null &&
                             lowercaseTableName.equalsIgnoreCase(root.parentEntity().externalName()))
                            root = root.parentEntity();
                        if (! possibleEntities.containsObject(root))
                          possibleEntities.addObject(root);
                  }
              }
            }
View Full Code Here

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

            return a;
        }
       
        public void updateClassProperties(EOEntity entity, Object o, boolean add) {
            NSMutableArray array = entity.classProperties().mutableClone();
            boolean contains = array.containsObject(o);
            if(add && !contains) {
                array.addObject(o);
                entity.setClassProperties(array);
            } else if(!add && contains){
                array.removeObject(o);
View Full Code Here

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

      if (browser() != null) {
        _messageEncoding = browser().messageEncodingForLanguage(_localizer.language());
      }

      NSMutableArray languageList = new NSMutableArray(_localizer.language());
      if (!languageList.containsObject("Nonlocalized"))
        languageList.addObject("Nonlocalized");
      setLanguages(languageList);
    }
  }
View Full Code Here

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

                                                                 null);
                log.debug("Beginning loading of shared EOs");
                NSMutableArray loadedModels = new NSMutableArray();
                for (Enumeration e = _modelList.objectEnumerator(); e.hasMoreElements();) {
                    currentModel = (EOModel)e.nextElement();
                    if (!loadedModels.containsObject(currentModel.name())) {
                        loadSharedObjectsForModel(currentModel);
                        loadedModels.addObject(currentModel.name());
                    }
                }
                NSNotificationCenter.defaultCenter().removeObserver(this, EOAdaptorContext.AdaptorContextBeginTransactionNotification, null);
View Full Code Here

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

      Object value = valueForKey(key);

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