Examples of WOURLValuedElementData


Examples of com.webobjects.appserver._private.WOURLValuedElementData

           if("background-image".equals(key)) {
             if (value instanceof NSData) {
               NSData data = (NSData) value;
               WOResourceManager rm = WOApplication.application().resourceManager();
               String mimeType = (String) (_mimeType != null ? _mimeType.valueInComponent(component) : "image/jpeg");
               WOURLValuedElementData uve = new WOURLValuedElementData(data, mimeType, null);
               rm._cacheData(uve);
               stringValue = uve.dataURL(wocontext);
             } else {
               stringValue = value.toString();
             }
             if(stringValue.indexOf("url(") < 0) {
               stringValue = "url(" + stringValue + ")";
View Full Code Here

Examples of com.webobjects.appserver._private.WOURLValuedElementData

    }
    return url;
  }

  private WOURLValuedElementData cachedDataForKey(String key) {
    WOURLValuedElementData data = _urlValuedElementsData.objectForKey(key);
    if (data == null && key != null && key.startsWith("file:") && ERXApplication.isDevelopmentModeSafe()) {
      data = cacheDataIfNotInCache(key);
    }
    return data;
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WOURLValuedElementData

    }
    return data;
  }

  protected WOURLValuedElementData cacheDataIfNotInCache(String key) {
    WOURLValuedElementData data = _urlValuedElementsData.objectForKey(key);
    if (data == null) {
      String contentType = contentTypeForResourceNamed(key);
      data = new WOURLValuedElementData(null, contentType, key);
      _urlValuedElementsData.setObjectForKey(data, key);
    }
    return data;
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WOURLValuedElementData

    return data;
  }

  @Override
  public WOURLValuedElementData _cachedDataForKey(String key) {
    WOURLValuedElementData wourlvaluedelementdata = null;
    if (key != null) {
      wourlvaluedelementdata = cachedDataForKey(key);
    }
    return wourlvaluedelementdata;
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WOURLValuedElementData

    return super.createReplacedElement(context, box, callback, cssWidth, cssHeight);
  }

  private NSData cachedDataForKey(String key) {
    WOResourceManager resourceManager =  WOApplication.application().resourceManager();
    WOURLValuedElementData elementData = resourceManager._cachedDataForKey(key);
    if (elementData.isTemporary()) {
      resourceManager.removeDataForKey(key, null);
    }
    return elementData.data();
  }
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.