Package com.webobjects.foundation

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


    // Classname for the class that will create the lucene index
    String className = (String) indexDef.objectForKey("index");
    NSMutableDictionary dict = indexDef.mutableClone();
   
    // If index store not defined, default to index named the dsame as the indexModel file in the indexRoot directory
    if(!dict.containsKey("store")) {
      try {
        dict.setObjectForKey(new File(indexRoot(), key).toURI().toURL().toString(), "store");
      } catch (MalformedURLException e) {
        throw NSForwardException._runtimeExceptionForThrowable(e);
      }
View Full Code Here


    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    WOAssociation action = (WOAssociation) mutableAssociations.removeObjectForKey("action");
    if (action != null) {
      mutableAssociations.setObjectForKey(action, "invokeAction");
    }
    if (!mutableAssociations.containsKey("elementName")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("div"), "elementName");
    }
    if (!mutableAssociations.containsKey("style")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("cursor: pointer;"), "style");
    }
View Full Code Here

      mutableAssociations.setObjectForKey(action, "invokeAction");
    }
    if (!mutableAssociations.containsKey("elementName")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("div"), "elementName");
    }
    if (!mutableAssociations.containsKey("style")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("cursor: pointer;"), "style");
    }
    return mutableAssociations;
  }
View Full Code Here

            response.appendContentString(label.toString());
        }
        response.appendContentString("</a>");
        if (AjaxUtils.isAjaxRequest(context.request())) {
          NSMutableDictionary userInfo = ERXWOContext.contextDictionary();
          if (!userInfo.containsKey("er.ajax.AjaxModalContainer.init")) {
              AjaxUtils.appendScriptHeader(response);
              response.appendContentString("iBox.init()");
              AjaxUtils.appendScriptFooter(response);
              userInfo.setObjectForKey(Boolean.TRUE, "er.ajax.AjaxModalContainer.init");
          }
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.