# 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.laf.dhtml.internalWindow
Class AdfAbstractFloatingElement

## 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.adfinternal.view.js.laf.dhtml.internalWindow.AdfAbstractFloatingElement

Direct Known Subclasses:
  AdfDhtmlPopupWindow, AdfDhtmlTooltip

    public class AdfAbstractFloatingElement
    extends AdfObject

AbstractFloatingElement

## Field Summary
`private Object` | `_alignElement`
`private Object` | `_alignPosition`
`private Object` | `_floatingType`
`private Object` | `_rootElement`
`private Object` | `_shadowAnchor`

### Fields inherited from oracle.adf.view.js.base.AdfObject
`constructor, superclass`

### Fields inherited from org.ecmascript.object.Object
`prototype`

## Constructor Summary
`public` | `AdfAbstractFloatingElement(Object floatingType)` AbstractFloatingElement

## Method Summary
`public Object` | `cancel()` Dismisses the floating element indicating an awkward state or unexpected state.
`protected Object` | `CreateTable(Object rows, Object cols)` _createTable creates a table with certain amount of rows and cols
`public Object` | `destroy()`
`public HTMLElement` | `getAlignElement()`
`public Object` | `getAlignPosition()`
`public Object` | `getElement()`
`protected String` | `GetFirstFormId()`
`protected String` | `GetFloatingType()`
`public Object` | `getHeight()`
`public Object` | `getLeft()`
`public Object` | `getShadowAnchor()`
`public Object` | `getTop()`
`public Object` | `getWidth()`
`public Object` | `hide()` Gracefully dismisses the floating element.
`protected boolean` | `ImmediateZorderRegistration()` Determines if the target element should be registered immediately with the zorder manager upon its mutator getting called.
`protected Object` | `Init(Object floatingType)` Initializes the instance.
`public Object` | `isPreventScrollOnClose()`
`public Object` | `raiseToFront()`
`public Object` | `setAlignElement(HTMLElement alignElement)` Captures the align element the floating element should algin with.
`public Object` | `setAlignPosition(Object pos)`
`public Object` | `setElement(Object element)`
`public Object` | `setLeft(Object position)`
`public Object` | `setPosition(Object positionTop, Object positionLeft)`
`public Object` | `setPreventScrollOnClose(Object option)`
`public Object` | `setShadowAnchor(Object el)`
`public Object` | `setTop(Object position)`
`public Object` | `show()`

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

### _alignElement

`private Object _alignElement`

### _alignPosition

`private Object _alignPosition`

### _floatingType

`private Object _floatingType`

### _rootElement

`private Object _rootElement`

### _shadowAnchor

`private Object _shadowAnchor`

## Constructor Detail

### AdfAbstractFloatingElement

`public AdfAbstractFloatingElement(Object floatingType)`
  AbstractFloatingElement
  Parameters:

    `floatingType` |  |

## Method Detail

### cancel

`public Object cancel()`
  Dismisses the floating element indicating an awkward state or unexpected state.
  Return:
    `Object`

### CreateTable

`protected Object CreateTable(Object rows,
Object cols)`
  _createTable creates a table with certain amount of rows and cols
  Parameters:

    `rows` |  |
    `cols` |  |

  Return:
    `Object`

### destroy

`public Object destroy()`
  Return:
    `Object`

### getAlignElement

`public HTMLElement getAlignElement()`
  Return:
    `HTMLElement` - the anchor used to position the floating element

### getAlignPosition

`public Object getAlignPosition()`
  Return:
    `Object`

### getElement

`public Object getElement()`
  Return:
    `Object`

### GetFirstFormId

`protected String GetFirstFormId()`
  Return:
    `String` - id of the first form element in the document; otherwise, a null value is return

### GetFloatingType

`protected String GetFloatingType()`
  Return:
    `String` - Mnemonic that determines how the `AdfDhtmlZOrderManager` will manage zindex layering. The value corresponds to a container.

### getHeight

`public Object getHeight()`
  Return:
    `Object`

### getLeft

`public Object getLeft()`
  Return:
    `Object`

### getShadowAnchor

`public Object getShadowAnchor()`
  Return:
    `Object`

### getTop

`public Object getTop()`
  Return:
    `Object`

### getWidth

`public Object getWidth()`
  Return:
    `Object`

### hide

`public Object hide()`
  Gracefully dismisses the floating element.
  Return:
    `Object`

### ImmediateZorderRegistration

`protected boolean ImmediateZorderRegistration()`
  Determines if the target element should be registered immediately with the zorder manager upon its mutator getting called. The significance is when the popup needs to be located under the form element that is the parent of the target popup component. Subclass will need to override this switch in order to alter the timing for registration with the zorder manager.
  Return:
    `boolean` - base will always return `true`
  See also:
    `setElement(Object)`
    `AdfDhtmlZOrderManager.addElementToLayer(HTMLElement, String, HTMLElement, String)`

### Init

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

    `floatingType` |  |

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

### isPreventScrollOnClose

`public Object isPreventScrollOnClose()`
  Return:
    `Object`

### raiseToFront

`public Object raiseToFront()`
  Return:
    `Object`

### setAlignElement

`public Object setAlignElement(HTMLElement alignElement)`
  Captures the align element the floating element should algin with.
  Parameters:

    `alignElement` | - | anchor use to position the floating element

  Return:
    `Object`

### setAlignPosition

`public Object setAlignPosition(Object pos)`
  Parameters:

    `pos` |  |

  Return:
    `Object`

### setElement

`public Object setElement(Object element)`
  Parameters:

    `element` |  |

  Return:
    `Object`

### setLeft

`public Object setLeft(Object position)`
  Parameters:

    `position` |  |

  Return:
    `Object`

### setPosition

`public Object setPosition(Object positionTop,
Object positionLeft)`
  Parameters:

    `positionTop` |  |
    `positionLeft` |  |

  Return:
    `Object`

### setPreventScrollOnClose

`public Object setPreventScrollOnClose(Object option)`
  Parameters:

    `option` |  |

  Return:
    `Object`

### setShadowAnchor

`public Object setShadowAnchor(Object el)`
  Parameters:

    `el` |  |

  Return:
    `Object`

### setTop

`public Object setTop(Object position)`
  Parameters:

    `position` |  |

  Return:
    `Object`

### show

`public Object show()`
  Return:
    `Object`

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.