Package com.webobjects.eogeneration

Examples of com.webobjects.eogeneration.EOControllerFactory


    return (EODistributedObjectStore) objectStore;
  }

  public static void formWithEntityName(String entityName,
                                        EOGlobalID globalID) {
    EOControllerFactory f = EOControllerFactory.sharedControllerFactory();
    EOController controller = f.controllerWithSpecification(new NSDictionary(new Object[] { entityName,
                                                                                           EOControllerFactory.FormTask,
                                                                                           EOControllerFactory.TopLevelWindowQuestion },
                                                                             new Object[] { EOControllerFactory.EntitySpecification,
                                                                                           EOControllerFactory.TaskSpecification,
                                                                                           EOControllerFactory.QuestionSpecification }),
                                                            true);
    if (controller != null) {
      EOFormController formController = (EOFormController) f.controllerWithEntityName(controller,
                                                                                      EOControllerFactory.Open.class,
                                                                                      entityName);
      formController.openObjectWithGlobalID(globalID);
      formController.setEditability(EOEditable.AlwaysEditable);
      formController.makeVisible();
View Full Code Here


                                                                            arguments);
  }

  public static void listWithEntityName(String entityName,
                                        EOFetchSpecification fs) {
    EOControllerFactory f = EOControllerFactory.sharedControllerFactory();
    EOController controller = f.controllerWithSpecification(new NSDictionary(new Object[] { entityName,
                                                                                           EOControllerFactory.ListTask,
                                                                                           EOControllerFactory.TopLevelWindowQuestion },
                                                                             new Object[] { EOControllerFactory.EntitySpecification,
                                                                                           EOControllerFactory.TaskSpecification,
                                                                                           EOControllerFactory.QuestionSpecification }),
                                                            true);
    if (controller != null) {
      EOListController listController = (EOListController) f.controllerWithEntityName(controller,
                                                                                      EOControllerFactory.List.class,
                                                                                      entityName);
      listController.listObjectsWithFetchSpecification(fs);
      listController.setEditability(EOEditable.NeverEditable);
      listController.makeVisible();
View Full Code Here

    }
  }

  public static void listWithEntityName(String entityName,
                                        NSArray arrayOfEOs) {
    EOControllerFactory f = EOControllerFactory.sharedControllerFactory();
    EOController controller = f.controllerWithSpecification(new NSDictionary(new Object[] { entityName,
                                                                                           EOControllerFactory.ListTask,
                                                                                           EOControllerFactory.TopLevelWindowQuestion },
                                                                             new Object[] { EOControllerFactory.EntitySpecification,
                                                                                           EOControllerFactory.TaskSpecification,
                                                                                           EOControllerFactory.QuestionSpecification }),
                                                            true);
    if (controller != null) {
      EOListController listController = (EOListController) f.controllerWithEntityName(controller,
                                                                                      EOControllerFactory.List.class,
                                                                                      entityName);
      listController.listObjectsWithGlobalIDs((NSArray) arrayOfEOs.valueForKey("globalID"));
      listController.setEditability(EOEditable.NeverEditable);
      listController.makeVisible();
View Full Code Here

TOP

Related Classes of com.webobjects.eogeneration.EOControllerFactory

Copyright © 2018 www.massapicom. 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.