JavaScript API Reference for Oracle ADF Faces
|
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 | ||||||||
org.ecmascript.object.Object | +--oracle.adfinternal.view.js.bootstrap.goog
protected class goog extends Object
Field Summary |
|
|---|---|
public static {string} |
|
public static Object |
|
private static {Object} |
|
private static {?boolean} |
|
public static Object |
|
public static Object |
|
private static {Object} |
|
private static {Object} |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static {Array|NodeList} / goog.ArrayLike = goog.typedef;
will tell JSCompiler to replace all appearances of goog.ArrayLike in type
definitions with the union of Array and NodeList.
Does nothing in uncompiled code. |
|
private static {string} |
|
private static {number} |
|
Fields inherited from org.ecmascript.object.Object |
constructor, prototype |
Constructor Summary |
|
|---|---|
public |
|
Method Summary |
|
|---|---|
public static Object |
|
public static Object |
|
public static Object |
|
public static * |
|
public static !Function |
|
private static !Function |
|
private static !Function |
|
public static * |
|
private static Object |
|
public static Object |
|
public static Object |
|
private static Object |
|
public static string |
|
public static string |
|
public static Object |
|
private static ?string |
|
public static number |
|
public static Object |
|
public static Object |
|
public static * |
|
private static Object |
|
public static Object |
|
private static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static boolean |
|
public static Object |
|
public static void |
|
public static !Function |
|
private static boolean |
|
private static boolean |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
public static string |
|
private static Object |
|
private static boolean |
|
Field Detail |
|---|
public static {string} basePathpublic static Object DEBUGprivate static {Object} dependencies_private static {?boolean} evalWorksForGlobals_public static Object getHashCodepublic static Object globalprivate static {Object} implicitNamespaces_private static {Object} included_public static Object LOCALEpublic static Object nowpublic static Object removeHashCodepublic static {Array|NodeList} / goog.ArrayLike = goog.typedef;
will tell JSCompiler to replace all appearances of goog.ArrayLike in type
definitions with the union of Array and NodeList.
Does nothing in uncompiled code. typedefprivate static {string} UID_PROPERTY_private static {number} uidCounter_Constructor Detail |
|---|
public goog()Method Detail |
|---|
public static Object abstractMethod()Objectpublic static Object addDependency(string relPath,
Array provides,
Array requires)relPath | - | The path to the js file. |
provides | - | An array of strings with the names of the objects this file provides. |
requires | - | An array of strings with the names of the objects this file requires. |
Objectpublic static Object addSingletonGetter(!Function ctor)ctor | - | The constructor for the class to add the static method to. |
Objectpublic static * base(!Object me,
*= opt_methodName,
...* var_args)me | - | Should always be "this". |
opt_methodName | - | The method name if calling a super method. |
var_args | - | The rest of the arguments. |
* - The return value of the superclass method.public static !Function bind(Function fn,
Object|undefined selfObj,
...* var_args)partial(Function, ...*).var barMethBound = bind(myFunction, myObj, 'arg1', 'arg2');
barMethBound('arg3', 'arg4');fn | - | A function to partially apply. |
selfObj | - | Specifies the object which |this| should point to when the function is run. If the value is null or undefined, it will default to the global object. |
var_args | - | Additional arguments that are partially applied to the function. |
!Function - A partially-applied form of the function bind() was
invoked as a method of.private static !Function bindJs_(Function fn,
Object|undefined selfObj,
...* var_args)fn | - | A function to partially apply. |
selfObj | - | Specifies the object which |this| should point to when the function is run. If the value is null or undefined, it will default to the global object. |
var_args | - | Additional arguments that are partially applied to the function. |
!Function - A partially-applied form of the function bind() was
invoked as a method of.private static !Function bindNative_(Function fn,
Object|undefined selfObj,
...* var_args)fn | - | A function to partially apply. |
selfObj | - | Specifies the object which |this| should point to when the function is run. If the value is null or undefined, it will default to the global object. |
var_args | - | Additional arguments that are partially applied to the function. |
!Function - A partially-applied form of the function bind() was
invoked as a method of.public static * cloneObject(* obj)goog.cloneObject does not detect reference loops. Objects that
refer to themselves will cause infinite recursion.
goog.cloneObject is unaware of unique identifiers, and copies
UIDs created by getUid into cloned results.obj | - | The value to clone. |
* - A clone of the input value.private static Object exportPath_(string name,
*= opt_object,
Object= opt_objectToExportTo)name | - | name of the object that this file defines. |
opt_object | - | the object to expose at the end of the path. |
opt_objectToExportTo | - | The object to add the path to; default is |goog.global|. |
Objectpublic static Object exportProperty(Object object,
string publicName,
* symbol)object | - | Object whose static property is being exported. |
publicName | - | Unobfuscated name to export. |
symbol | - | Object the name should point to. |
Objectpublic static Object exportSymbol(string publicPath,
* object,
Object= opt_objectToExportTo)Also handy for making public items that are defined in anonymous closures. ex. goog.exportSymbol('Foo', Foo); ex. goog.exportSymbol('public.path.Foo.staticFunction', Foo.staticFunction); public.path.Foo.staticFunction(); ex. goog.exportSymbol('public.path.Foo.prototype.myMethod', Foo.prototype.myMethod); new public.path.Foo().myMethod();
publicPath | - | Unobfuscated name to export. |
object | - | Object the name should point to. |
opt_objectToExportTo | - | The object to add the path to; default is |goog.global|. |
Objectprivate static Object findBasePath_()Objectpublic static string getCssName(string className,
string= opt_modifier)className | - | The class name. |
opt_modifier | - | A modifier to be appended to the class name. |
string - The class name or the concatenation of the class name and
the modifier.public static string getMsg(string str,
Object= opt_values)str | - | Translatable string, places holders in the form {$foo}. |
opt_values | - | Map of place holder name to value. |
string - message with placeholders filled.public static Object getObjectByName(string name,
Object= opt_obj)name | - | The fully qualified name. |
opt_obj | - | The object within which to look; default is |goog.global|. |
Object - The object or, if not found, null.private static ?string getPathFromDeps_(string rule)rule | - | In the form goog.namespace.Class or project.script. |
?string - Url corresponding to the rule, or null.public static number getUid(Object obj)obj | - | The object to get the unique ID for. |
number - The unique ID for the object.public static Object globalEval(string script)script | - | JavaScript string. |
Objectpublic static Object globalize(Object obj,
Object= opt_global)obj | - | The namespace to globalize. |
opt_global | - | The object to add the properties to. |
Objectpublic static * identityFunction(...* var_args)var_args | - | The arguments of the function. |
* - The first argument.private static Object importScript_(string src)src | - | Script source. |
Objectpublic static Object inherits(Function childCtor,
Function parentCtor)
function ParentClass(a, b) { }
ParentClass.prototype.foo = function(a) { }
function ChildClass(a, b, c) {
ParentClass.call(this, a, b);
}
goog.inherits(ChildClass, ParentClass);
var child = new ChildClass('a', 'b', 'see');
child.foo(); // works
In addition, a superclass' implementation of a method can be invoked
as follows:
ChildClass.prototype.foo = function(a) {
ChildClass.superClass_.foo.call(this, a);
// other code
};
childCtor | - | Child class. |
parentCtor | - | Parent class. |
Objectprivate static boolean inHtmlDocument_()boolean - True if it looks like HTML document.public static boolean isArray(* val)val | - | Variable to test. |
boolean - Whether variable is an array.public static boolean isArrayLike(* val)val | - | Variable to test. |
boolean - Whether variable is an array.public static boolean isBoolean(* val)val | - | Variable to test. |
boolean - Whether variable is boolean.public static boolean isDateLike(* val)val | - | Variable to test. |
boolean - Whether variable is a like a Date.public static boolean isDef(* val)val | - | Variable to test. |
boolean - Whether variable is defined.public static boolean isDefAndNotNull(* val)val | - | Variable to test. |
boolean - Whether variable is defined and not null.public static boolean isFunction(* val)val | - | Variable to test. |
boolean - Whether variable is a function.public static boolean isNull(* val)val | - | Variable to test. |
boolean - Whether variable is null.public static boolean isNumber(* val)val | - | Variable to test. |
boolean - Whether variable is a number.public static boolean isObject(* val)val | - | Variable to test. |
boolean - Whether variable is an object.public static boolean isString(* val)val | - | Variable to test. |
boolean - Whether variable is a string.public static Object mixin(Object target,
Object source)target | - | Target. |
source | - | Source. |
Objectpublic static void nullFunction()void - Nothing .public static !Function partial(Function fn,
...* var_args)fn | - | A function to partially apply. |
var_args | - | Additional arguments that are partially applied to fn. |
!Function - A partially-applied form of the function bind() was
invoked as a method of.private static boolean propertyIsEnumerable_(Object object,
string propName)object | - | The object to test if the property is enumerable. |
propName | - | The property name to check for. |
boolean - True if the property is enumarable.private static boolean propertyIsEnumerableCustom_(Object object,
string propName)object | - | The object to test if the property is enumerable. |
propName | - | The property name to check for. |
boolean - True if the property is enumarable.public static Object provide(string name)name | - | name of the object that this file defines. |
Objectpublic static Object removeUid(Object obj)obj | - | The object to remove the unique ID field from. |
Objectpublic static Object require(string rule)rule | - | Rule to include, in the form goog.package.part. |
Objectpublic static Object scope(function() fn)fn | - | Function to call. This function can contain aliases to namespaces (e.g. "var dom = goog.dom") or classes (e.g. "var Timer = goog.Timer"). |
Objectpublic static Object setCssNameMapping(!Object mapping,
string= style)
goog.setCssNameMapping({
"goog": "a",
"disabled": "b",
});
var x = goog.getCssName('goog');
// The following evaluates to: "a a-b".
goog.getCssName('goog') + ' ' + goog.getCssName(x, 'disabled')
When declared as a map of string literals to string literals, the JSCompiler
will replace all calls to goog.getCssName() using the supplied map if the
--closure_pass flag is set.mapping | - | A map of strings to strings where keys are possible arguments to goog.getCssName() and values are the corresponding values that should be returned. |
style | - | The style of css name mapping. There are two valid options: 'BY_PART', and 'BY_WHOLE'. |
Objectpublic static Object setTestOnly(string= opt_message)opt_message | - | Optional message to add to the error that's raised when used in production code. |
Objectpublic static string typeOf(* value)value | - | The value to get the type of. |
string - The name of the type.private static Object writeScripts_()Objectprivate static boolean writeScriptTag_(string src)src | - | The script source. |
boolean - True if the script was imported, false otherwise.
|
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 | ||||||||