Examples of NSMutableDictionary


Examples of com.webobjects.foundation.NSMutableDictionary

    ajaxOptionsArray.addObject(new AjaxOption("hoverclass", AjaxOption.STRING));
    ajaxOptionsArray.addObject(new AjaxOption("ghosting", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("dropOnEmpty", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("scroll", AjaxOption.BOOLEAN));
    ajaxOptionsArray.addObject(new AjaxOption("onChange", AjaxOption.SCRIPT));
    NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, this);
    return options;
  }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary

        ajaxOptionsArray.addObject(new AjaxOption("evalScripts", Boolean.FALSE, AjaxOption.BOOLEAN));
        ajaxOptionsArray.addObject(new AjaxOption("frequency", Integer.valueOf(60), AjaxOption.NUMBER));
        ajaxOptionsArray.addObject(new AjaxOption("method", "get", AjaxOption.STRING));
        ajaxOptionsArray.addObject(new AjaxOption("onFailure", "function(response) { window.close();}", AjaxOption.SCRIPT));
        ajaxOptionsArray.addObject(new AjaxOption("parameters", AjaxOption.STRING));
        NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, component, associations());
        return options;
    }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary

    ajaxOptionsArray.addObject(new AjaxOption("hoverclass", AjaxOption.STRING));
    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

Examples of com.webobjects.foundation.NSMutableDictionary

      form = "document." + form;
    }
    String onbeforedrop = (String) valueForBinding("onBeforeDrop");
    String ondrop = (String) valueForBinding("onDrop");
   
    NSMutableDictionary options = new NSMutableDictionary();
    if (canGetValueForBinding("onComplete")) {
      options.setObjectForKey(valueForBinding("onComplete"), "onComplete");
    }
    if (canGetValueForBinding("confirmMessage")) {
      options.setObjectForKey(new AjaxValue(AjaxOption.STRING, valueForBinding("confirmMessage")).javascriptValue(), "confirmMessage");
    }
    if (submit) {
      AjaxSubmitButton.fillInAjaxOptions(this, this, _elementID, options);
    }
  
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary

  public NSDictionary<String, Object> committedSnapshot() {
    if (!isNewObject()) {
      return editingContext().committedSnapshotForObject(this);
    }
    NSArray keys = allPropertyKeys();
    NSMutableDictionary allNullDict = new NSMutableDictionary(keys.count());
    ERXDictionaryUtilities.setObjectForKeys(allNullDict, NSKeyValueCoding.NullValue, keys);
    return allNullDict;
  }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary

  }

  @SuppressWarnings("unchecked")
  public NSDictionary<String, Object> jsonQueryDictionary()
  {
    NSMutableDictionary tmp = null;

    if (hasBinding("jsonQueryDictionary") && valueForKey("jsonQueryDictionary") != null)
    {
      tmp = new NSMutableDictionary(valueForNSDictionaryBindings("jsonQueryDictionary", new NSDictionary("1", "any")));
    }
    else
    {
      tmp = new NSMutableDictionary("1", "any");
    }

    return tmp.immutableClone();
  }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary

   
    public NSArray sections() {
        if (_sections==null) {
            _sections= new NSMutableArray();
            NSArray list=(NSArray)valueForBinding("list");
            _itemsPerSection=new NSMutableDictionary();
            if (list!=null) {
                boolean ignoreNulls = booleanValueForBinding("ignoreNulls", false);
               
                for (Enumeration e=list.objectEnumerator(); e.hasMoreElements();) {
                    Object item=e.nextElement();
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary

        if(_arguments == null) {
            Object o = valueForBinding("arguments");
            if(o != null)
                _arguments = ((NSDictionary)o).mutableClone();
            else
                _arguments = new NSMutableDictionary();
               
            for(Enumeration e = bindingKeys().objectEnumerator(); e.hasMoreElements();) {
                String s = (String)e.nextElement();
                if(s.indexOf("?") == 0) {
                    Object obj = valueForBinding(s);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary

  WOAssociation _unit;
 
  public ERXStyledContainer(String name, NSDictionary associations, WOElement template) {
    super(name, associations, template);
    _style = _associations.removeObjectForKey("style");
    _styles = new NSMutableDictionary();
    for (Enumeration enumerator = _associations.keyEnumerator(); enumerator.hasMoreElements();) {
      String key = (String) enumerator.nextElement();
      if(key.startsWith("style.")) {
        String styleKey = key.substring(6);
        WOAssociation association = _associations.removeObjectForKey(key);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary

  static {
    WOHelperFunctionDeclarationParser.log.setLevel(Level.WARN);
  }

  public WOHelperFunctionDeclarationParser() {
    _quotedStrings = new NSMutableDictionary();
  }
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.