OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.data
Class AdfSvgCacheManager

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adfinternal.view.js.data.AdfSvgCacheManager

public class AdfSvgCacheManager
extends AdfObject


Field Summary

private Object
_svgCache

Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass

Fields inherited from org.ecmascript.object.Object

prototype

Constructor Summary

public
AdfSvgCacheManager()

Method Summary

private Object
_cacheSvg(Object svgNode, Object url)
public Object
clearSvgIcon(Object url)
private static Object
_copyAttributesToSVG(Object spanElement, SVGElement svgElement)
Iterate the attributes of span element and set those attributes on svgElement.
public Object
embedSVG(Object component, Object span, Object iconUrl)
protected Object
Init()
Initializes the instance.
private Object
_inlineSVGCallback(AdfUIComponent component, Object span, Object iconUri, Object urlHash, Object xmlHttp)
XHR callback for processing the SVG content.
private Object
_normalizeURL(Object url)
private Object
_sendRequest(Object component, Object spanElement, Object iconUrl)

Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString

Field Detail


_svgCache

private Object _svgCache

Constructor Detail


AdfSvgCacheManager

public AdfSvgCacheManager()

Method Detail


_cacheSvg

private Object _cacheSvg(Object svgNode,
                         Object url)

Parameters:
svgNode  
url  
Return:
Object

clearSvgIcon

public Object clearSvgIcon(Object url)

Parameters:
url  
Return:
Object

_copyAttributesToSVG

private static Object _copyAttributesToSVG(Object spanElement,
                                           SVGElement svgElement)

Iterate the attributes of span element and set those attributes on svgElement. class and style attributes will be appended and other attributes will be replaced with the corresponding values in span.

Parameters:
spanElement  
svgElement - to which attributes will be copied
Return:
Object

embedSVG

public Object embedSVG(Object component,
                       Object span,
                       Object iconUrl)

Parameters:
component  
span  
iconUrl  
Return:
Object

Init

protected Object Init()

Initializes the instance. Subclasses of AdfObject must call their superclass' Init

Return:
Object
Overrides:
AdfObject.Init()

_inlineSVGCallback

private Object _inlineSVGCallback(AdfUIComponent component,
                                  Object span,
                                  Object iconUri,
                                  Object urlHash,
                                  Object xmlHttp)

XHR callback for processing the SVG content. This is responsible for replacing the img element in the component with SVG element.

Parameters:
component - instance
span  
iconUri  
urlHash  
xmlHttp  
Return:
Object

_normalizeURL

private Object _normalizeURL(Object url)

Parameters:
url  
Return:
Object

_sendRequest

private Object _sendRequest(Object component,
                            Object spanElement,
                            Object iconUrl)

Parameters:
component  
spanElement  
iconUrl  
Return:
Object

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.