|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.2) E76716-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--oracle.adf.view.js.base.AdfObject | +--oracle.adf.view.js.agent.AdfAgent | +--oracle.adfinternal.view.js.agent.ie.AdfIEAgent
public class AdfIEAgent extends AdfAgent
Field Summary |
|
---|---|
private static Object |
|
private static Object |
Fields inherited from oracle.adf.view.js.agent.AdfAgent |
ANDROID_OS, CAP_TOUCH_SCREEN, CAP_TOUCH_SCREEN_MULTIPLE, CAP_TOUCH_SCREEN_NONE, CAP_TOUCH_SCREEN_SINGLE, DRAG_GHOST_STYLECLASS, GECKO_PLATFORM, IE_PLATFORM, KEY_EVENTS, MAC_OS, OPERA_PLATFORM, SOLARIS_OS, UNKNOWN_OS, UNKNOWN_PLATFORM, WEBKIT_PLATFORM, WINDOWS_OS |
Fields inherited from oracle.adf.view.js.base.AdfObject |
constructor, superclass |
Fields inherited from org.ecmascript.object.Object |
prototype |
Constructor Summary |
|
---|---|
public |
|
Method Summary |
|
---|---|
public Object |
|
private Object |
|
public Object |
|
public static void |
|
public void |
|
public boolean |
|
public void |
|
protected AdfLogWriter |
|
public HTMLElement |
|
static Float |
|
private static Array |
|
public Boolean |
|
public Object |
|
public Array<AdfUIComponent> |
|
public Float |
|
public Object |
|
public Object |
|
public Float |
|
public Node |
|
public Node |
|
public HtmlElement |
|
public Number |
|
public Object |
|
public Object |
|
protected Array |
|
protected Array |
|
private String |
|
public String |
|
public String |
|
public Float |
|
public Float |
|
protected void |
|
protected Boolean |
|
public Boolean |
|
public Object |
|
public Boolean |
|
private static boolean |
|
public boolean |
|
public Object |
|
private Object |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
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 |
---|
private static Object _REDISTRIBUTE_BUBBLE_EVENTS
private static Object _REDISTRIBUTE_CAPTURE_EVENTS
Constructor Detail |
---|
public AdfIEAgent(Object domWindow)
domWindow |
Method Detail |
---|
public Object addEventBubbles(Object node,
Object listener)
node |
||
listener |
Object
AdfAgent.addEventBubbles(Object, Object)
private Object _addEventListeners(Node node,
Array<String> eventTypes,
Function listener,
Boolean capture)
node |
- | Element or Document to add listener to |
eventTypes |
- | Array of DOM event types to register listener for |
listener |
- | Event listener to register on node |
capture |
- | true to add the listener using event capture |
Object
public Object addOption(Node element,
String label,
Object value,
boolean selected,
boolean disabled,
String description,
int index)
element |
||
label |
||
value |
||
selected |
||
disabled |
||
description |
||
index |
Object
AdfAgent.addOption(Object, Object, Object, Object, Object, Object, Object)
public static void assertBrowserMode(AdfAgent agent)
agent
to determine if the browser is a supported version. Displays an alert message depending on the configuration settings and loggs a warning message if the browser is unsupported.agent |
- | that is current |
void
- nullpublic void autoCompleteForm(Form htmlForm)
htmlForm |
void
- nullAdfAgent.autoCompleteForm(Object)
public boolean checkMouseOutEvent(Node element,
Event evt)
element |
- | container node |
evt |
- | event object |
boolean
- true if mouse was moved outside of the container, false otherwiseAdfAgent.checkMouseOutEvent(Object, Object)
public void clearSubtreeIds(HtmlElement element)
element |
void
- nullAdfAgent.clearSubtreeIds(Object)
protected AdfLogWriter CreateNativeLogWriter()
AdfLogWriter
- that writes to the developer tools consoleAdfAgent.CreateNativeLogWriter()
public HTMLElement elementFromPagePoint(Number pageX,
Object pageY,
HTMLElement hintElement,
Object exclusionContext,
Object exclusionCallback)
Please keep in mind that this method is inefficient when the there is no native implementation by the browser. This is because the method iterates the entire document depth first to find the element at a particular point
pageX |
- | the y coordinate to test for |
pageY |
||
hintElement |
- | Optional hint element to begin searching from as an optimization. If no element is found inside the hintElement, its ancestors will be considered.
Default value = undefined
|
exclusionContext |
||
exclusionCallback |
HTMLElement
- the topmost domElement at the given pointAdfAgent.elementFromPagePoint(Number, Object, HTMLElement, Object, Object)
static Float __getAgentVersion(Object agentName)
agentName |
Float
- IE version identified by the user agent stringprivate static Array _getAllChildElements(Node parentElement)
parentElement |
- | to deliver children for |
Array
- all nodes under the subtree defined by the parentElementpublic Boolean getBooleanAttribute(Node element,
String attrName,
Boolean defaultValue)
element |
- | target |
attrName |
- | target attribute name |
defaultValue |
- | optional default value |
Boolean
- attribute value as a booleanAdfAgent.getBooleanAttribute(Object, Object, Object)
public Object getComputedStyle(Node element)
element |
- | to return the computed style |
Object
- computed style object for the elementAdfAgent.getComputedStyle(Object)
public Array<AdfUIComponent> getDescendantComponentsForNode(Node node,
Array<AdfUIComponent> children)
There is no guarantee about the order of the children returned. If visiting the children in a known order is required please use AdfUIComponent.visitChildren.
All descendent children are returned, visible or not. If ignoring hidden children is required please use AdfUIComponent.visitChildren.
This method is faster than AdfUIComponent.visitChildren, if the limitations above are acceptable it is preferable to use this method.
node |
- | DOM node where to start searching |
children |
- | array to store child components in. Descendent components will be added to the end of the array. This param is optional, if not passed in an array will be created. |
Array<AdfUIComponent>
- array of descendent components, may be emptyAdfAgent.getDescendantComponentsForNode(Node, Array<AdfUIComponent>)
public Float getElementLeft(Node element)
element |
- | target node to return the window coordinates |
Float
- Returns the element's left side in Window coordinatesAdfAgent.getElementLeft(Object)
public Object getElementPageBounds(HTMLElement domElement)
domElement |
- | target element to return coordinates on the page |
Object
- object with members "top", "left", "bottom", and "right"AdfAgent.getElementPageBounds(Object)
public Object getElementPosition(Object element)
element |
- | HTML element |
Object
- an object with two properties (x for the left coordinate and y for the top coordinate)AdfAgent.getElementPosition(Object)
public Float getElementTop(Node element)
element |
- | target node to return it's top corrdinates |
Float
- Returns the element's top side in Window coordinatesAdfAgent.getElementTop(Object)
public Node getEventFromElement(Event nativeEvent)
nativeEvent |
Node
- associated elementAdfAgent.getEventFromElement(Object)
public Node getEventToElement(Event nativeEvent)
nativeEvent |
Node
- node assocaited with the native eventAdfAgent.getEventToElement(Object)
public HtmlElement getFormElement(Form form,
String elementName)
form |
- | the form |
elementName |
- | the name of the form element |
HtmlElement
- nullAdfAgent.getFormElement(Object, Object)
public Number getIntAttribute(Node element,
String attrName,
Object defaultValue)
element |
- | target |
attrName |
- | target attribute name |
defaultValue |
Number
- attribute value as a numberAdfAgent.getIntAttribute(Object, Object, Object)
public Object getMousePosition(Event evt)
evt |
- | event object |
Object
- an object with two properties (x for the left coordinate and y for the top coordinate)AdfAgent.getMousePosition(Object)
public Object getOverrideStyle(Node element)
element |
- | for which to return the runtime style |
Object
- runtime style objectAdfAgent.getOverrideStyle(Object)
protected Array GetRedistributeBubbleEvents()
AdfAgent._REDISTRIBUTE_EVENTS
. The focus and blur events are removed and instead registered as capture events. A subclass can override to add additional events.Array
- list of bubble events as literal stringsprotected Array GetRedistributeCaptureEvents()
Array
- list of bubble events as literal stringsprivate String _getSessionStorageKey(String propKey)
propKey |
- | root property key identifier |
String
- a propKey prefixed by the current protocol used. If protocol is undefined or null, it returns propKeypublic String getSessionStorageProperty(String propKey)
propKey |
- | key used to retrieve the value in storage |
String
- value of the property stored with key propKeyError
when access to sessionStorage fails.AdfAgent.getSessionStorageProperty(String)
public String getStyleProperty(Object style,
String propertyName)
style |
- | object for an element |
propertyName |
- | of the style sheet name |
String
- value of the style sheet object propertyAdfAgent.getStyleProperty(Object, Object)
public Float getWindowHeight()
Float
- returns the content height of the browser window.AdfAgent.getWindowHeight()
public Float getWindowWidth()
Float
- returns the content width of the browser window.AdfAgent.getWindowWidth()
protected void Init(Window domWindow)
domWindow |
- | that is a associated with the singleton instance |
void
- nullAdfObject.Init()
protected Boolean IsComputedWidthAuto()
Boolean
- true if the computed style for this agent may return "auto" as a value instead of an actual pixel size.AdfAgent.IsComputedWidthAuto()
public Boolean isDisabledOptionSupported()
Boolean
- null true
if disabled is supported on the option input tag.AdfAgent.isDisabledOptionSupported()
public Object isEqualIcon(Node firstIcon,
Node secondIcon)
firstIcon |
||
secondIcon |
Object
AdfAgent.isEqualIcon(Object, Object)
public Boolean isFunctionKey(Event keyEvent)
keyEvent |
Boolean
- null true
if the event's keycode is a function keyAdfAgent.isFunctionKey(Object)
private static boolean _isIllegalBrowserDetected(AdfAgent agent)
agent |
- | that is current |
boolean
- null true
if the browser is not supportedpublic boolean pointInElementBounds(Object element,
Object pageX,
Object pageY)
element |
||
pageX |
||
pageY |
boolean
- null true
if the point defined byt the x,y coordinates is within the elementAdfAgent.pointInElementBounds(Object, Object, Object)
public Object removeEventBubbles(Object node,
Object listener)
node |
||
listener |
Object
AdfAgent.removeEventBubbles(Object, Object)
private Object _removeEventListeners(Node node,
Array<String> eventTypes,
Function listener,
Boolean capture)
node |
- | Element or Document to add listener to |
eventTypes |
- | Array of DOM event types to register listener for |
listener |
- | Event listener to deregister on element |
capture |
- | true to remove a the listener added using event capture |
Object
public void removeIdsFromDomSubTree(HTMLElement subTreeRoot)
subTreeRoot |
- | the root of the sub tree to remove IDs from |
void
- nullAdfAgent.removeIdsFromDomSubTree(HTMLElement)
public void removeSessionStorageProperty(String propKey)
propKey |
- | key used to remove the value from storage |
void
- nullError
when sessionStorage access fails.AdfAgent.removeSessionStorageProperty(String)
public void removeStyleProperty(Node element,
String styleProperty)
element |
||
styleProperty |
void
- nullAdfAgent.removeStyleProperty(Object, Object)
public void setCssFloat(Node element,
String value)
element
.element |
- | target html element |
value |
- | to set |
void
- nullAdfAgent.setCssFloat(Object, Object)
public void setSessionStorageProperty(String propKey,
String propValue)
propKey |
- | this key will be used to store the key/value in storage |
propValue |
- | value to be stored. |
void
- nullError
when sessionStorage access fails.AdfAgent.setSessionStorageProperty(String, String)
public void setTableRowHeight(Node row,
Number height)
row |
||
height |
void
- nullAdfAgent.setTableRowHeight(Object, Object)
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.2) E76716-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |