# 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.adf.view.js.base
Class AdfObject

    org.ecmascript.object.Object
       |
       +--oracle.adf.view.js.base.AdfObject

Direct Known Subclasses:
  AdfAbstractFloatingElement, AdfAgent, AdfAgentHelper, AdfAutoDismissalManager, AdfAutomationHelper, AdfBaseEvent, AdfCalendarActivity, AdfClientBehavior, AdfConveyorBeltSupport, AdfDataFlavor, AdfDataTransferRequest, AdfDataTransferRequestEvent, AdfDataTransferService, AdfDeckSwipeManager, AdfDhtmlActiveData, AdfDhtmlActiveDataSupport, AdfDhtmlChooseDateLayoutPanel, AdfDhtmlDialogManager, AdfDhtmlElementAnimator, AdfDhtmlModalityManager, AdfDhtmlMultipartUpload, AdfDhtmlPageProcessingIndicator, AdfDhtmlPopupWindowFactory, AdfDhtmlPositionManager, AdfDhtmlRichDialogService, AdfDhtmlShadowDecorator, AdfDhtmlTestEngine, AdfDhtmlTooltipManager, AdfDhtmlZOrderLayer, AdfDhtmlZOrderManager, AdfDirtyStateService, AdfDnDContext, AdfDragRecognizer, AdfDragRecognizer, AdfDragRecognizerPrepContext, AdfDragSource, AdfDropTarget, AdfEditingAgent, AdfFacesMessage, AdfFileUploadManager, AdfIFrameDataTransferRequestEvent, AdfInputSearchMruCache, AdfInputSearchScoreUtils, AdfInputSearchScrollManager, AdfInputSearchScrollManager, AdfKeyStroke, AdfLoadableScript, AdfLocaleContext, AdfLogger, AdfLogWriter, AdfLookAndFeel, AdfMarker, AdfMarshalingService, AdfMenuUtils, AdfMessageUtils, AdfNavigationHistoryAgent, AdfNavigationUtils, AdfOverflowSupport, AdfPage, AdfPreferredSuggestionsManager, AdfRangeValue, AdfRepositionable, AdfResizeTrackManager, AdfRestDataService, AdfRestRequestQueueManager, AdfRestXhrFactory, AdfRichInlineEditor, AdfRichTextEditorBehaviorManager, AdfScriptLoadingService, AdfSelectItem, AdfSequencedSections, AdfServerEventQueue, AdfSessionTimeoutHelper, AdfSuggestionMapInterface, AdfSuggestionsContainer, AdfSuggestionsPanel, AdfSvgCacheManager, AdfSvgInMemoryCache, AdfSwipeSupport, AdfTableUtils, AdfToolbarPanel, AdfToolbarUtils, AdfTouchContextMenuManager, AdfTouchMoveManager, AdfTransferable, AdfTreeUtils, AdfUIComponent, AdfUIPeer, AdfUserActivityInfo, AdfUserInactivityTimeoutHelper, AdfXhrPoolManager, AdfXMLRequest

    public class AdfObject
    extends Object

Base class of all ADF Objects.

To create a subclass of another AdfObject, use AdfObject.createSubclass. The subclass can specify class-level initialization by implementing an `InitClass()` method on its constructor. `InitClass` is guaranteed to be called only once per class. Further, a class' `InitClass` method is guranteed to be called only after its superclass' class initialization has been called. When `InitClass` is called, `this` is the class' constructor. This allows class initialization implementations to be shared in some cases.

## Field Summary
`public Object` | `constructor` The function that created the object.
`private static Object` | `_GET_FUNCTION_NAME_REGEXP`
`public static Object` | `superclass`

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

## Constructor Summary
`public` | `AdfObject()` Base class of all ADF Objects.

