Package org.freeplane.plugin.script.proxy.Proxy

Examples of org.freeplane.plugin.script.proxy.Proxy.Attributes


    return ProxyUtils.attributeValueToConvertible(getDelegate(), getScriptContext(), value);
  }

  // Node: R/W
  public Object putAt(final String attributeName, final Object value) {
    final Attributes attributes = getAttributes();
    if (value == null) {
      final int index = attributes.findFirst(attributeName);
      if (index != -1)
        attributes.remove(index);
      // else: ignore request
    }
    else {
      attributes.set(attributeName, value);
    }
    return value;
  }
View Full Code Here


    return value;
  }

  // Node: R/W
  public void setAttributes(Map<String, Object> attributeMap) {
    final Attributes attributes = getAttributes();
    attributes.clear();
    for (Entry<String, Object> entry : attributeMap.entrySet()) {
      attributes.set(entry.getKey(), entry.getValue());
    }
  }
View Full Code Here

TOP

Related Classes of org.freeplane.plugin.script.proxy.Proxy.Attributes

Copyright © 2018 www.massapicom. 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.