Package com.webobjects.foundation

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


    ajaxOptionsArray.addObject(new AjaxOption("overlap", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("greedy", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("onHover", AjaxOption.SCRIPT));
    ajaxOptionsArray.addObject(new AjaxOption("evalScripts", AjaxOption.BOOLEAN));
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, this);
  if (options.objectForKey("evalScripts") == null) {
    options.setObjectForKey("true", "evalScripts");
  }
    return options;
  }
View Full Code Here


    addScriptResourceInHead(res, "jsonrpc.js");

    NSMutableDictionary userInfo = ERXWOContext.contextDictionary();
    String name = (String) valueForBinding("name");
    String key = "JSONRPC_" + name;
    Object oldValue = userInfo.objectForKey(key);
    Object bridge = valueForBinding("JSONRPCBridge");
    if (bridge == null) {
      bridge = NSKeyValueCoding.NullValue;
    }
    if (oldValue == null) {
View Full Code Here

    String tagName;
    WODeclaration declaration;
    Enumeration rawDeclarationHeaderEnum = rawDeclarations.keyEnumerator();
    while (rawDeclarationHeaderEnum.hasMoreElements()) {
      String declarationHeader = (String) rawDeclarationHeaderEnum.nextElement();
      String declarationBody = (String) rawDeclarations.objectForKey(declarationHeader);
      int colonIndex = declarationHeader.indexOf(':');
      if (colonIndex < 0) {
        throw new WOHelperFunctionDeclarationFormatException("<WOHelperFunctionDeclarationParser> Missing ':' for declaration:\n" + declarationHeader + " " + declarationBody);
      }
      tagName = declarationHeader.substring(0, colonIndex).trim();
View Full Code Here

      URL url = ERXFileUtilities.pathURLForResourceNamed(currentFilename, currentFramework, languageArray);
      if (url != null) {
        NSDictionary<String, Object> dict = (NSDictionary<String, Object>)ERXFileUtilities.readPropertyListFromFileInFramework(currentFilename, currentFramework, languageArray);
        allKeys.addObjectsFromArray(dict.allKeys());
        for (String key : dict.allKeys()) {
          NSMutableDictionary<String, Object> entry = (NSMutableDictionary<String, Object>) dataDictionary.objectForKey(key);
          if(entry == null) {
            entry = new NSMutableDictionary<String, Object>();
            entry.setObjectForKey(key, "key");
            dataDictionary.setObjectForKey(entry, key);
            data.addObject(entry);
View Full Code Here

          entry.setObjectForKey(dict.objectForKey(key), language);
        }
      }
    }
      for (String key : allKeys) {
      NSMutableDictionary<String, Object> entry = (NSMutableDictionary<String, Object>) dataDictionary.objectForKey(key);
      for (String language : availableLanguages()) {
        if (entry.objectForKey(language) == null) {
          entry.setObjectForKey(UNSET, language);
        }
      }
View Full Code Here

            String key = (String)e.nextElement();
            Object o = _context.valueForKey(key);
            if(o != null)
                dictionary.setObjectForKey(o, key);
        }
        String path = "components." + dictionary.objectForKey("componentName") + ".editors";
        NSArray keys = (NSArray)_allKeys.valueForKeyPath(path);
        if(keys != null) {
            for(Enumeration e = keys.objectEnumerator(); e.hasMoreElements(); ) {
                String key = (String)e.nextElement();
                Object o = _context.valueForKey(key);
View Full Code Here

                Object o = _context.valueForKey(key);
                if(o != null)
                    dictionary.setObjectForKey(o, key);
            }
        }
        path = "components." + dictionary.objectForKey("componentName") + ".supports";
        keys = (NSArray)_allKeys.valueForKeyPath(path);
        if(keys != null) {
            for(Enumeration e = keys.objectEnumerator(); e.hasMoreElements(); ) {
                String key = (String)e.nextElement();
                Object o = _context.valueForKey(key);
View Full Code Here

  }

  /** @return value for KEY_PATH under MANDATORY_SORT, the path of the mandatory sort */
  public String manadatorySortKeyPath() {
    NSMutableDictionary manadatorySortDictionary = (NSMutableDictionary) configurationData().objectForKey(MANDATORY_SORT);
    return (String) manadatorySortDictionary.objectForKey(KEY_PATH);
  }
 
  /**
   * This method is called when the AjaxUpdateContainer is about to update. It
   * invokes the willUpdate action binding, if set, and discards the result.
View Full Code Here

  /**
   * @return the configurationData
   */
  public NSMutableDictionary configurationData() {
    NSMutableDictionary configurationData = (NSMutableDictionary) valueForBinding(CONFIGURATION_DATA_BINDING);
    if (configurationData.objectForKey(CONFIGURATION_UPDATED) != null)
    {
      clearCachedConfiguration();
      configurationData.removeObjectForKey(CONFIGURATION_UPDATED);
    }

View Full Code Here

  public static HighlightMetadata highlightMetadataForObject(Object obj) {
    HighlightMetadata metadata = null;
    if (obj != null) {
      NSMutableDictionary highlightedObjects = (NSMutableDictionary) ERXWOContext.contextDictionary().valueForKey(AjaxHighlight.HIGHLIGHTED_KEY);
      if (highlightedObjects != null) {
        metadata = (HighlightMetadata) highlightedObjects.objectForKey(highlightedValue(obj));
      }
    }
    return metadata;
  }
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.