## Method Summary
`public Object` | `adopt(Object theRawObject)` Adopt the properties of another object as our own
`private static Object` | `_applyFunctionProperties(Object target, Object className)` Apply class and function name properties to the functions of an Object.
`private static Object` | `_applyRenamesFromChain(Object currClass, Object superclass, Object immediateSuperclass)`
`private static Object` | `_applyRenamesToSubclass(Object currClass)` Used to ensure that public nad protected API methods renamed by Closure Compiler in advanced mode can be overridden by this subclass, and can be called from both inside and outside of the framework.
`public Object` | `clone()` Returns a clone of this object.
`public Object` | `createCallback(Object func)` Creates a function instance that will callback the passed in function with the current "this".
`public static Object` | `createInitializedObject()` Convenience function for creating an Object initialized with key values pairs as alternating parameters.
`public static Object` | `createSubclass(Function extendingClass, Function baseClass, Object typeName, Object classInitializationState)` Factory method for creating a subclass of the specified baseClass
`public static Object` | `ensureClassInitialization(Function clazz)` Ensures that a class is initialized.
`public Object` | `equals(Object object)` Indicates whether some other AdfObject is "equal to" this one.
`public static Object` | `exportPrototypeSymbol(string name, Object valueMapping)` Delegates to goog.export() for exporting a symbol with Closure compiler, while recoreding a map of the renamed names to an original names and a map of original names to the renamed names
`public Object` | `getClass(Object otherInstance)`
`protected Object` | `GetLazyArrayProperty(Object propName, Object createIfNonexistent, Object otherInstance)` Returns the specified array property.
`protected Object` | `GetLazyMapProperty(Object propName, Object createIfNonexistent, Object otherInstance)` Returns the specified Map property.
`public String` | `getTypeName()` Returns the type name for this instance
`public static String` | `getTypeName(Object clazz)` Returns the type name for a class derived from AdfObject
`protected Object` | `Init()` Initializes the instance.
`private static Object` | `_initClasses(Object currClass)` Perform any class-level initializtion.
`private static Object` | `_isPrototypePropertyLocallySet(Object currClassPrototype, Object superclassPrototype, Object prop)`
`private static Object` | `_tempSubclassConstructor()` Temporary constructor used to assign the correct prototype to subclasses
`public Object` | `toDebugString()`
`public Object` | `toString()`

## Field Detail

### constructor

`public Object constructor`
  The function that created the object.
  Overrides:
    `Object.constructor`

### _GET_FUNCTION_NAME_REGEXP

`private static Object _GET_FUNCTION_NAME_REGEXP`

### superclass

`public static Object superclass`

## Constructor Detail

### AdfObject

`public AdfObject()`
  Base class of all ADF Objects.

  To create a subclass of another AdfObject, use AdfObject.createSubclass. The subclass can specify class-level initialization by implementing an `InitClass()` method on its constructor. `InitClass` is guaranteed to be called only once per class. Further, a class' `InitClass` method is guranteed to be called only after its superclass' class initialization has been called. When `InitClass` is called, `this` is the class' constructor. This allows class initialization implementations to be shared in some cases.

## Method Detail

### adopt

`public Object adopt(Object theRawObject)`
  Adopt the properties of another object as our own
  Parameters:

    `theRawObject` |  |

  Return:
    `Object`

### _applyFunctionProperties

`private static Object _applyFunctionProperties(Object target,
Object className)`
  Apply class and function name properties to the functions of an Object. This is used to set up the functions so that we can get accurate stack traces.
  Parameters:

    `target` |  |
    `className` |  |

  Return:
    `Object`

### _applyRenamesFromChain

`private static Object _applyRenamesFromChain(Object currClass,
Object superclass,
Object immediateSuperclass)`
  Parameters:

    `currClass` |  |
    `superclass` |  |
    `immediateSuperclass` |  |

  Return:
    `Object`

### _applyRenamesToSubclass

`private static Object _applyRenamesToSubclass(Object currClass)`
  Used to ensure that public nad protected API methods renamed by Closure Compiler in advanced mode can be overridden by this subclass, and can be called from both inside and outside of the framework. This means that each method renamed in a superclass has to be available by both its short (renamed) name and the original name in the current class
  Parameters:

    `currClass` |  |

  Return:
    `Object`

### clone

`public Object clone()`
  Returns a clone of this object. The default implementation is a shallow copy. Subclassers can override this method to implement a deep copy.
  Return:
    `Object`

