OracleJavaScript API Reference for Oracle ADF Faces

 

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, AdfAutoDismissalManager, AdfBaseEvent, AdfCalendarActivity, AdfClientBehavior, AdfDataFlavor, AdfDataTransferRequestEvent, AdfDataTransferService, AdfDhtmlActiveDataSupport, AdfDhtmlDialogManager, AdfDhtmlElementAnimator, AdfDhtmlModalityManager, AdfDhtmlPageProcessingIndicator, AdfDhtmlPopupWindowFactory, AdfDhtmlPositionManager, AdfDhtmlPositionManager, AdfDhtmlRichDialogService, AdfDhtmlShadowDecorator, AdfDhtmlShadowDecorator, AdfDhtmlTooltipManager, AdfDhtmlZOrderLayer, AdfDhtmlZOrderManager, AdfDnDContext, AdfDragRecognizer, AdfDragSource, AdfDropTarget, AdfEditingAgent, AdfFacesMessage, AdfIFrameDataTransferRequestEvent, AdfKeyStroke, AdfLocaleContext, AdfLogger, AdfLogWriter, AdfLookAndFeel, AdfMarshalingService, AdfMenuUtils, AdfMessageUtils, AdfNavigationHistoryAgent, AdfOverflowSupport, AdfPage, AdfPollHelper, AdfRangeValue, AdfRepositionable, AdfRichInlineEditor, AdfRichTextEditorBehaviorManager, AdfSelectItem, AdfTableUtils, AdfTouchMoveManager, AdfTransferable, AdfTreeUtils, AdfUIComponent, AdfUIPeer, AdfUserActivityInfo, 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.
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(Object extendingClass, Object baseClass, Object typeName)
Creates a subclass of a 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 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
_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

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(Object extendingClass,
                                    Object baseClass,
                                    Object typeName)

Creates a subclass of a baseClass

Parameters:
extendingClass    
baseClass    
typeName    
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

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

_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

 

Generated on 2010.12.10 19:37 UTC
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.