Package com.webobjects.foundation

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


              mutableAttributesUsedForLocking.addObject(newAttribute);
            }
          }
          entity.removeAttribute(attribute);
          mutableClassProperties.removeObject(attribute);
          mutableAttributesUsedForLocking.removeObject(attribute);
        }
      }
      entity.setClassProperties(mutableClassProperties);
      entity.setAttributesUsedForLocking(mutableAttributesUsedForLocking);
    }
View Full Code Here


              mutableAttributesUsedForLocking.addObject(newAttribute);
            }
          }
          entity.removeAttribute(attribute);
          mutableClassProperties.removeObject(attribute);
          mutableAttributesUsedForLocking.removeObject(attribute);
        }
      }
      entity.setClassProperties(mutableClassProperties);
      entity.setAttributesUsedForLocking(mutableAttributesUsedForLocking);
    }
View Full Code Here

    public void setSelection(Object value) {
       NSMutableArray selections = (selections() != null) ? selections().mutableClone() : new NSMutableArray();
      if (value != null) {
        selections.addObject(item());
      } else {
        selections.removeObject(item());
      }
      setValueForBinding(selections, Bindings.selections);
    }
   
    public String elementName() {
View Full Code Here

            o = (EOEnterpriseObject) currentValues.objectAtIndex(i);

            if (newValues == null || newValues.indexOfIdenticalObject(o) == NSArray.NotFound) { // not found

                if (isDictionary) {
                    currentValues.removeObject(o);
                }
                else {
                    _eo.removeObjectFromBothSidesOfRelationshipWithKey(o, masterKey);
                }
View Full Code Here

        if (newChecked) {
            if (!selectedObjects.containsObject(object())) {
                selectedObjects.addObject(object());
            }
        } else {
            selectedObjects.removeObject(object());
        }
        setSelectedObjects(selectedObjects);
    }

    @Override
View Full Code Here

    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);
    }

    public void setIsSelectedInstance(boolean selected) {
View Full Code Here

                    // we have to add it
                    aConfig.addHost_W(new MHost(aHost, aConfig));
                } else {
                    // configure and remove from currentHosts
                    anMHost.updateValues(aHost);
                    currentHosts.removeObject(anMHost);
                }
            }
        }
        // remove all hosts remaining in currentHosts
        for (Enumeration e = currentHosts.objectEnumerator(); e.hasMoreElements(); ) {
View Full Code Here

                    // we have to add it
                    aConfig.addApplication_W(new MApplication(anApp, aConfig));
                } else {
                    // configure and remove from currentHosts
                    anMApplication.updateValues(anApp);
                    currentApplications.removeObject(anMApplication);
                }
            }
        }
        // remove all hosts remaining in currentHosts
        for (Enumeration e = currentApplications.objectEnumerator(); e.hasMoreElements(); ) {
View Full Code Here

                    // we have to add it
                    aConfig.addInstance_W(new MInstance(anInst, aConfig));
                } else {
                    // configure and remove from currentHosts
                    anMInstance.updateValues(anInst);
                    currentInstances.removeObject(anMInstance);
                }
            }
        }
        // remove all hosts remaining in currentHosts
        for (Enumeration e = currentInstances.objectEnumerator(); e.hasMoreElements(); ) {
View Full Code Here

              }
              copy.setUserInfo(attributeUserInfo.mutableClone());
            }
            entity.removeAttribute(attribute);
            mutableClassProperties.removeObject(attribute);
            mutableAttributesUsedForLocking.removeObject(attribute);
          }
        }
        entity.setAttributesUsedForLocking(mutableAttributesUsedForLocking);
        entity.setClassProperties(mutableClassProperties);
      }
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.