Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableDictionary.objectForKey()


    ajaxOptionsArray.addObject(new AjaxOption("spinnerOptions", AjaxOption.DICTIONARY));
   
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());

    options.setObjectForKey("'get'", "method");
    if (options.objectForKey("async") == null) {
      options.setObjectForKey("true", "async");
    }   
    if (options.objectForKey("evalScripts") == null) {
      options.setObjectForKey("true", "evalScripts");
    }
View Full Code Here


    options.setObjectForKey("'get'", "method");
    if (options.objectForKey("async") == null) {
      options.setObjectForKey("true", "async");
    }   
    if (options.objectForKey("evalScripts") == null) {
      options.setObjectForKey("true", "evalScripts");
    }
   
    AjaxUpdateContainer.expandInsertionFromOptions(options, this, component);
    return options;
View Full Code Here

                Enumeration e = rules.objectEnumerator();
                boolean patchRules = ERXProperties.booleanForKeyWithDefault("er.directtoweb.ERXD2WModel.patchRules", true);
                while(e.hasMoreElements()) {
                    NSMutableDictionary dict = (NSMutableDictionary)e.nextElement();
                    if(patchRules) {
                        if(Rule.class.getName().equals(dict.objectForKey("class"))) {
                            dict.setObjectForKey(ERD2WRule.class.getName(), "class");
                        }
                    }
                }
            }
View Full Code Here

            EOKeyGlobalID globalID = (EOKeyGlobalID) e.nextElement();
            String entityName = globalID.entityName();

            if (shouldSynchronizeEntity(entityName)) {
                EODatabaseContext dbContext = ERCNNotificationCoordinator.databaseContextForEntityNamed(entityName, ec);
                NSMutableArray snapshotsForEntity = (NSMutableArray)result.objectForKey(entityName);
                if (snapshotsForEntity == null) {
                    snapshotsForEntity = new NSMutableArray();
                    result.setObjectForKey(snapshotsForEntity, entityName);
                }
                NSDictionary snapshot = dbContext.snapshotForGlobalID(globalID);
View Full Code Here

        while (e.hasMoreElements()) {
            EOKeyGlobalID globalID = (EOKeyGlobalID) e.nextElement();
            String entityName = globalID.entityName();

            if (shouldSynchronizeEntity(entityName)) {
                NSMutableArray globalIDsForEntity = (NSMutableArray)result.objectForKey(entityName);
                if (globalIDsForEntity == null) {
                    globalIDsForEntity = new NSMutableArray();
                    result.setObjectForKey(globalIDsForEntity, entityName);
                }
                globalIDsForEntity.addObject(globalID);
View Full Code Here

     * entries you don't have to code for.
     */
    public static void appendIdentifierTagAndValue(WODynamicElement element, WOAssociation id, WOResponse response, WOContext context) {
      if (id == null && appendComponentIdentifier()) {
        NSMutableDictionary dict = ERXWOContext.contextDictionary();
        String componentIdentifier = (String) dict.objectForKey("componentIdentifier");
        if (componentIdentifier != null) {
          response._appendTagAttributeAndValue("id", componentIdentifier, true);
          dict.removeObjectForKey("componentIdentifier");
        }
      }
View Full Code Here

      if (cleanupXHTML/* || ERXResponse.isXHTML(response)*/) {
        correctResponse(response, priorOffset);
      }
      if (element instanceof WOInput) {
        NSMutableDictionary dict = ERXWOContext.contextDictionary();
        NSMutableArray elementArray = (NSMutableArray) dict.objectForKey("elementArray");
        if (elementArray == null) {
          elementArray = new NSMutableArray(10);
        }
        elementArray.addObject(new NSDictionary(new Object[] { element.getClass().getName(), name == null ? "NULL" : name }, new String[] { "type", "name" }));
        dict.setObjectForKey(elementArray, "elementArray");
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  protected static NSDictionary processAssociations(NSDictionary associations, WOElement template) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    WOAssociation classAssociation = (WOAssociation) mutableAssociations.objectForKey("class");
    mutableAssociations.setObjectForKey(new ERXProxyAssociation(classAssociation, "button transitionNext ", null, true), "class");
    return mutableAssociations;
  }

}
View Full Code Here

    ajaxOptionsArray.addObject(new AjaxOption("xy", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("y", AjaxOption.NUMBER));
    ajaxOptionsArray.addObject(new AjaxOption("zIndex", AjaxOption.NUMBER));

    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, _associations);
    if (options.objectForKey("text") == null && hasChildrenElements()) {
      WOResponse childrenResponse = WOApplication.application().createResponseInContext(context);
      super.appendToResponse(childrenResponse, context);
      String text = childrenResponse.contentString();
      text = text.replaceAll("\"", """);
      options.setObjectForKey("\"" + text + "\"", "text");
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  protected static NSDictionary processAssociations(NSDictionary associations, WOElement template) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    WOAssociation classAssociation = (WOAssociation) mutableAssociations.objectForKey("class");
    mutableAssociations.setObjectForKey(new ERXProxyAssociation(classAssociation, "button leftButton ", null, true), "class");
    return mutableAssociations;
  }

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