Package com.webobjects.foundation

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


        boolean isLocalSharedList = hasBinding("isLocalSharedList") && ((Boolean) valueForBinding("isLocalSharedList")).booleanValue();
        String listJS = null;
        if (isLocalSharedList) {
          String varName = (String) valueForBinding("localSharedVarName");
          NSMutableDictionary userInfo = ERXWOContext.contextDictionary();
          if (userInfo.objectForKey(varName) == null) {
            String ljs = listeJS();
            AjaxUtils.addScriptCodeInHead(res, ctx, "var " + varName + " = " + ljs + ";");
            userInfo.setObjectForKey(ljs, varName);
          }
          listJS = varName;
View Full Code Here


        String method = null;
        String label = null;
             NSMutableDictionary entry = new NSMutableDictionary();
            if (o instanceof NSDictionary) {
              entry.addEntriesFromDictionary((NSDictionary) o);
              method = (String) entry.objectForKey(BRANCH_NAME);
              label = (String) entry.objectForKey(BRANCH_LABEL);
            } else if (o instanceof String) {
                    method = (String) o;
                    entry.setObjectForKey(method, BRANCH_NAME);
                }
View Full Code Here

        String label = null;
             NSMutableDictionary entry = new NSMutableDictionary();
            if (o instanceof NSDictionary) {
              entry.addEntriesFromDictionary((NSDictionary) o);
              method = (String) entry.objectForKey(BRANCH_NAME);
              label = (String) entry.objectForKey(BRANCH_LABEL);
            } else if (o instanceof String) {
                    method = (String) o;
                    entry.setObjectForKey(method, BRANCH_NAME);
                }
                if (label == null) {
View Full Code Here

    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
    options.setObjectForKey("'" + _url + "'", "url");
    options.setObjectForKey("'" + _updateContainerID + "'", "update");
    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

        EOGlobalID gid = (EOGlobalID) gids.nextElement();
        if (gid instanceof EOKeyGlobalID) {
          EOKeyGlobalID globalID = (EOKeyGlobalID) gid;
          String entityName = globalID.entityName();
          String key = entityName + "/" + System.identityHashCode(osc);
          EODatabaseContext dbc = (EODatabaseContext) dbcs.objectForKey(key);
          if (dbc == null) {
            dbc = ERXEOAccessUtilities.databaseContextForEntityNamed(osc, entityName);
            dbcs.setObjectForKey(dbc, key);
          }
          NSMutableArray snapshotsForEntity = (NSMutableArray) result.objectForKey(entityName);
View Full Code Here

  }
 
  public static NSDictionary removeDefaultOptions(NSDictionary options) {
    // PROTOTYPE OPTIONS
    NSMutableDictionary mutableOptions = options.mutableClone();
    if ("'get'".equals(mutableOptions.objectForKey("method"))) {
      mutableOptions.removeObjectForKey("method");
    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
View Full Code Here

    // PROTOTYPE OPTIONS
    NSMutableDictionary mutableOptions = options.mutableClone();
    if ("'get'".equals(mutableOptions.objectForKey("method"))) {
      mutableOptions.removeObjectForKey("method");
    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
    if ("true".equals(mutableOptions.objectForKey("async"))) {
      mutableOptions.removeObjectForKey("async");
    }
View Full Code Here

      mutableOptions.removeObjectForKey("method");
    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
    if ("true".equals(mutableOptions.objectForKey("async"))) {
      mutableOptions.removeObjectForKey("async");
    }
    return mutableOptions;
 
 
View Full Code Here

        NSDictionary statsDict = ERXStats.statistics();
        for (Enumeration keysEnum = statsDict.keyEnumerator(); keysEnum.hasMoreElements();) {
            String key = (String)keysEnum.nextElement();
            if (key.contains(statsKeyPrefix())) {
                String statsGroup = ERXStringUtilities.firstPropertyKeyInKeyPath(key);
                NSMutableArray events = (NSMutableArray)result.objectForKey(statsGroup);
                if (null == events) {
                    events = new NSMutableArray();
                    result.setObjectForKey(events, statsGroup);
                }
                events.addObject(statsDict.objectForKey(key));
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.