# JavaScript API Reference for Oracle ADF Faces

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81451-01
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |

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

# oracle.adfinternal.view.js.agent.safari
Class AdfSafariAgent

## Warning:

- This is an unsupported, internal implementation class.
- Use an API class that might provide equivalent functionality instead.
- This class will change without notice.
- It is not recommended that you use anything in this class.

    org.ecmascript.object.Object
       |
       +--oracle.adf.view.js.base.AdfObject
             |
             +--oracle.adf.view.js.agent.AdfAgent
                   |
                   +--oracle.adfinternal.view.js.agent.safari.AdfSafariAgent

Direct Known Subclasses:
  AdfSafariMobileAgent

    public class AdfSafariAgent
    extends AdfAgent

SafariAdfAgent AdfAgent capabilities.

## Field Summary
`private static Object` | `_MODIFIER_DISPLAY_NAMES`

### 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, EDGE_PLATFORM, GECKO_PLATFORM, IE_PLATFORM, KEY_EVENTS, MAC_OS, OPERA_PLATFORM, REDISTRIBUTE_EVENTS, 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` | `AdfSafariAgent(Object version, Object domWindow)` SafariAdfAgent AdfAgent capabilities.

## Method Summary
`public Event` | `cloneEvent(Event event, HTMLElement newTarget)` Clones an event from an existing event for a new target element.
`protected Object` | `CreateDefaultLogWriter(Object nativeLogWriter)` Creates and returns the default AdfLogWriter to use for this AdfPage.
`protected Object` | `CreateNativeLogWriter()` Override to return an AdfLogWriter that writes to the developer tools console
`public Object` | `createTouchMoveManager(Object element, Object handlerCallback, Object touchCount)` Constructs a manager for handling touch movements.
`protected Object` | `CreateUIInputEvent(Object component, Object type, Object nativeEvent)`
`public Object` | `disableUserSelect(Object element)` Disable the user's ability to select text in this component
`public Object` | `enableUserSelect(Object element)` Enable the user's ability to select text in this component
`public Object` | `execScript(Window ownerWindow, String scriptText)` Executes a script.
`static Object` | `__getAgentVersion(Object userAgent)` Checks the user agent string returning the current browser version.
`public String` | `getBoxSizing(HTMLElement element, CSSStyleDeclaration currentStyle)` Returns the box model associated with an element (http://www.w3.org/TR/css3-ui/#box-sizing)
`public Number` | `getBrowserViewportScrollLeft()`
`public Number` | `getBrowserViewportScrollTop()`
`public Object` | `getMaxConnectionsPerDomain()` Gets the maximum number of simultaneous connections allowed per domain by the client
`public Object` | `getModifierDisplayName(Object modifier)` Returns the appropriate platform-specific translated display name for a AdfKeyStroke modifier.
`static String` | `__getSpecificAgentClassName(Object userAgent, Object version)` Returns the specific agent class name that should be instantiated for this user agent string.
`static Boolean` | `__getSupported(Object userAgent, Object version)` Checks if this browser is supported.
`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
`protected Object` | `Init(Object version, Object domWindow)` Initializes the instance.
`protected Object` | `InitClass()`
`public Boolean` | `isSessionStorageEnabled()` Returns false if Private Browsing is on or if sessionStorage was inaccessible; true otherwise.
`public Object` | `slice(Object file, Object startByte, Object stopByte)` For agents which support the File API, slices the File.

### Methods inherited from oracle.adf.view.js.agent.AdfAgent
`addBubbleEventListener, addEventBubbles, addEventCaptures, addKeyEventListener, addOption, addResizeListener, allElementsRemoved, atLeast, autoCompleteForm, beginDirtyStateTracking, checkMouseOutEvent, clearSubtreeIds, cloneNode, CopyDragSize, copyEvent, copyStyle, createContextMenuEventGenerator, createDefaultLogWriter, createDraggableNode, createStyle, createXmlDocument, createXMLHttpRequest, disableBrowserContextMenu, disableSelectionToggleOnEditableCell, dispatchEvent, eatEvent, eatEventCallback, elementFromPagePoint, elementsAdded, elementsRemoved, endDirtyStateTracking, endDocumentKeyEventCapture, forceCursorChange, getAgent, getAgentClassNameFromAgentString, getAttribute, getAttributeName, getBooleanAttribute, getCapabilities, getComponentEvent, getComputedStyle, getCSS2Cursor, getCSSLengthAsInt, GetCssToDomPropertyNameMap, getCursor, getDescendantComponentsForNode, getDomDocument, getDomForCSSPropertyName, getDomWindow, getElementById, getElementLeft, getElementPageBounds, getElementPosition, getElementsByName, getElementTop, getEventFromElement, getEventTarget, getEventToElement, getExpandoProperty, getFormElement, getIntAttribute, getKeyCode, getLocalName, getMousePosition, getNodeName, getNodeType, getNodeXml, getOrigin, getOS, getOuterHeight, getOuterWidth, getOverrideStyle, getPlatform, getPreferredKeyEventForRepetition, getPrefix, getScrollLeft, getSessionStorageProperty, getStyleProperty, getTableRow, getTableRowCells, getTableRows, getTextContent, GetTouchCapability, getVersion, getWindowClientHeight, getWindowClientWidth, getWindowHeight, getWindowWidth, guessOS, guessVersion, hasAttribute, installKeyboardBlocker, isAttributeSpecified, isChromeEvent, isClipped, IsComputedWidthAuto, isDefaultPrevented, isDirty, isDisabledOptionSupported, isDragPrepEvent, isElementHTML, isEqualIcon, isEventInElement, isFunctionKey, isInlineDialogRepositioningOnScroll, isKeyboardEvent, isLeftButton, isLeftButtonClick, isMouseEvent, isSelectionToggle, isTouchFirstDevice, mapNativeToComponentEventType, modifyIdsInDomSubTree, parseXML, pointInElementBounds, pointInElementChrome, pointInElementOrChildBounds, prepareStretchedChild, preventDefault, preventDefaultCallback, removeBubbleEventListener, removeEventBubbles, removeEventCaptures, removeIdsFromDomSubTree, removeKeyEventListener, removeResizeListener, removeSessionStorageProperty, removeStyleProperty, replaceNode, repositionStretchedElement, resizeStretchedChild, resizeStretchedElement, scrollToPos, setAttribute, setButtonTextContent, setCssFloat, setCursor, setDirty, setExpandoProperty, setImageSource, setImageTooltip, setInstance, setOpacity, setOuterHeight, setOuterMaxHeight, setOuterMaxWidth, setOuterWidth, setScrollLeft, setSessionStorageProperty, setTableRowHeight, setTextContent, showBusyCursor, showTooltip, startDocumentKeyEventCapture, startMouseEventCapture, stopMouseEventCapture, stopPropagation, supportsTransientStyleClasses, toISOString`

### 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

### _MODIFIER_DISPLAY_NAMES

`private static Object _MODIFIER_DISPLAY_NAMES`
  Overrides:
    `AdfAgent._MODIFIER_DISPLAY_NAMES`

## Constructor Detail

### AdfSafariAgent

`public AdfSafariAgent(Object version,
Object domWindow)`
  SafariAdfAgent AdfAgent capabilities.
  Parameters:

    `version` |  |
    `domWindow` |  |

## Method Detail

### cloneEvent

`public Event cloneEvent(Event event,
HTMLElement newTarget)`
  Clones an event from an existing event for a new target element. This API designed for code that needs to remember the original event object and does not support creating events for dispatch.
  Parameters:

    `event` | - | the event to clone the new event from
    `newTarget` | - | the new event target

  Return:
    `Event` - the newly cloned event
  Overrides:
    `AdfAgent.cloneEvent(Event, HTMLElement)`

### CreateDefaultLogWriter

`protected Object CreateDefaultLogWriter(Object nativeLogWriter)`
  Creates and returns the default AdfLogWriter to use for this AdfPage. Subclassers should override CreateDefaultLogWriter instead
  Parameters:

    `nativeLogWriter` |  |

  Return:
    `Object`
  Overrides:
    `AdfAgent.createDefaultLogWriter()`

### CreateNativeLogWriter

`protected Object CreateNativeLogWriter()`
  Override to return an AdfLogWriter that writes to the developer tools console
  Return:
    `Object`
  Overrides:
    `AdfAgent.CreateNativeLogWriter()`

### createTouchMoveManager

`public Object createTouchMoveManager(Object element,
Object handlerCallback,
Object touchCount)`
  Constructs a manager for handling touch movements. This manager does nothing for user agents that do not support touch movements.
  Parameters:

    `element` |  |
    `handlerCallback` |  |
    `touchCount` |  |

  Return:
    `Object`
  Overrides:
    `AdfAgent.createTouchMoveManager(HTMLElement, Function, Number)`

### CreateUIInputEvent

`protected Object CreateUIInputEvent(Object component,
Object type,
Object nativeEvent)`
  Parameters:

    `component` |  |
    `type` |  |
    `nativeEvent` |  |

  Return:
    `Object`
  Overrides:
    `AdfAgent.CreateUIInputEvent(Object, Object, Object)`

### disableUserSelect

`public Object disableUserSelect(Object element)`
  Disable the user's ability to select text in this component
  Parameters:

    `element` |  |

  Return:
    `Object`
  Overrides:
    `AdfAgent.disableUserSelect(Object)`

### enableUserSelect

`public Object enableUserSelect(Object element)`
  Enable the user's ability to select text in this component
  Parameters:

    `element` |  |

  Return:
    `Object`
  Overrides:
    `AdfAgent.enableUserSelect(Object)`

### execScript

`public Object execScript(Window ownerWindow,
String scriptText)`
  Executes a script.
  Parameters:

    `ownerWindow` | - | the DOM Window
    `scriptText` | - | the script text

  Return:
    `Object`
  Overrides:
    `AdfAgent.execScript(Object, Object)`

### __getAgentVersion

`static Object __getAgentVersion(Object userAgent)`
  Checks the user agent string returning the current browser version.
  Parameters:

    `userAgent` |  |

  Return:
    `Object`
  Overrides:
    `AdfAgent.__getAgentVersion(Object)`

### getBoxSizing

`public String getBoxSizing(HTMLElement element,
CSSStyleDeclaration currentStyle)`
  Returns the box model associated with an element (http://www.w3.org/TR/css3-ui/#box-sizing)
  Parameters:

    `element` | - | The element to check
    `currentStyle` | - | the current style that can be optionally passed in Default value = null

  Return:
    `String` - the box sizing, either "content-box" or "border-box"
  Overrides:
    `AdfAgent.getBoxSizing(HTMLElement, CSSStyleDeclaration)`

### getBrowserViewportScrollLeft

`public Number getBrowserViewportScrollLeft()`
  Return:
    `Number` - returns the starting position on the canvas of the viewport
  Overrides:
    `AdfAgent.getBrowserViewportScrollLeft()`

### getBrowserViewportScrollTop

`public Number getBrowserViewportScrollTop()`
  Return:
    `Number` - returns the top position on the canvas the viewport begins
  Overrides:
    `AdfAgent.getBrowserViewportScrollTop()`

### getMaxConnectionsPerDomain

`public Object getMaxConnectionsPerDomain()`
  Gets the maximum number of simultaneous connections allowed per domain by the client
  Return:
    `Object`
  Overrides:
    `AdfAgent.getMaxConnectionsPerDomain()`

### getModifierDisplayName

`public Object getModifierDisplayName(Object modifier)`
  Returns the appropriate platform-specific translated display name for a AdfKeyStroke modifier.
  Parameters:

    `modifier` |  |

  Return:
    `Object`
  Overrides:
    `AdfAgent.getModifierDisplayName(Object)`

### __getSpecificAgentClassName

`static String __getSpecificAgentClassName(Object userAgent,
Object version)`
  Returns the specific agent class name that should be instantiated for this user agent string.
  Parameters:

    `userAgent` |  |
    `version` |  |

  Return:
    `String` - specific agent class to be instantiated
  Overrides:
    `AdfAgent.__getSpecificAgentClassName(Object, Object)`

### __getSupported

`static Boolean __getSupported(Object userAgent,
Object version)`
  Checks if this browser is supported.
  Parameters:

    `userAgent` |  |
    `version` |  |

  Return:
    `Boolean` - supported
  Overrides:
    `AdfAgent.__getSupported(Object, Object)`

### getWindowScrollHeight

`public Number getWindowScrollHeight(Window domWindow)`
  Returns the scroll (or canvas) height of the DOM window Object
  Parameters:

    `domWindow` |  |

  Return:
    `Number` - null
  Overrides:
    `AdfAgent.getWindowScrollHeight(Window)`

### getWindowScrollWidth

`public Number getWindowScrollWidth(Window domWindow)`
  Returns the scroll (or canvas) width of the DOM window Object
  Parameters:

    `domWindow` |  |

  Return:
    `Number` - null
  Overrides:
    `AdfAgent.getWindowScrollWidth(Window)`

### Init

`protected Object Init(Object version,
Object domWindow)`
  Initializes the instance. Subclasses of AdfObject must call their superclass' Init
  Parameters:

    `version` |  |
    `domWindow` |  |

  Return:
    `Object`
  Overrides:
    `AdfObject.Init()`

### InitClass

`protected Object InitClass()`
  Return:
    `Object`
  Overrides:
    `AdfAgent.InitClass()`

### isSessionStorageEnabled

`public Boolean isSessionStorageEnabled()`
  Returns false if Private Browsing is on or if sessionStorage was inaccessible; true otherwise.
  Return:
    `Boolean` - null
  Overrides:
    `AdfAgent.isSessionStorageEnabled(Object)`

### slice

`public Object slice(Object file,
Object startByte,
Object stopByte)`
  For agents which support the File API, slices the File. If slice is not supported then returns undefined.
  Parameters:

    `file` |  |
    `startByte` |  |
    `stopByte` |  |

  Return:
    `Object`
  Overrides:
    `AdfAgent.slice(File, Number, Number)`

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

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81451-01
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |

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