Examples of addObject()


Examples of com.threerings.miso.client.SceneBlock.addObject()

    {
        // first attempt to add it to the appropriate scene block; this
        // will fail if there's already a copy of the same object at this
        // coordinate
        SceneBlock block = getBlock(oinfo.x, oinfo.y);
        if (block== null || !block.isResolved() || block.addObject(oinfo)) {
            // create an object info and add it to the scene model
            if (_model.addObject(oinfo)) {
                // recompute our visible object set
                recomputeVisible();
                return oinfo;
View Full Code Here

Examples of com.webobjects.eocontrol.EOEnterpriseObject.addObject()

       }
       else {
         NSMutableArray eoful = new NSMutableArray();
         objEnum = gidful.objectEnumerator();
         while (objEnum.hasMoreElements()) {
           eoful.addObject(ERXEOControlUtilities.convertGIDtoEO(editingContext, objEnum.nextElement()));
         }
         result = eoful;
       }
     }
     else if (obj instanceof NSSet) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOGlobalID.addObject()

     else if (obj instanceof NSArray) {
       NSArray eoful = (NSArray)obj;
       NSMutableArray gidful = new NSMutableArray();
       Enumeration objEnum = eoful.objectEnumerator();
       while (objEnum.hasMoreElements()) {
         gidful.addObject(ERXEOControlUtilities.convertEOtoGID(objEnum.nextElement()));
       }
       result = gidful;
     }
     else if (obj instanceof NSSet) {
       NSSet eoful = (NSSet)obj;
View Full Code Here

Examples of com.webobjects.foundation.NSArray.addObject()

            } else {
                NSMutableArray children = new NSMutableArray();
                for (Enumeration ids = childFormValues.objectEnumerator(); ids.hasMoreElements();) {
                    Object child = childFromID(null, (String) ids.nextElement());
                    if(child != null) {
                        children.addObject(child);
                    }
                }
                setChildrenSelection(children);
            }
        }
View Full Code Here

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

            if (classProperties.containsObject(attribute)) {
              mutableClassProperties.addObject(newAttribute);
            }
            if (attributesUsedForLocking.containsObject(attribute)) {
              mutableAttributesUsedForLocking.addObject(newAttribute);
            }
          }
          entity.removeAttribute(attribute);
          mutableClassProperties.removeObject(attribute);
          mutableAttributesUsedForLocking.removeObject(attribute);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableSet.addObject()

      Iterator valuesEnum = set.iterator();
      while (valuesEnum.hasNext()) {
        Object value = valuesEnum.next();
        if (value != null) {
          value = toWOCollections(value);
          nsSet.addObject(value);
        }
      }
      result = nsSet;
    } else {
      result = obj;
View Full Code Here

Examples of com.xpn.xwiki.doc.XWikiDocument.addObject()

                BaseObject newobject = new BaseObject();
                newobject.setClassName(userClass.getName());

                userClass.fromMap((Map) invocation.parameterValues.get(1), newobject);

                document.addObject(userClass.getName(), newobject);

                saveDocument(document);

                return 1;
            }
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.core.ObjectGroup.addObject()

         * Point pos = mapView.screenToPixelCoords( event.getX(),
         * event.getY());
         */
        ObjectGroup group = (ObjectGroup) layer;
        undoSupport.postEdit(new AddObjectEdit(group, object));
        group.addObject(object);
        mapView.repaint();
      }

      // get rid of any visible marquee
      if (marqueeSelection != null) {
View Full Code Here

Examples of er.extensions.eof.ERXSortOrdering.ERXSortOrderings.addObject()

   */
  public ERXSortOrderings prefix(NSArray<EOSortOrdering> sortOrderings) {
    ERXSortOrderings prefixedSortOrderings = new ERXSortOrderings();
    for (EOSortOrdering sortOrdering : sortOrderings) {
      EOSortOrdering prefixedSortOrdering = prefix(sortOrdering);
      prefixedSortOrderings.addObject(prefixedSortOrdering);
    }
    return prefixedSortOrderings;
  }
 
  /**
 
View Full Code Here

Examples of fysix.engine.FysixEngine.AddObject()

        // Test Scale...
        InputManager.MapKey(KeyEvent.VK_F1, "SCALE_IN");
        InputManager.MapKey(KeyEvent.VK_F2, "SCALE_OUT");
        InputManager.MapKey(KeyEvent.VK_F3, "TOGGLE_TV");
               
        FysixObject fo1 = (FysixObject) fe.AddObject(200, 200, 150.0, null);
        //FysixObject fo2 = (FysixObject) fe.AddObject(400, 150, 0.5, null);       
        //FysixObject planet = (FysixObject) fe.AddObject(400, 350, 1000000.0, null);
        //FysixObject moon = (FysixObject) fe.AddObject(580, 200, 50.0, null);
        FysixObject fo2 = (FysixObject) fe.AddObject(2600, 2400, 0.5, null);       
        FysixObject planet = (FysixObject) fe.AddObject(2600, 2600, 1000000.0, null);
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.