OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adfinternal.view.js.util
Class AdfSubIdUtils

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adfinternal.view.js.util.AdfSubIdUtils

public class AdfSubIdUtils
extends Object



Field Summary


Fields inherited from org.ecmascript.object.Object

constructor, prototype


Constructor Summary

public
AdfSubIdUtils()


Method Summary

public static HTMLElement
getChildElementByAttributeValue(Object domElement, Object attrName, Object attrValue, Object tagName)
Deprecated: This method has been deprecated. Please use AdfDomUtils.getChildElementByAttributeValue
public static HTMLElement
getChildElementByValueMap(Object domElement, Object keyValueArray, Object tagName)
Deprecated: This method has been deprecated. Please use AdfDomUtils.getChildElementByValueMap
public static HTMLElement[]
getChildElementsByAttributeValue(Object domElement, Object attrName, Object attrValue, Object tagName)
Deprecated: This method has been deprecated. Please use AdfDomUtils.getChildElementsByAttributeValue
public static HTMLElement
getSubIdDomElementByMappedSubId(String subElementId, Object subIdMap, AdfUIComponent component)
Returns the dom element for a given subElementId.
public static HTMLElement
getSubIdElementById(AdfUIComponent component, String subElementId, Object isNC)
Returns the dom element for a given sub Element Id.


Field Detail


Constructor Detail


AdfSubIdUtils

public AdfSubIdUtils()

Method Detail


getChildElementByAttributeValue

public static HTMLElement getChildElementByAttributeValue(Object domElement,
                                                          Object attrName,
                                                          Object attrValue,
                                                          Object tagName)

Returns a dom element which is of type specified by tagName and has an attribute whose value is equal to attrValue. If it does not get any element with that attribute it returns null.

Deprecated: This method has been deprecated. Please use AdfDomUtils.getChildElementByAttributeValue
Parameters:
domElement  -  the dom element which contains child element to locate
attrName  -  the name of the attribute on the element
attrValue  -  the value of the attribute on the element
tagName  -  name of the tag, if undefined then tagName=
Return:
HTMLElement - The element with matching attribute value, or null if none exist

getChildElementByValueMap

public static HTMLElement getChildElementByValueMap(Object domElement,
                                                    Object keyValueArray,
                                                    Object tagName)

Returns a dom element which is of type specified by tagName and has an attribute whose key-value is provided by valueMap. If it does not get any element with that attribute it returns null.

Deprecated: This method has been deprecated. Please use AdfDomUtils.getChildElementByValueMap
Parameters:
domElement  -  the dom element which contains child element to locate
keyValueArray  -  key-value array for the attribute
tagName  -  name of the tag, if undefined then tagName=
Return:
HTMLElement - The element with matching attribute value, or null if none exist

getChildElementsByAttributeValue

public static HTMLElement[] getChildElementsByAttributeValue(Object domElement,
                                                             Object attrName,
                                                             Object attrValue,
                                                             Object tagName)

Returns the set of dom elements which are of the type specified by tagName and have an attribute whose value is equal to attrValue. If it doesn't find any element with that attriburte it returns null.

Deprecated: This method has been deprecated. Please use AdfDomUtils.getChildElementsByAttributeValue
Parameters:
domElement  -  the dom element which contains child elements to locate
attrName  -  the name of the attribute on the element
attrValue  -  the value of the attribute on the element
tagName  -  name of the tag, if undefined then tagName=
Return:
HTMLElement[] - Elements with matching attribute value, or null if none exist

getSubIdDomElementByMappedSubId

public static HTMLElement getSubIdDomElementByMappedSubId(String subElementId,
                                                          Object subIdMap,
                                                          AdfUIComponent component)

Returns the dom element for a given subElementId. Note that it is preferable to call this method with the subIdMap and component parameters, as otherwise this method will fail unless using method remapping (which is ugly/buggy code).

Parameters:
subElementId  -  the id of the child dom element or component
subIdMap  -  the map of sub IDs for the component's peer
component  -  the component whose subElement you wish to access
Return:
HTMLElement - the DOM within the component related to scopedId

getSubIdElementById

public static HTMLElement getSubIdElementById(AdfUIComponent component,
                                              String subElementId,
                                              Object isNC)

Returns the dom element for a given sub Element Id.

Parameters:
component  -  the adf component
subElementId  -  the id of the child dom element or component
isNC    
Return:
HTMLElement - the DOM within the component related to subElementId

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

 

Generated on 2014.03.27 12:59 UTC
Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.