### createCallback

`public Object createCallback(Object func)`
  Creates a function instance that will callback the passed in function with the current "this". This is extremely useful for creating callbacks
  Parameters:

    `func` |  |

  Return:
    `Object`

### createInitializedObject

`public static Object createInitializedObject()`
  Convenience function for creating an Object initialized with key values pairs as alternating parameters. All off the even parameters must be keys represented as Strings, with the odd parameters, their values.
  Return:
    `Object`

### createSubclass

`public static Object createSubclass(Function extendingClass,
Function baseClass,
Object typeName,
Object classInitializationState)`
  Factory method for creating a subclass of the specified baseClass
  Parameters:

    `extendingClass` | - | The class to extend from the base class
    `baseClass` | - | class to make the superclass of extendingClass
    `typeName` |  |
    `classInitializationState` | - | Class initialization parameter to pass to class initializer Default value = undefined

  Return:
    `Object`

### ensureClassInitialization

`public static Object ensureClassInitialization(Function clazz)`
  Ensures that a class is initialized. Although class initialization occurs by default the first time that an instance of a class is created, classes that use static factory methods to create their instances (e.g. AdfKeyStroke) may still need to ensure that their class has been initialized when the factory method is called.
  Parameters:

    `clazz` | - | The class to ensure initialization of

  Return:
    `Object`

### equals

`public Object equals(Object object)`
  Indicates whether some other AdfObject is "equal to" this one. Method is equivalent to java ".equals()" method.
  Parameters:

    `object` |  |

  Return:
    `Object`

### exportPrototypeSymbol

`public static Object exportPrototypeSymbol(string name,
Object valueMapping)`
  Delegates to goog.export() for exporting a symbol with Closure compiler, while recoreding a map of the renamed names to an original names and a map of original names to the renamed names
  Parameters:

    `name` | - | of the property ('CCCC.prototype.FFFF' is expected)
    `valueMapping` |  |

  Return:
    `Object`

### getClass

`public Object getClass(Object otherInstance)`
  Parameters:

    `otherInstance` |  |

  Return:
    `Object`

### GetLazyArrayProperty

`protected Object GetLazyArrayProperty(Object propName,
Object createIfNonexistent,
Object otherInstance)`
  Returns the specified array property. If createIfNonexistent is true and the property doesn't exist, it will be created, and returned.
  Parameters:

    `propName` |  |
    `createIfNonexistent` |  |
    `otherInstance` |  |

  Return:
    `Object`

### GetLazyMapProperty

`protected Object GetLazyMapProperty(Object propName,
Object createIfNonexistent,
Object otherInstance)`
  Returns the specified Map property. If createIfNonexistent is true and the property doesn't exist, an empty Object will be created, and returned.
  Parameters:

    `propName` |  |
    `createIfNonexistent` |  |
    `otherInstance` |  |

  Return:
    `Object`

### getTypeName

`public String getTypeName()`
  Returns the type name for this instance
  Return:
    `String` - name of the Class

### getTypeName

`public static String getTypeName(Object clazz)`
  Returns the type name for a class derived from AdfObject
  Parameters:

    `clazz` |  |

  Return:
    `String` - name of the Class

### Init

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

### _initClasses

`private static Object _initClasses(Object currClass)`
  Perform any class-level initializtion. Uninitialize superclasses will be initialized before their subclasses
  Parameters:

    `currClass` |  |

  Return:
    `Object`

### _isPrototypePropertyLocallySet

`private static Object _isPrototypePropertyLocallySet(Object currClassPrototype,
Object superclassPrototype,
Object prop)`
  Parameters:

    `currClassPrototype` |  |
    `superclassPrototype` |  |
    `prop` |  |

  Return:
    `Object`

### _tempSubclassConstructor

`private static Object _tempSubclassConstructor()`
  Temporary constructor used to assign the correct prototype to subclasses
  Return:
    `Object`

### toDebugString

`public Object toDebugString()`
  Return:
    `Object`

### toString

`public Object toString()`
  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.