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 Object |
autoCompleteForm(Object htmlForm)
|
private Object |
_captureListener(Event domEvent)
-
Listener for redistributing captured events.
|
private static Object |
_captureListenerStub()
-
Stub for distributing events to the AdfIEAgent 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 |
cloneEvent(Object event, Object newTarget)
-
Returns a new Event Object, based on a current event, retargetted to the new target.
|
private static Object |
_computeScrollDelta(Object scrollRecord, Object viewPortSize, Object canvasSize, Object dragDelta)
|
public Event |
copyEvent(Event event)
-
Copies an event from an existing event.
|
protected Object |
CreateNativeLogWriter()
-
Creates and returns the native AdfLogWriter to use for this AdfAgent
|
public DOMElement |
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()
|
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.
|
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 |
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 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)
|
protected Array |
GetResizeEvents()
-
An array of event types used by the addResizeListener and removeResizeListener functions.
|
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 |
_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.
|
private Object |
_getUserDataStorageInstance()
-
This function retruns the instance of the data storage using userData.
|
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
|
private static Object |
_imageReadyCallback()
-
Actually updates the images used once they have finished loading
|
protected Object |
Init(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
|
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.
|
public Object |
isLeftButton(Object evt)
|
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, int pageX, int pageY)
-
Returns true if the point in page coordinates is over element chrome on the specified component
|
public Object |
preventDefault(Object evt)
|
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
|
public Object |
setCssFloat(Object element, Object value)
|
public Object |
setCursor(HTMLElement domElement, Object cursor)
-
Sets the cursor on the specified DOM ELement.
|
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 expirationTime)
-
This function sets the expiration time (in minutes) for data stored in userData storage.
|
public Object |
setSessionStorageProperty(String propKey, String propValue, Object dataTimeout)
-
This function stores the key/value pair in data storage using userData.Enables the object to persist data in user data.
|
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
|
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)
|