|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.1.3) E41654-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} basePath
public static Object DEBUG
private static {Object} dependencies_
private static {?boolean} evalWorksForGlobals_
public static Object getHashCode
public static Object global
private static {Object} implicitNamespaces_
private static {Object} included_
public static Object LOCALE
public static Object now
public static Object removeHashCode
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. typedef
private static {string} UID_PROPERTY_
private static {number} uidCounter_
Constructor Detail |
---|
public goog()
Method Detail |
---|
public static Object abstractMethod()
Object
public 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. |
Object
public static Object addSingletonGetter(!Function ctor)
ctor |
- | The constructor for the class to add the static method to. |
Object
public 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|. |
Object
public 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. |
Object
public 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|. |
Object
private static Object findBasePath_()
Object
public 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. |
Object
public static Object globalize(Object obj,
Object= opt_global)
obj |
- | The namespace to globalize. |
opt_global |
- | The object to add the properties to. |
Object
public static * identityFunction(...* var_args)
var_args |
- | The arguments of the function. |
*
- The first argument.private static Object importScript_(string src)
src |
- | Script source. |
Object
public 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(); // worksIn 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. |
Object
private 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. |
Object
public 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. |
Object
public static Object removeUid(Object obj)
obj |
- | The object to remove the unique ID field from. |
Object
public static Object require(string rule)
rule |
- | Rule to include, in the form goog.package.part. |
Object
public 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"). |
Object
public 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'. |
Object
public static Object setTestOnly(string= opt_message)
opt_message |
- | Optional message to add to the error that's raised when used in production code. |
Object
public static string typeOf(* value)
value |
- | The value to get the type of. |
string
- The name of the type.private static Object writeScripts_()
Object
private 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.1.3) E41654-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |