-
<static> createInitializedObject(args) → {Object}
-
Convenience function for creating an Object initialized with key values pairs
as alternating parameters. All of the even parameters must be keys
represented as Strings, with the odd parameters, their values.
Parameters:
Name |
Type |
Description |
args |
Object
|
a series of key and value pairs |
Returns:
the new object
-
Type
-
Object
-
<static> createSubclass(extendingClass, baseClass, typeName, classInitializationState)
-
Factory method for creating a subclass of the specified baseClass
Parameters:
Name |
Type |
Description |
extendingClass |
function
|
The class to extend from the base class |
baseClass |
function
|
class to make the superclass of extendingClass |
typeName |
string
|
undefined
|
The type name to use for new class. If not specified, the typeName will be
extracted from the baseClass's function if possible |
classInitializationState |
Object
|
undefined
|
Class initialization parameter to pass to class initializer |
-
<static> ensureClassInitialization(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:
Name |
Type |
Description |
clazz |
function
|
The class to ensure initialization of |
-
<static> exportPrototypeSymbol(name, 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 |
Type |
Description |
name |
string
|
the name of the property ('CCCC.prototype.FFFF' is expected) |
valueMapping |
Object
|
a name-value pair, where tke key is the renamed name (renamed FFFF),
and the value is the refernce to the member function whose name was exported |
-
<static> getTypeName(clazz) → {string}
-
Returns the type name for a class derived from adf.mf.api.AdfObject
Parameters:
Name |
Type |
Description |
clazz |
function
|
Class to get the name of |
Returns:
name of the Class
-
Type
-
string
-
adopt(theRawObject)
-
Adopt the properties of another object as our own.
Parameters:
Name |
Type |
Description |
theRawObject |
Object
|
the other object |
-
clone() → {Object}
-
Returns a clone of this object. The default implementation is a shallow
copy. Subclassers can override this method to implement a deep copy.
Returns:
a new shallow copy of this object
-
Type
-
Object
-
createCallback(func) → {function}
-
Creates a function instance that will call back the passed in function
with the current "this". This is extremely useful for creating callbacks.
Parameters:
Name |
Type |
Description |
func |
function
|
the function to proxy |
Returns:
the proxied function
-
Type
-
function
-
equals(object) → {boolean}
-
Indicates whether some other adf.mf.api.AdfObject is "equal to" this one.
Method is equivalent to java ".equals()" method.
Parameters:
Name |
Type |
Description |
object |
Object
|
the object to compare with |
Returns:
whether the objects are "equal"
-
Type
-
boolean
-
getClass(otherInstance) → {Object}
-
Get the class for an object.
Parameters:
Name |
Type |
Description |
otherInstance |
Object
|
optional other object to use |
Returns:
the class of or null if the class cannot be found
-
Type
-
Object
-
getTypeName() → {String}
-
Returns the type name for this instance
Returns:
name of the Class
-
Type
-
String
-
toDebugString() → {String}
-
Get a debug string representation of this object instance.
It is not guaranteed to be unique or of a standard format.
Returns:
a debug string representation of this object instance
-
Type
-
String
-
toString() → {String}
-
Get a string representation of this object instance.
It is not guaranteed to be unique or interesting.
Returns:
a string representation of this object instance
-
Type
-
String