IE AdfAgent capabilities prior to IE11.
Method Summary |
public Object |
addBubbleEventListener(Object element, Object eventType, Object listener)
Adds an event listener that fires in the non-Capture phases for the specified
eventType.
|
private Object |
_addCapturePane(Object nodeId)
Creates and adds the element to use to simulate event capture in IE.
|
public Object |
addEventBubbles(Object element, Object listener)
Adds event listeners for all of the events that the Rich client framework
is interested in to the relevant element using the specified listener
|
public Object |
addEventCaptures(Node node, Function listener)
Adds event captures for all of the events that the Rich client framework
is interested in to the relevant element using the specified listener
|
public Object |
addKeyEventListener(Object element, Object listener)
Adds key event listener to the specified element.
|
public Object |
addOption(Object element, Object label, Object value, Object selected, Object disabled, Object description, Object index)
IE doesn't support disabled options natively
TODO - investigate showing a "disabled" option in ie - some fancy
javascript could probably make it work
|
public Object |
allElementsRemoved()
Resets any id->element cache when all elements are removed
This method should be called AFTER the elements are removed
|
public static Object |
assertBrowserMode(Object agent)
|
public Object |
autoCompleteForm(Object htmlForm)
|
private Object |
_captureListener(Event domEvent)
Listener for redistributing captured events.
|
private static Object |
_captureListenerStub()
Stub for distributing events to the AdfIEAgentLegacy instance
|
public Object |
checkMouseOutEvent(Object element, Object evt)
Checks wthether a mouseout event was received by the container when
mouse was moved form one of its child elements to another
|
public Object |
clearSubtreeIds(Object element)
Clear id of the specified element and its children.
|
public Object |
cloneEvent(Object event, Object newTarget)
Returns a new Event Object, based on a current event, retargetted to the
new target.
|
public Node |
cloneNode(Node domNode)
Clones a DOM node with special handling for IE7.
|
private static Object |
_computeScrollDelta(Object scrollRecord, Object viewPortSize, Object canvasSize, Object dragDelta)
|
public Event |
copyEvent(Event event)
Copies an event from an existing event.
|
private Object |
_copyKeyboardEvent(Object event, Object eventType, Object newTarget)
|
private Object |
_copyMouseEvent(Object event, Object targetNode)
|
protected Object |
CreateNativeLogWriter()
Creates and returns the native AdfLogWriter to use for this AdfAgent
|
public HTMLElement |
createStyle(String content)
Inserts a new style block into the document using the specified style content.
|
protected Object |
CreateUIInputEvent(Object component, Object type, Object nativeEvent)
|
private Object |
_createUserDataChildNode(Object objXmlDoc, String nodeName, String nodeIdName, String nodeIdVal)
This function creates a node element using passed xmlDocument with the given node element name
and then set the node id as nodeIdName and value as nodeIdVal
|
public Object |
createXmlDocument()
|
public Object |
createXMLHttpRequest()
|
private Object |
_deliverEventToEventCaptures(Object eventCaptures, Object capturedEvent)
Delivers the specified event to all of the event capture listeners
|
public Object |
disableUserSelect(Object element)
Disable the user's ability to select text in this component
|
public Object |
dispatchEvent(Object targetElement, Object event)
Dispatches the specified event to the target, returning whether the
dispatch was successful
|
private static Object |
_doNothing()
|
public Object |
elementFromPagePoint(Object pageX, Object pageY, Object hintElement, Object exclusionContext, Object exclusionCallback)
Returns the topmost element at the give mouse point in Window coordinates.
|
public Object |
elementsAdded(Object node)
Updates any id->element cache by adding the elements in the specified subtree
|
public Object |
elementsRemoved(Object node)
Updates any id->element cache by removing the elements in the specified subtree.
|
public Object |
enableUserSelect(Object element)
Enable the user's ability to select text in this component
|
public Object |
endDocumentKeyEventCapture(Object listenerMap, Object focusProxy, Object focusState)
Remove agent-specific techniques for capturing key events for the
focusProxy's document
|
public Object |
execScript(Object ownerWindow, Object scriptText)
Executes a script.
|
static Float |
__getAgentVersion(Object agentName)
Checks the user agent string returning the current browser version.
|
private Object |
_getAttribute(Object node, Object attrName)
|
private Object |
_getBlockingDiv()
Conveenience function for getting the glasspane DIV used with inline editing
|
public Object |
getBooleanAttribute(Object element, Object attrName, Object defaultValue)
Returns the value of a boolean attribute.
|
public Number |
getBrowserViewportScrollLeft()
|
private String |
_getCapturePaneId(Object nodeId)
Returns the id of the capture pane for the node with the specified id.
|
public Object |
getComponentEvent(Object component, Object nativeEvent, Object prevComponent)
|
public Object |
getComputedStyle(Object element)
Tries to return the current style, taking
into account the inline styles and style sheets
|
protected Object |
GetCssToDomPropertyNameMap()
Returns the map which contains the CSS property name and it's DOM version.
|
public Object |
getCursor(Object cursorName)
Returns the CSS cursor property value to return for a CSS3 cursor name
|
public Array<AdfUIComponent> |
getDescendantComponentsForNode(Node node, Array<AdfUIComponent> children)
Get components descended from a node.
|
public Object |
getElementById(Object id)
Cover function to allow more performant implementations of document.getElementById()
|
public Object |
getElementLeft(Object element)
Returns the element's left side in Window coordinates.
|
public Object |
getElementPageBounds(HTMLElement domElement)
Return a rectangle object containing the page bounds of an element in
top/left/bottom/right form
|
public Object |
getElementPosition(Object element)
Returns HTML element's coordinates relative to the document's body
|
public Object |
getElementTop(Object element)
Returns the element's top side in Window coordinates.
|
public Object |
getEventFromElement(Object nativeEvent)
Some events, like the mouseover event, can tell you the dom node being moved from.
|
public Object |
getEventTarget(Object event)
|
public Object |
getEventToElement(Object nativeEvent)
Some events, like the mouseout event, can tell you the dom node being moved to.
|
public Object |
getFormElement(Object form, Object elementName)
Finds the form element by name.
|
public Object |
getIntAttribute(Object element, Object attrName, Object defaultValue)
Returns the value of a number attribute.
|
public Object |
getLocalName(Object element)
|
public Object |
getMousePosition(Object evt)
Returns event's mouse or touch coordinates relative to the document
|
public Object |
getNodeName(Object node)
This method returns the name of the node in all upper case letters.
|
public Object |
getNodeXml(Object node)
|
public Object |
getOverrideStyle(Object element)
Returns the override style for this element
|
public Object |
getPrefix(Object element)
|
public String |
getSessionStorageProperty(String propKey, Number dataTimeout)
This function returns the value for a given key stored in data storage using userData.
|
public Object |
getStyleProperty(Object style, Object propertyName)
Returns the value of a property for the AdfAgent's style object
|
public Object |
getTableRowCells(Object tableRow)
At least on IE8 running in IE7 mode, the .cells collection for unconnected tables is empty.
|
public Object |
getTextContent(Object node)
Returns the text content of a Node, as per DOM-level 3 spec
|
private Object |
_getUserDataChildNode(Array children, String childName, String childVal)
This function returns the child node if it is found in the children array else returns null.
|
private Object |
_getUserDataProperty(String propKey, Number dataTimeout)
Attempts to load persisted object from the UserData store, read the value stored for the propKey
and returns a valid value or null.
|
private Object |
_getUserDataStorageDataNode(Object objXMLDoc, String propKey)
Returns the data node for existing propkey in given storage node.
|
private String |
_getUserDataStorageId()
This function retruns the userData storage id.
|
public Number |
getWindowClientHeight(Window domWindow)
Returns the client (or inner) height of the DOM window Object
|
public Number |
getWindowClientWidth(Window domWindow)
Returns the client (or inner) width of the DOM window Object
|
public Object |
getWindowHeight()
Returns the content height of the browser window
|
public Number |
getWindowScrollHeight(Window domWindow)
Returns the scroll (or canvas) height of the DOM window Object
|
public Number |
getWindowScrollWidth(Window domWindow)
Returns the scroll (or canvas) width of the DOM window Object
|
public Object |
getWindowWidth()
Returns the content width of the browser window
|
private Object |
_handleInlineEditingClick(Object domEvent)
Handles clicks on the scrollbars during inline editing
|
private Object |
_handleInlineEditingMouseDown(Object domEvent)
Handles a mouse down during inline editing.
|
private Object |
_handleInlineEditingMouseMove(Object domEvent)
Handles fake scrollbar thumb drags during inline editing
|
private Object |
_handleInlineEditingMouseUp(Object domEvent)
Clean up the fake scrolling when the moouse comes up
|
private static Object |
_handleScrollInterval()
Callback from in inline editing scrollbar timers
|
public Boolean |
hasAttribute(Element element, Attr attribute)
Checks if an attribute is explicitly set on the node.
|
private static Object |
_imageReadyCallback()
Actually updates the images used once they have finished loading
|
protected Object |
Init(Object version, Object domWindow)
Initializes the instance.
|
private static Boolean |
_isCapturePane(HTMLElement element)
Tests whether the specified element is a capture pane.
|
public Boolean |
isChromeEvent(Event domEvent)
Returns true if the event was on the element chrome
|
protected Object |
IsComputedWidthAuto()
|
public boolean |
isDefaultPrevented(Event evt)
Checks to see if {@link AdfAgent#preventDefault} was called on the target event.
|
public Object |
isDisabledOptionSupported()
Returns whether or not disabled is supported on an option tag
|
public Object |
isEqualIcon(Object firstIcon, Object secondIcon)
IE's img icons innerHTML can be different.
|
public Object |
isFunctionKey(Object keyEvent)
Returns whether the event's keycode should be considered as a function key.
|
private static Object |
_isIllegalBrowserDetected(Object agent)
|
public Object |
isLeftButton(Object evt)
Tests whether the button pressed is a left button.
|
public Boolean |
isSessionStorageEnabled()
This function returns true if userData persistence is enabled; false otherwise.
|
private Object |
_loadUserDataFromStore()
This function reads information from the UserData store and loads it onto the object
participating in the userData persistence.
|
public Object |
parseXML(Object xmlString)
Parses XML string into a DOM document
|
public Object |
pointInElementBounds(Object element, Object pageX, Object pageY)
Returns true if the specified point in page space is in the
bounds of this element
|
public Boolean |
pointInElementChrome(HTMLElement element, Number pageX, Number pageY)
Returns true if the point in page coordinates is over element chrome on
the specified component
|
public void |
preventDefault(Event evt)
Cancels the event if it is cancelable, without stopping further propagation of the event.
|
public Object |
removeBubbleEventListener(Object element, Object eventType, Object listener)
Removes an event listener that fired in the non-Capture phases for the specified
eventType
|
private Object |
_removeCapturePane(Object nodeId)
Removes the element we use to simulate event capture in IE.
|
public Object |
removeEventBubbles(Object element, Object listener)
Removes event listeners for all of the events that the Rich client framework
is interested in from the relevant element using the specified listener
|
public Object |
removeEventCaptures(Node node, Object listener)
Removes event captures for all of the events that the Rich client framework
is interested in to the relevant element using the specified listener
|
public Object |
removeIdsFromDomSubTree(HTMLElement subTreeRoot)
Removes all of the ID values from every element in the given DOM sub tree.
|
public Object |
removeKeyEventListener(Object element, Object listener)
Removes the key event capture from the specified element.
|
public Object |
removeSessionStorageProperty(String propKey)
This function removes key/value pair stored in data storage using userData.
|
public Object |
removeStyleProperty(Object element, Object styleProperty)
remove a styleProperty set on this element
|
private Object |
_removeUserDataProperty(String propKey)
Attempts to load persisted object from the UserData store, remove the data node for the propKey.
|
private Object |
_saveUserDataToStore(Object userDataInstance, Object storageId)
This function saves the object that is participating in userData persistence, into the UserData
store.
|
public Object |
setCssFloat(Object element, Object value)
|
public Object |
setCursor(HTMLElement domElement, Object cursor, Boolean onTargetElement)
Sets the cursor on the specified DOM ELement.
|
public Object |
setEventTarget(Object event, Object eventTarget)
|
public Object |
setImageSource(Object img, Object src)
Sets the image source.
|
public Object |
setOpacity(Object element, Object opacityPercent)
sets opacity of a DOM element
|
private Object |
_setSessionStorageExpiration(Object userDataInstance, Object storageId, Object expirationTime)
This function sets the expiration time (in minutes) for data stored in userData storage.
|
public Object |
setSessionStorageProperty(String propKey, String propValue, Number dataTimeout)
This function stores the key/value pair in the object participating in userData persistence and
subsequently saves the object to the UserData store.
|
public Object |
setTableRowHeight(Object row, Object height)
|
public Object |
setTextContent(Object node, Object newText)
Sets the text content of a Node, as per DOM-level 3 spec
|
private Object |
_setUserDataProperty(String propKey, String propValue, Number dataTimeout)
Attempts to load persisted object from userdata store, creates a data node for the propKey if one
doesn't exist, updates the user data instance object and sets it back into Userdata store.
|
public Object |
slice(Object file, Object startByte, Object stopByte)
For agents which support the File API, slices the File.
|
public Object |
startDocumentKeyEventCapture(Object listenerMap, Object focusProxy)
Use agent-specific techniques for capturing key events for the
focusProxy's document.
|
public Object |
startMouseEventCapture(Object listenerMap)
Starts capturing mouse events and installs event listeners.
|
public Object |
stopMouseEventCapture(Object listenerMap)
Stops mouse events capture and removes event listeners.
|
public Object |
stopPropagation(Object evt)
|
public Boolean |
supportsTransientStyleClasses()
Overridden to not support transient styleClasses like 'hover-target' style class in IE because of the following bugs
Bug 6931294 - ie7 setting styles in rtl cause scroll bar to reset position.
|
public String |
toISOString(Object date)
Returns Date in simplified extended ISO string format (ISO 8601):
|