id int32 0 58k | repo stringlengths 5 67 | path stringlengths 4 116 | func_name stringlengths 0 58 | original_string stringlengths 52 373k | language stringclasses 1
value | code stringlengths 52 373k | code_tokens list | docstring stringlengths 4 11.8k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 86 226 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3,900 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | getManifestEntry | function getManifestEntry(oMetadata, oManifest, sKey, bMerged) {
var oData = oManifest.getEntry(sKey);
// merge / extend should only be done for objects or when entry wasn't found
if (oData !== undefined && !isPlainObject(oData)) {
return oData;
}
// merge the configuration of the parent manifest with lo... | javascript | function getManifestEntry(oMetadata, oManifest, sKey, bMerged) {
var oData = oManifest.getEntry(sKey);
// merge / extend should only be done for objects or when entry wasn't found
if (oData !== undefined && !isPlainObject(oData)) {
return oData;
}
// merge the configuration of the parent manifest with lo... | [
"function",
"getManifestEntry",
"(",
"oMetadata",
",",
"oManifest",
",",
"sKey",
",",
"bMerged",
")",
"{",
"var",
"oData",
"=",
"oManifest",
".",
"getEntry",
"(",
"sKey",
")",
";",
"// merge / extend should only be done for objects or when entry wasn't found",
"if",
"... | Returns the configuration of a manifest section or the value for a
specific path. If no section or key is specified, the return value is null.
@param {sap.ui.core.ComponentMetadata} oMetadata the Component metadata
@param {sap.ui.core.Manifest} oManifest the manifest
@param {string} sKey Either the manifest section na... | [
"Returns",
"the",
"configuration",
"of",
"a",
"manifest",
"section",
"or",
"the",
"value",
"for",
"a",
"specific",
"path",
".",
"If",
"no",
"section",
"or",
"key",
"is",
"specified",
"the",
"return",
"value",
"is",
"null",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L102-L124 |
3,901 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | createMetadataProxy | function createMetadataProxy(oMetadata, oManifest) {
// create a proxy for the metadata object and simulate to be an
// instance of the original metadata object of the Component
// => retrieving the prototype from the original metadata to
// support to proxy sub-classes of ComponentMetadata
var oMetadataP... | javascript | function createMetadataProxy(oMetadata, oManifest) {
// create a proxy for the metadata object and simulate to be an
// instance of the original metadata object of the Component
// => retrieving the prototype from the original metadata to
// support to proxy sub-classes of ComponentMetadata
var oMetadataP... | [
"function",
"createMetadataProxy",
"(",
"oMetadata",
",",
"oManifest",
")",
"{",
"// create a proxy for the metadata object and simulate to be an",
"// instance of the original metadata object of the Component",
"// => retrieving the prototype from the original metadata to",
"// support to ... | Utility function which creates a metadata proxy object for the given
metadata object
@param {sap.ui.core.ComponentMetadata} oMetadata the Component metadata
@param {sap.ui.core.Manifest} oManifest the manifest
@return {sap.ui.core.ComponentMetadata} a metadata proxy object | [
"Utility",
"function",
"which",
"creates",
"a",
"metadata",
"proxy",
"object",
"for",
"the",
"given",
"metadata",
"object"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L134-L170 |
3,902 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | activateServices | function activateServices(oComponent) {
var oServices = oComponent.getManifestEntry("/sap.ui5/services");
for (var sService in oServices) {
if (oServices[sService].lazy === false) {
oComponent.getService(sService);
}
}
} | javascript | function activateServices(oComponent) {
var oServices = oComponent.getManifestEntry("/sap.ui5/services");
for (var sService in oServices) {
if (oServices[sService].lazy === false) {
oComponent.getService(sService);
}
}
} | [
"function",
"activateServices",
"(",
"oComponent",
")",
"{",
"var",
"oServices",
"=",
"oComponent",
".",
"getManifestEntry",
"(",
"\"/sap.ui5/services\"",
")",
";",
"for",
"(",
"var",
"sService",
"in",
"oServices",
")",
"{",
"if",
"(",
"oServices",
"[",
"sServ... | Internal activation function for non lazy services which should be started immediately
@param {sap.ui.core.Component} oComponent The Component instance
@private | [
"Internal",
"activation",
"function",
"for",
"non",
"lazy",
"services",
"which",
"should",
"be",
"started",
"immediately"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L933-L940 |
3,903 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | getPreloadModelConfigsFromManifest | function getPreloadModelConfigsFromManifest(oManifest, oComponentData, mCacheTokens) {
var mModelConfigs = {
afterManifest: {},
afterPreload: {}
};
// deep clone is needed as the mainfest only returns a read-only copy (freezed object)
var oManifestDataSources = jQuery.extend(true, {}, oManifest.getEntry(... | javascript | function getPreloadModelConfigsFromManifest(oManifest, oComponentData, mCacheTokens) {
var mModelConfigs = {
afterManifest: {},
afterPreload: {}
};
// deep clone is needed as the mainfest only returns a read-only copy (freezed object)
var oManifestDataSources = jQuery.extend(true, {}, oManifest.getEntry(... | [
"function",
"getPreloadModelConfigsFromManifest",
"(",
"oManifest",
",",
"oComponentData",
",",
"mCacheTokens",
")",
"{",
"var",
"mModelConfigs",
"=",
"{",
"afterManifest",
":",
"{",
"}",
",",
"afterPreload",
":",
"{",
"}",
"}",
";",
"// deep clone is needed as the ... | Returns two maps of model configurations to be used for the model "preload" feature.
Used within loadComponent to create models during component load.
"afterManifest"
Models that are activated for preload via "preload=true" or URI parameter.
They will be created after the manifest is available.
"afterPreload"
Current... | [
"Returns",
"two",
"maps",
"of",
"model",
"configurations",
"to",
"be",
"used",
"for",
"the",
"model",
"preload",
"feature",
".",
"Used",
"within",
"loadComponent",
"to",
"create",
"models",
"during",
"component",
"load",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L1728-L1789 |
3,904 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | collectLoadManifestPromises | function collectLoadManifestPromises(oMetadata, oManifest) {
// ComponentMetadata classes with a static manifest or with legacy metadata
// do already have a manifest, so no action required
if (!oMetadata._oManifest) {
// TODO: If the "manifest" property is set, the code to load the manifest.json could be ... | javascript | function collectLoadManifestPromises(oMetadata, oManifest) {
// ComponentMetadata classes with a static manifest or with legacy metadata
// do already have a manifest, so no action required
if (!oMetadata._oManifest) {
// TODO: If the "manifest" property is set, the code to load the manifest.json could be ... | [
"function",
"collectLoadManifestPromises",
"(",
"oMetadata",
",",
"oManifest",
")",
"{",
"// ComponentMetadata classes with a static manifest or with legacy metadata",
"// do already have a manifest, so no action required",
"if",
"(",
"!",
"oMetadata",
".",
"_oManifest",
")",
"{",
... | Collects the promises to load the manifest content and all of its parents manifest files.
Gathers promises within aManifestsToLoad.
Gathers associates meta data objects within aMetadataObjects.
@param {object} oMetadata The metadata object
@param {sap.ui.core.Manifest} [oManifest] root manifest, which is possibly alre... | [
"Collects",
"the",
"promises",
"to",
"load",
"the",
"manifest",
"content",
"and",
"all",
"of",
"its",
"parents",
"manifest",
"files",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L1821-L1862 |
3,905 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | function() {
// create a copy of arguments for local modification
// and later handover to Component constructor
var args = Array.prototype.slice.call(arguments);
// inject the manifest to the settings object
var mSettings;
if (args.length === 0 || typeof args[0] === "object") {
mS... | javascript | function() {
// create a copy of arguments for local modification
// and later handover to Component constructor
var args = Array.prototype.slice.call(arguments);
// inject the manifest to the settings object
var mSettings;
if (args.length === 0 || typeof args[0] === "object") {
mS... | [
"function",
"(",
")",
"{",
"// create a copy of arguments for local modification",
"// and later handover to Component constructor",
"var",
"args",
"=",
"Array",
".",
"prototype",
".",
"slice",
".",
"call",
"(",
"arguments",
")",
";",
"// inject the manifest to the settings o... | create the proxy class for passing the manifest | [
"create",
"the",
"proxy",
"class",
"for",
"passing",
"the",
"manifest"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L2496-L2521 | |
3,906 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Component.js | function(oPromise) {
// In order to make the error handling of the Promise.all() happen after all Promises finish, we catch all rejected Promises and make them resolve with an marked object.
oPromise = oPromise.then(
function(v) {
return {
result: v,
rejected: false
};
... | javascript | function(oPromise) {
// In order to make the error handling of the Promise.all() happen after all Promises finish, we catch all rejected Promises and make them resolve with an marked object.
oPromise = oPromise.then(
function(v) {
return {
result: v,
rejected: false
};
... | [
"function",
"(",
"oPromise",
")",
"{",
"// In order to make the error handling of the Promise.all() happen after all Promises finish, we catch all rejected Promises and make them resolve with an marked object.",
"oPromise",
"=",
"oPromise",
".",
"then",
"(",
"function",
"(",
"v",
")",
... | trigger loading of libraries and component preloads and collect the given promises | [
"trigger",
"loading",
"of",
"libraries",
"and",
"component",
"preloads",
"and",
"collect",
"the",
"given",
"promises"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Component.js#L2670-L2687 | |
3,907 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Fragment.js | function(sTemplateName) {
var sUrl = sap.ui.require.toUrl(sTemplateName.replace(/\./g, "/")) + ".fragment.html";
var sHTML = _mHTMLTemplates[sUrl];
var sResourceName;
if (!sHTML) {
sResourceName = sTemplateName.replace(/\./g, "/") + ".fragment.html";
sHTML = LoaderExtensions.loadResource(sResourceN... | javascript | function(sTemplateName) {
var sUrl = sap.ui.require.toUrl(sTemplateName.replace(/\./g, "/")) + ".fragment.html";
var sHTML = _mHTMLTemplates[sUrl];
var sResourceName;
if (!sHTML) {
sResourceName = sTemplateName.replace(/\./g, "/") + ".fragment.html";
sHTML = LoaderExtensions.loadResource(sResourceN... | [
"function",
"(",
"sTemplateName",
")",
"{",
"var",
"sUrl",
"=",
"sap",
".",
"ui",
".",
"require",
".",
"toUrl",
"(",
"sTemplateName",
".",
"replace",
"(",
"/",
"\\.",
"/",
"g",
",",
"\"/\"",
")",
")",
"+",
"\".fragment.html\"",
";",
"var",
"sHTML",
"... | Loads and returns a template for the given template name. Templates are only loaded once.
@param {string} sTemplateName The name of the template
@return {string} the template data
@private | [
"Loads",
"and",
"returns",
"a",
"template",
"for",
"the",
"given",
"template",
"name",
".",
"Templates",
"are",
"only",
"loaded",
"once",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Fragment.js#L759-L773 | |
3,908 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function() {
var sName;
// lazy load of LocaleData to avoid cyclic dependencies
if ( !LocaleData ) {
LocaleData = sap.ui.requireSync("sap/ui/core/LocaleData");
}
if (this.calendarType) {
for (sName in CalendarType) {
if (sName.toLowerCase() === this.calendarType.toLowerCase()) {
this... | javascript | function() {
var sName;
// lazy load of LocaleData to avoid cyclic dependencies
if ( !LocaleData ) {
LocaleData = sap.ui.requireSync("sap/ui/core/LocaleData");
}
if (this.calendarType) {
for (sName in CalendarType) {
if (sName.toLowerCase() === this.calendarType.toLowerCase()) {
this... | [
"function",
"(",
")",
"{",
"var",
"sName",
";",
"// lazy load of LocaleData to avoid cyclic dependencies",
"if",
"(",
"!",
"LocaleData",
")",
"{",
"LocaleData",
"=",
"sap",
".",
"ui",
".",
"requireSync",
"(",
"\"sap/ui/core/LocaleData\"",
")",
";",
"}",
"if",
"(... | Returns the calendar type which is being used in locale dependent functionality.
When it's explicitly set by calling <code>setCalendar</code>, the set calendar type is returned.
Otherwise, the calendar type is determined by checking the format settings and current locale.
@return {sap.ui.core.CalendarType} the curren... | [
"Returns",
"the",
"calendar",
"type",
"which",
"is",
"being",
"used",
"in",
"locale",
"dependent",
"functionality",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L820-L860 | |
3,909 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(sFormatLocale) {
var oFormatLocale = convertToLocaleOrNull(sFormatLocale),
mChanges;
check(sFormatLocale == null || typeof sFormatLocale === "string" && oFormatLocale, "sFormatLocale must be a BCP47 language tag or Java Locale id or null");
if ( toLanguageTag(oFormatLocale) !== toLanguageTag(thi... | javascript | function(sFormatLocale) {
var oFormatLocale = convertToLocaleOrNull(sFormatLocale),
mChanges;
check(sFormatLocale == null || typeof sFormatLocale === "string" && oFormatLocale, "sFormatLocale must be a BCP47 language tag or Java Locale id or null");
if ( toLanguageTag(oFormatLocale) !== toLanguageTag(thi... | [
"function",
"(",
"sFormatLocale",
")",
"{",
"var",
"oFormatLocale",
"=",
"convertToLocaleOrNull",
"(",
"sFormatLocale",
")",
",",
"mChanges",
";",
"check",
"(",
"sFormatLocale",
"==",
"null",
"||",
"typeof",
"sFormatLocale",
"===",
"\"string\"",
"&&",
"oFormatLoca... | Sets a new format locale to be used from now on for retrieving locale
specific formatters. Modifying this setting does not have an impact on
the retrieval of translated texts!
Can either be set to a concrete value (a BCP47 or Java locale compliant
language tag) or to <code>null</code>. When set to <code>null</code> (d... | [
"Sets",
"a",
"new",
"format",
"locale",
"to",
"be",
"used",
"from",
"now",
"on",
"for",
"retrieving",
"locale",
"specific",
"formatters",
".",
"Modifying",
"this",
"setting",
"does",
"not",
"have",
"an",
"impact",
"on",
"the",
"retrieval",
"of",
"translated"... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L921-L934 | |
3,910 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(sAnimationMode) {
checkEnum(Configuration.AnimationMode, sAnimationMode, "animationMode");
// Set the animation to on or off depending on the animation mode to ensure backward compatibility.
this.animation = (sAnimationMode !== Configuration.AnimationMode.minimal && sAnimationMode !== Configuration.A... | javascript | function(sAnimationMode) {
checkEnum(Configuration.AnimationMode, sAnimationMode, "animationMode");
// Set the animation to on or off depending on the animation mode to ensure backward compatibility.
this.animation = (sAnimationMode !== Configuration.AnimationMode.minimal && sAnimationMode !== Configuration.A... | [
"function",
"(",
"sAnimationMode",
")",
"{",
"checkEnum",
"(",
"Configuration",
".",
"AnimationMode",
",",
"sAnimationMode",
",",
"\"animationMode\"",
")",
";",
"// Set the animation to on or off depending on the animation mode to ensure backward compatibility.",
"this",
".",
"... | Sets the current animation mode.
Expects an animation mode as string and validates it. If a wrong animation mode was set, an error is
thrown. If the mode is valid it is set, then the attributes <code>data-sap-ui-animation</code> and
<code>data-sap-ui-animation-mode</code> of the HTML document root element are also upd... | [
"Sets",
"the",
"current",
"animation",
"mode",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1016-L1027 | |
3,911 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(bRTL) {
check(bRTL === null || typeof bRTL === "boolean", "bRTL must be null or a boolean");
var oldRTL = this.getRTL(),
mChanges;
this.rtl = bRTL;
if ( oldRTL != this.getRTL() ) { // also take the derived RTL flag into account for the before/after comparison!
mChanges = this._collect();
... | javascript | function(bRTL) {
check(bRTL === null || typeof bRTL === "boolean", "bRTL must be null or a boolean");
var oldRTL = this.getRTL(),
mChanges;
this.rtl = bRTL;
if ( oldRTL != this.getRTL() ) { // also take the derived RTL flag into account for the before/after comparison!
mChanges = this._collect();
... | [
"function",
"(",
"bRTL",
")",
"{",
"check",
"(",
"bRTL",
"===",
"null",
"||",
"typeof",
"bRTL",
"===",
"\"boolean\"",
",",
"\"bRTL must be null or a boolean\"",
")",
";",
"var",
"oldRTL",
"=",
"this",
".",
"getRTL",
"(",
")",
",",
"mChanges",
";",
"this",
... | Sets the character orientation mode to be used from now on.
Can either be set to a concrete value (true meaning right-to-left,
false meaning left-to-right) or to <code>null</code> which means that
the character orientation mode should be derived from the current
language (incl. region) setting.
After changing the cha... | [
"Sets",
"the",
"character",
"orientation",
"mode",
"to",
"be",
"used",
"from",
"now",
"on",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1071-L1083 | |
3,912 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(mSettings) {
function applyAll(ctx, m) {
var sName, sMethod;
for ( sName in m ) {
sMethod = "set" + sName.slice(0,1).toUpperCase() + sName.slice(1);
if ( sName === 'formatSettings' && ctx.oFormatSettings ) {
applyAll(ctx.oFormatSettings, m[sName]);
} else if ( typeof ctx[sMetho... | javascript | function(mSettings) {
function applyAll(ctx, m) {
var sName, sMethod;
for ( sName in m ) {
sMethod = "set" + sName.slice(0,1).toUpperCase() + sName.slice(1);
if ( sName === 'formatSettings' && ctx.oFormatSettings ) {
applyAll(ctx.oFormatSettings, m[sName]);
} else if ( typeof ctx[sMetho... | [
"function",
"(",
"mSettings",
")",
"{",
"function",
"applyAll",
"(",
"ctx",
",",
"m",
")",
"{",
"var",
"sName",
",",
"sMethod",
";",
"for",
"(",
"sName",
"in",
"m",
")",
"{",
"sMethod",
"=",
"\"set\"",
"+",
"sName",
".",
"slice",
"(",
"0",
",",
"... | Applies multiple changes to the configuration at once.
If the changed settings contain localization related settings like <code>language</code>
or <ode>calendarType</code>, then only a single <code>localizationChanged</code> event will
be fired. As the framework has to inform all existing components, elements, models ... | [
"Applies",
"multiple",
"changes",
"to",
"the",
"configuration",
"at",
"once",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1475-L1498 | |
3,913 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | checkEnum | function checkEnum(oEnum, sValue, sPropertyName) {
var aValidValues = [];
for (var sKey in oEnum) {
if (oEnum.hasOwnProperty(sKey)) {
if (oEnum[sKey] === sValue) {
return;
}
aValidValues.push(oEnum[sKey]);
}
}
throw new Error("Unsupported Enumeration value for " + sPropertyName + ", valid... | javascript | function checkEnum(oEnum, sValue, sPropertyName) {
var aValidValues = [];
for (var sKey in oEnum) {
if (oEnum.hasOwnProperty(sKey)) {
if (oEnum[sKey] === sValue) {
return;
}
aValidValues.push(oEnum[sKey]);
}
}
throw new Error("Unsupported Enumeration value for " + sPropertyName + ", valid... | [
"function",
"checkEnum",
"(",
"oEnum",
",",
"sValue",
",",
"sPropertyName",
")",
"{",
"var",
"aValidValues",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"sKey",
"in",
"oEnum",
")",
"{",
"if",
"(",
"oEnum",
".",
"hasOwnProperty",
"(",
"sKey",
")",
")",
"{"... | Checks if a value exists within an enumerable list.
@param {object} oEnum Enumeration object with values for validation
@param {string} sValue Value to check against enumerable list
@param {string} sPropertyName Name of the property which is checked
@throws {Error} If the value could not be found, an error is thrown | [
"Checks",
"if",
"a",
"value",
"exists",
"within",
"an",
"enumerable",
"list",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1613-L1624 |
3,914 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function() {
function fallback(that) {
var oLocale = that.oConfiguration.language;
// if any user settings have been defined, add the private use subtag "sapufmt"
if ( !jQuery.isEmptyObject(that.mSettings) ) {
// TODO move to Locale/LocaleData
var l = oLocale.toString();
if ( l.indexOf("-x... | javascript | function() {
function fallback(that) {
var oLocale = that.oConfiguration.language;
// if any user settings have been defined, add the private use subtag "sapufmt"
if ( !jQuery.isEmptyObject(that.mSettings) ) {
// TODO move to Locale/LocaleData
var l = oLocale.toString();
if ( l.indexOf("-x... | [
"function",
"(",
")",
"{",
"function",
"fallback",
"(",
"that",
")",
"{",
"var",
"oLocale",
"=",
"that",
".",
"oConfiguration",
".",
"language",
";",
"// if any user settings have been defined, add the private use subtag \"sapufmt\"",
"if",
"(",
"!",
"jQuery",
".",
... | Returns the locale to be used for formatting.
If no such locale has been defined, this method falls back to the language,
see {@link sap.ui.core.Configuration#getLanguage Configuration.getLanguage()}.
If any user preferences for date, time or number formatting have been set,
and if no format locale has been specified... | [
"Returns",
"the",
"locale",
"to",
"be",
"used",
"for",
"formatting",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1661-L1678 | |
3,915 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(sStyle, sPattern) {
check(sStyle == "short" || sStyle == "medium" || sStyle == "long" || sStyle == "full", "sStyle must be short, medium, long or full");
this._set("dateFormats-" + sStyle, sPattern);
return this;
} | javascript | function(sStyle, sPattern) {
check(sStyle == "short" || sStyle == "medium" || sStyle == "long" || sStyle == "full", "sStyle must be short, medium, long or full");
this._set("dateFormats-" + sStyle, sPattern);
return this;
} | [
"function",
"(",
"sStyle",
",",
"sPattern",
")",
"{",
"check",
"(",
"sStyle",
"==",
"\"short\"",
"||",
"sStyle",
"==",
"\"medium\"",
"||",
"sStyle",
"==",
"\"long\"",
"||",
"sStyle",
"==",
"\"full\"",
",",
"\"sStyle must be short, medium, long or full\"",
")",
"... | Defines the preferred format pattern for the given date format style.
Calling this method with a null or undefined pattern removes a previously set pattern.
If a pattern is defined, it will be preferred over patterns derived from the current locale.
See class {@link sap.ui.core.format.DateFormat} for details about t... | [
"Defines",
"the",
"preferred",
"format",
"pattern",
"for",
"the",
"given",
"date",
"format",
"style",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1846-L1850 | |
3,916 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(sType, sSymbol) {
check(sType == "decimal" || sType == "group" || sType == "plusSign" || sType == "minusSign", "sType must be decimal, group, plusSign or minusSign");
this._set("symbols-latn-" + sType, sSymbol);
return this;
} | javascript | function(sType, sSymbol) {
check(sType == "decimal" || sType == "group" || sType == "plusSign" || sType == "minusSign", "sType must be decimal, group, plusSign or minusSign");
this._set("symbols-latn-" + sType, sSymbol);
return this;
} | [
"function",
"(",
"sType",
",",
"sSymbol",
")",
"{",
"check",
"(",
"sType",
"==",
"\"decimal\"",
"||",
"sType",
"==",
"\"group\"",
"||",
"sType",
"==",
"\"plusSign\"",
"||",
"sType",
"==",
"\"minusSign\"",
",",
"\"sType must be decimal, group, plusSign or minusSign\"... | Defines the string to be used for the given number symbol.
Calling this method with a null or undefined symbol removes a previously set symbol string.
Note that an empty string is explicitly allowed.
If a symbol is defined, it will be preferred over symbols derived from the current locale.
See class {@link sap.ui.co... | [
"Defines",
"the",
"string",
"to",
"be",
"used",
"for",
"the",
"given",
"number",
"symbol",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1913-L1917 | |
3,917 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(mCurrencies) {
check(typeof mCurrencies === "object" || mCurrencies == null, "mCurrencyDigits must be an object");
Object.keys(mCurrencies || {}).forEach(function(sCurrencyDigit) {
check(typeof sCurrencyDigit === "string");
check(typeof mCurrencies[sCurrencyDigit] === "object");
});
this._s... | javascript | function(mCurrencies) {
check(typeof mCurrencies === "object" || mCurrencies == null, "mCurrencyDigits must be an object");
Object.keys(mCurrencies || {}).forEach(function(sCurrencyDigit) {
check(typeof sCurrencyDigit === "string");
check(typeof mCurrencies[sCurrencyDigit] === "object");
});
this._s... | [
"function",
"(",
"mCurrencies",
")",
"{",
"check",
"(",
"typeof",
"mCurrencies",
"===",
"\"object\"",
"||",
"mCurrencies",
"==",
"null",
",",
"\"mCurrencyDigits must be an object\"",
")",
";",
"Object",
".",
"keys",
"(",
"mCurrencies",
"||",
"{",
"}",
")",
"."... | Sets custom currencies and replaces existing entries.
There is a special currency code named "DEFAULT" that is optional.
In case it is set it will be used for all currencies not contained
in the list, otherwise currency digits as defined by the CLDR will
be used as a fallback.
Example:
To use CLDR, but override singl... | [
"Sets",
"custom",
"currencies",
"and",
"replaces",
"existing",
"entries",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L1967-L1975 | |
3,918 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(sFormatId) {
sFormatId = sFormatId ? String(sFormatId).toUpperCase() : "";
check(!sFormatId || M_ABAP_DATE_FORMAT_PATTERN.hasOwnProperty(sFormatId), "sFormatId must be one of ['1','2','3','4','5','6','7','8','9','A','B','C'] or empty");
var mChanges = this.oConfiguration._collect();
this.sLegacyDat... | javascript | function(sFormatId) {
sFormatId = sFormatId ? String(sFormatId).toUpperCase() : "";
check(!sFormatId || M_ABAP_DATE_FORMAT_PATTERN.hasOwnProperty(sFormatId), "sFormatId must be one of ['1','2','3','4','5','6','7','8','9','A','B','C'] or empty");
var mChanges = this.oConfiguration._collect();
this.sLegacyDat... | [
"function",
"(",
"sFormatId",
")",
"{",
"sFormatId",
"=",
"sFormatId",
"?",
"String",
"(",
"sFormatId",
")",
".",
"toUpperCase",
"(",
")",
":",
"\"\"",
";",
"check",
"(",
"!",
"sFormatId",
"||",
"M_ABAP_DATE_FORMAT_PATTERN",
".",
"hasOwnProperty",
"(",
"sFor... | Allows to specify one of the legacy ABAP date formats.
This method modifies the date patterns for 'short' and 'medium' style with the corresponding ABAP
format. When called with a null or undefined format id, any previously applied format will be removed.
After changing the legacy date format, the framework tries to ... | [
"Allows",
"to",
"specify",
"one",
"of",
"the",
"legacy",
"ABAP",
"date",
"formats",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L2057-L2066 | |
3,919 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(sFormatId) {
check(!sFormatId || M_ABAP_TIME_FORMAT_PATTERN.hasOwnProperty(sFormatId), "sFormatId must be one of ['0','1','2','3','4'] or empty");
var mChanges = this.oConfiguration._collect();
this.sLegacyTimeFormat = mChanges.legacyTimeFormat = sFormatId = sFormatId || "";
this.setTimePattern("sh... | javascript | function(sFormatId) {
check(!sFormatId || M_ABAP_TIME_FORMAT_PATTERN.hasOwnProperty(sFormatId), "sFormatId must be one of ['0','1','2','3','4'] or empty");
var mChanges = this.oConfiguration._collect();
this.sLegacyTimeFormat = mChanges.legacyTimeFormat = sFormatId = sFormatId || "";
this.setTimePattern("sh... | [
"function",
"(",
"sFormatId",
")",
"{",
"check",
"(",
"!",
"sFormatId",
"||",
"M_ABAP_TIME_FORMAT_PATTERN",
".",
"hasOwnProperty",
"(",
"sFormatId",
")",
",",
"\"sFormatId must be one of ['0','1','2','3','4'] or empty\"",
")",
";",
"var",
"mChanges",
"=",
"this",
".",... | Allows to specify one of the legacy ABAP time formats.
This method sets the time patterns for 'short' and 'medium' style to the corresponding ABAP
formats and sets the day period texts to "AM"/"PM" or "am"/"pm" respectively. When called
with a null or undefined format id, any previously applied format will be removed.... | [
"Allows",
"to",
"specify",
"one",
"of",
"the",
"legacy",
"ABAP",
"time",
"formats",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L2092-L2101 | |
3,920 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(sFormatId) {
sFormatId = sFormatId ? sFormatId.toUpperCase() : "";
check(!sFormatId || M_ABAP_NUMBER_FORMAT_SYMBOLS.hasOwnProperty(sFormatId), "sFormatId must be one of [' ','X','Y'] or empty");
var mChanges = this.oConfiguration._collect();
this.sLegacyNumberFormat = mChanges.legacyNumberFormat = ... | javascript | function(sFormatId) {
sFormatId = sFormatId ? sFormatId.toUpperCase() : "";
check(!sFormatId || M_ABAP_NUMBER_FORMAT_SYMBOLS.hasOwnProperty(sFormatId), "sFormatId must be one of [' ','X','Y'] or empty");
var mChanges = this.oConfiguration._collect();
this.sLegacyNumberFormat = mChanges.legacyNumberFormat = ... | [
"function",
"(",
"sFormatId",
")",
"{",
"sFormatId",
"=",
"sFormatId",
"?",
"sFormatId",
".",
"toUpperCase",
"(",
")",
":",
"\"\"",
";",
"check",
"(",
"!",
"sFormatId",
"||",
"M_ABAP_NUMBER_FORMAT_SYMBOLS",
".",
"hasOwnProperty",
"(",
"sFormatId",
")",
",",
... | Allows to specify one of the legacy ABAP number format.
This method will modify the 'group' and 'decimal' symbols. When called with a null
or undefined format id, any previously applied format will be removed.
After changing the legacy number format, the framework tries to update localization
specific parts of the UI... | [
"Allows",
"to",
"specify",
"one",
"of",
"the",
"legacy",
"ABAP",
"number",
"format",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L2126-L2135 | |
3,921 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/Configuration.js | function(aMappings) {
check(Array.isArray(aMappings), "aMappings must be an Array");
var mChanges = this.oConfiguration._collect();
this.aLegacyDateCalendarCustomizing = mChanges.legacyDateCalendarCustomizing = aMappings;
this.oConfiguration._endCollect();
return this;
} | javascript | function(aMappings) {
check(Array.isArray(aMappings), "aMappings must be an Array");
var mChanges = this.oConfiguration._collect();
this.aLegacyDateCalendarCustomizing = mChanges.legacyDateCalendarCustomizing = aMappings;
this.oConfiguration._endCollect();
return this;
} | [
"function",
"(",
"aMappings",
")",
"{",
"check",
"(",
"Array",
".",
"isArray",
"(",
"aMappings",
")",
",",
"\"aMappings must be an Array\"",
")",
";",
"var",
"mChanges",
"=",
"this",
".",
"oConfiguration",
".",
"_collect",
"(",
")",
";",
"this",
".",
"aLeg... | Allows to specify the customizing data for Islamic calendar support
@param {object[]} aMappings contains the customizing data for the support of Islamic calendar.
@param {string} aMappings[].dateFormat The date format
@param {string} aMappings[].islamicMonthStart The Islamic date
@param {string} aMappings[].gregDate T... | [
"Allows",
"to",
"specify",
"the",
"customizing",
"data",
"for",
"Islamic",
"calendar",
"support"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/Configuration.js#L2147-L2154 | |
3,922 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableAccExtension.js | function(oEvent) {
var oTable = this.getTable();
if (!oTable || TableUtils.getCellInfo(oEvent.target).cell == null) {
return;
}
if (oTable._mTimeouts._cleanupACCExtension) {
clearTimeout(oTable._mTimeouts._cleanupACCExtension);
oTable._mTimeouts._cleanupACCExtension = null;
}
this.updateAc... | javascript | function(oEvent) {
var oTable = this.getTable();
if (!oTable || TableUtils.getCellInfo(oEvent.target).cell == null) {
return;
}
if (oTable._mTimeouts._cleanupACCExtension) {
clearTimeout(oTable._mTimeouts._cleanupACCExtension);
oTable._mTimeouts._cleanupACCExtension = null;
}
this.updateAc... | [
"function",
"(",
"oEvent",
")",
"{",
"var",
"oTable",
"=",
"this",
".",
"getTable",
"(",
")",
";",
"if",
"(",
"!",
"oTable",
"||",
"TableUtils",
".",
"getCellInfo",
"(",
"oEvent",
".",
"target",
")",
".",
"cell",
"==",
"null",
")",
"{",
"return",
"... | Delegate for the focusin event.
@private
@param {jQuery.Event} oEvent The event object. | [
"Delegate",
"for",
"the",
"focusin",
"event",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableAccExtension.js#L958-L968 | |
3,923 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableAccExtension.js | function(oEvent) {
var oTable = this.getTable();
if (!oTable) {
return;
}
oTable.$("sapUiTableGridCnt").attr("role", ExtensionHelper.getAriaAttributesFor(this, "CONTENT", {}).role);
oTable._mTimeouts._cleanupACCExtension = setTimeout(function() {
var oTable = this.getTable();
if (!oTable) {
... | javascript | function(oEvent) {
var oTable = this.getTable();
if (!oTable) {
return;
}
oTable.$("sapUiTableGridCnt").attr("role", ExtensionHelper.getAriaAttributesFor(this, "CONTENT", {}).role);
oTable._mTimeouts._cleanupACCExtension = setTimeout(function() {
var oTable = this.getTable();
if (!oTable) {
... | [
"function",
"(",
"oEvent",
")",
"{",
"var",
"oTable",
"=",
"this",
".",
"getTable",
"(",
")",
";",
"if",
"(",
"!",
"oTable",
")",
"{",
"return",
";",
"}",
"oTable",
".",
"$",
"(",
"\"sapUiTableGridCnt\"",
")",
".",
"attr",
"(",
"\"role\"",
",",
"Ex... | Delegate for the focusout event.
@private
@param {jQuery.Event} oEvent The event object. | [
"Delegate",
"for",
"the",
"focusout",
"event",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableAccExtension.js#L976-L992 | |
3,924 | SAP/openui5 | src/sap.ui.commons/src/sap/ui/commons/layout/AbsoluteLayout.js | function(aPositions) {
for (var index = 0; index < aPositions.length; index++) {
var oPosition = aPositions[index];
var oChildControl = oPosition.getControl();
if (oChildControl) {
AbsoluteLayout.cleanUpControl(oChildControl);
}
}
} | javascript | function(aPositions) {
for (var index = 0; index < aPositions.length; index++) {
var oPosition = aPositions[index];
var oChildControl = oPosition.getControl();
if (oChildControl) {
AbsoluteLayout.cleanUpControl(oChildControl);
}
}
} | [
"function",
"(",
"aPositions",
")",
"{",
"for",
"(",
"var",
"index",
"=",
"0",
";",
"index",
"<",
"aPositions",
".",
"length",
";",
"index",
"++",
")",
"{",
"var",
"oPosition",
"=",
"aPositions",
"[",
"index",
"]",
";",
"var",
"oChildControl",
"=",
"... | Cleanup modifications of all child controls of the given positions.
@private | [
"Cleanup",
"modifications",
"of",
"all",
"child",
"controls",
"of",
"the",
"given",
"positions",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/layout/AbsoluteLayout.js#L520-L528 | |
3,925 | SAP/openui5 | src/sap.ui.commons/src/sap/ui/commons/layout/AbsoluteLayout.js | function(oControl){
var bAdapted = false;
if (oControl.getParent() && oControl.getParent().getComputedPosition) {
var oPos = oControl.getParent().getComputedPosition();
if (oPos.top && oPos.bottom || oPos.height) {
jQuery(oControl.getDomRef()).css("height", "100%");
bAdapted = true;
}
if (oPos.l... | javascript | function(oControl){
var bAdapted = false;
if (oControl.getParent() && oControl.getParent().getComputedPosition) {
var oPos = oControl.getParent().getComputedPosition();
if (oPos.top && oPos.bottom || oPos.height) {
jQuery(oControl.getDomRef()).css("height", "100%");
bAdapted = true;
}
if (oPos.l... | [
"function",
"(",
"oControl",
")",
"{",
"var",
"bAdapted",
"=",
"false",
";",
"if",
"(",
"oControl",
".",
"getParent",
"(",
")",
"&&",
"oControl",
".",
"getParent",
"(",
")",
".",
"getComputedPosition",
")",
"{",
"var",
"oPos",
"=",
"oControl",
".",
"ge... | Adapt the sizes of controls if necessary.
@private | [
"Adapt",
"the",
"sizes",
"of",
"controls",
"if",
"necessary",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/layout/AbsoluteLayout.js#L564-L581 | |
3,926 | SAP/openui5 | src/sap.ui.commons/src/sap/ui/commons/layout/AbsoluteLayout.js | function(oThis, sProp, oValue, sChangeType) {
var bHasDomRef = !!oThis.getDomRef();
oThis.setProperty(sProp, oValue, bHasDomRef);
if (bHasDomRef) {
oThis.contentChanged(null, sChangeType);
}
return oThis;
} | javascript | function(oThis, sProp, oValue, sChangeType) {
var bHasDomRef = !!oThis.getDomRef();
oThis.setProperty(sProp, oValue, bHasDomRef);
if (bHasDomRef) {
oThis.contentChanged(null, sChangeType);
}
return oThis;
} | [
"function",
"(",
"oThis",
",",
"sProp",
",",
"oValue",
",",
"sChangeType",
")",
"{",
"var",
"bHasDomRef",
"=",
"!",
"!",
"oThis",
".",
"getDomRef",
"(",
")",
";",
"oThis",
".",
"setProperty",
"(",
"sProp",
",",
"oValue",
",",
"bHasDomRef",
")",
";",
... | Sets the value of the given property and triggers Dom change if
possible.
@private | [
"Sets",
"the",
"value",
"of",
"the",
"given",
"property",
"and",
"triggers",
"Dom",
"change",
"if",
"possible",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/layout/AbsoluteLayout.js#L590-L597 | |
3,927 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/type/DateTime.js | adjustConstraints | function adjustConstraints(oType, oConstraints) {
var oAdjustedConstraints = {};
if (oConstraints) {
switch (oConstraints.displayFormat) {
case "Date":
oAdjustedConstraints.isDateOnly = true;
break;
case undefined:
break;
default:
Log.warning("Illegal displayFormat: " + oConstraints.dis... | javascript | function adjustConstraints(oType, oConstraints) {
var oAdjustedConstraints = {};
if (oConstraints) {
switch (oConstraints.displayFormat) {
case "Date":
oAdjustedConstraints.isDateOnly = true;
break;
case undefined:
break;
default:
Log.warning("Illegal displayFormat: " + oConstraints.dis... | [
"function",
"adjustConstraints",
"(",
"oType",
",",
"oConstraints",
")",
"{",
"var",
"oAdjustedConstraints",
"=",
"{",
"}",
";",
"if",
"(",
"oConstraints",
")",
"{",
"switch",
"(",
"oConstraints",
".",
"displayFormat",
")",
"{",
"case",
"\"Date\"",
":",
"oAd... | Adjusts the constraints for DateTimeBase.
@param {sap.ui.model.odata.type.DateTime} oType
the type
@param {object} [oConstraints]
constraints, see {@link #constructor}
@returns {object}
the constraints adjusted for DateTimeBase | [
"Adjusts",
"the",
"constraints",
"for",
"DateTimeBase",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/type/DateTime.js#L21-L38 |
3,928 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableMenuUtils.js | function(oTable, iColumnIndex, bHoverFirstMenuItem, oCell) {
if (!oTable ||
iColumnIndex == null || iColumnIndex < 0) {
return;
}
if (bHoverFirstMenuItem == null) {
bHoverFirstMenuItem = false;
}
var oColumns = oTable.getColumns();
if (iColumnIndex >= oColumns.length) {
return;
}
... | javascript | function(oTable, iColumnIndex, bHoverFirstMenuItem, oCell) {
if (!oTable ||
iColumnIndex == null || iColumnIndex < 0) {
return;
}
if (bHoverFirstMenuItem == null) {
bHoverFirstMenuItem = false;
}
var oColumns = oTable.getColumns();
if (iColumnIndex >= oColumns.length) {
return;
}
... | [
"function",
"(",
"oTable",
",",
"iColumnIndex",
",",
"bHoverFirstMenuItem",
",",
"oCell",
")",
"{",
"if",
"(",
"!",
"oTable",
"||",
"iColumnIndex",
"==",
"null",
"||",
"iColumnIndex",
"<",
"0",
")",
"{",
"return",
";",
"}",
"if",
"(",
"bHoverFirstMenuItem"... | Opens the context menu of a column.
If context menus of other columns are open, they will be closed.
@param {sap.ui.table.Table} oTable Instance of the table.
@param {int} iColumnIndex The index of the column to open the context menu on.
@param {boolean} [bHoverFirstMenuItem] If <code>true</code>, the first item in th... | [
"Opens",
"the",
"context",
"menu",
"of",
"a",
"column",
".",
"If",
"context",
"menus",
"of",
"other",
"columns",
"are",
"open",
"they",
"will",
"be",
"closed",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableMenuUtils.js#L149-L183 | |
3,929 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableMenuUtils.js | function(oTable, iColumnIndex) {
if (!oTable ||
iColumnIndex == null || iColumnIndex < 0) {
return;
}
var oColumns = oTable.getColumns();
if (iColumnIndex >= oColumns.length) {
return;
}
var oColumn = oColumns[iColumnIndex];
oColumn._closeMenu();
} | javascript | function(oTable, iColumnIndex) {
if (!oTable ||
iColumnIndex == null || iColumnIndex < 0) {
return;
}
var oColumns = oTable.getColumns();
if (iColumnIndex >= oColumns.length) {
return;
}
var oColumn = oColumns[iColumnIndex];
oColumn._closeMenu();
} | [
"function",
"(",
"oTable",
",",
"iColumnIndex",
")",
"{",
"if",
"(",
"!",
"oTable",
"||",
"iColumnIndex",
"==",
"null",
"||",
"iColumnIndex",
"<",
"0",
")",
"{",
"return",
";",
"}",
"var",
"oColumns",
"=",
"oTable",
".",
"getColumns",
"(",
")",
";",
... | Closes the context menu of a column.
@param {sap.ui.table.Table} oTable Instance of the table.
@param {int} iColumnIndex The index of the column to close the context menu on.
@see openContextMenu
@see openColumnContextMenu
@private | [
"Closes",
"the",
"context",
"menu",
"of",
"a",
"column",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableMenuUtils.js#L194-L207 | |
3,930 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableMenuUtils.js | function(oTable) {
if (!oTable) {
return;
}
var oMenu = oTable._oCellContextMenu;
var bMenuOpen = oMenu != null && oMenu.bOpen;
if (bMenuOpen) {
oMenu.close();
}
} | javascript | function(oTable) {
if (!oTable) {
return;
}
var oMenu = oTable._oCellContextMenu;
var bMenuOpen = oMenu != null && oMenu.bOpen;
if (bMenuOpen) {
oMenu.close();
}
} | [
"function",
"(",
"oTable",
")",
"{",
"if",
"(",
"!",
"oTable",
")",
"{",
"return",
";",
"}",
"var",
"oMenu",
"=",
"oTable",
".",
"_oCellContextMenu",
";",
"var",
"bMenuOpen",
"=",
"oMenu",
"!=",
"null",
"&&",
"oMenu",
".",
"bOpen",
";",
"if",
"(",
... | Closes the currently open data cell context menu.
Index information are not required as there is only one data cell context menu object and therefore only this one can be open.
@param {sap.ui.table.Table} oTable Instance of the table.
@see openContextMenu
@see openDataCellContextMenu
@private | [
"Closes",
"the",
"currently",
"open",
"data",
"cell",
"context",
"menu",
".",
"Index",
"information",
"are",
"not",
"required",
"as",
"there",
"is",
"only",
"one",
"data",
"cell",
"context",
"menu",
"object",
"and",
"therefore",
"only",
"this",
"one",
"can",... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableMenuUtils.js#L313-L324 | |
3,931 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableMenuUtils.js | function(oTable) {
if (!oTable || !oTable._oCellContextMenu) {
return;
}
oTable._oCellContextMenu.destroy();
oTable._oCellContextMenu = null;
} | javascript | function(oTable) {
if (!oTable || !oTable._oCellContextMenu) {
return;
}
oTable._oCellContextMenu.destroy();
oTable._oCellContextMenu = null;
} | [
"function",
"(",
"oTable",
")",
"{",
"if",
"(",
"!",
"oTable",
"||",
"!",
"oTable",
".",
"_oCellContextMenu",
")",
"{",
"return",
";",
"}",
"oTable",
".",
"_oCellContextMenu",
".",
"destroy",
"(",
")",
";",
"oTable",
".",
"_oCellContextMenu",
"=",
"null"... | Destroys the cell context menu.
@param {sap.ui.table.Table} oTable Instance of the table. | [
"Destroys",
"the",
"cell",
"context",
"menu",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableMenuUtils.js#L331-L338 | |
3,932 | SAP/openui5 | src/sap.ui.core/src/sap/ui/qunit/utils/MemoryLeakCheck.js | function(assert, mActual, mExpected, sMessage) {
var aUnexpectedElements = [];
for (var sId in mActual) {
if (!mExpected[sId]) {
aUnexpectedElements.push(mActual[sId]);
}
}
// enrich with helpful info to more easily identify the leaked control
for (var i = 0; i < aUnexpectedElements.length; i++) {... | javascript | function(assert, mActual, mExpected, sMessage) {
var aUnexpectedElements = [];
for (var sId in mActual) {
if (!mExpected[sId]) {
aUnexpectedElements.push(mActual[sId]);
}
}
// enrich with helpful info to more easily identify the leaked control
for (var i = 0; i < aUnexpectedElements.length; i++) {... | [
"function",
"(",
"assert",
",",
"mActual",
",",
"mExpected",
",",
"sMessage",
")",
"{",
"var",
"aUnexpectedElements",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"sId",
"in",
"mActual",
")",
"{",
"if",
"(",
"!",
"mExpected",
"[",
"sId",
"]",
")",
"{",
"... | asserts that both given maps have the same entries | [
"asserts",
"that",
"both",
"given",
"maps",
"have",
"the",
"same",
"entries"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/qunit/utils/MemoryLeakCheck.js#L156-L174 | |
3,933 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/v2/ODataListBinding.js | getSortComparator | function getSortComparator(fnCompare) {
return function(vValue1, vValue2) {
if (vValue1 === vValue2) {
return 0;
}
if (vValue1 === null) {
return -1;
}
if (vValue2 === null) {
return 1;
}
return fnCompare(vValue1, vValue2);
};
} | javascript | function getSortComparator(fnCompare) {
return function(vValue1, vValue2) {
if (vValue1 === vValue2) {
return 0;
}
if (vValue1 === null) {
return -1;
}
if (vValue2 === null) {
return 1;
}
return fnCompare(vValue1, vValue2);
};
} | [
"function",
"getSortComparator",
"(",
"fnCompare",
")",
"{",
"return",
"function",
"(",
"vValue1",
",",
"vValue2",
")",
"{",
"if",
"(",
"vValue1",
"===",
"vValue2",
")",
"{",
"return",
"0",
";",
"}",
"if",
"(",
"vValue1",
"===",
"null",
")",
"{",
"retu... | Creates a comparator usable for sorting.
The OData comparators return "NaN" for comparisons containing null values. While this is a valid result when used for filtering,
for sorting the null values need to be put in order, so the comparator must return either -1 or 1 instead, to have null sorted
at the top in ascendin... | [
"Creates",
"a",
"comparator",
"usable",
"for",
"sorting",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v2/ODataListBinding.js#L1269-L1282 |
3,934 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/RenderManager.js | reset | function reset() {
aBuffer = that.aBuffer = [];
aRenderedControls = that.aRenderedControls = [];
aStyleStack = that.aStyleStack = [{}];
} | javascript | function reset() {
aBuffer = that.aBuffer = [];
aRenderedControls = that.aRenderedControls = [];
aStyleStack = that.aStyleStack = [{}];
} | [
"function",
"reset",
"(",
")",
"{",
"aBuffer",
"=",
"that",
".",
"aBuffer",
"=",
"[",
"]",
";",
"aRenderedControls",
"=",
"that",
".",
"aRenderedControls",
"=",
"[",
"]",
";",
"aStyleStack",
"=",
"that",
".",
"aStyleStack",
"=",
"[",
"{",
"}",
"]",
"... | Reset all rendering related buffers. | [
"Reset",
"all",
"rendering",
"related",
"buffers",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/RenderManager.js#L114-L118 |
3,935 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/RenderManager.js | triggerBeforeRendering | function triggerBeforeRendering(oControl){
bLocked = true;
try {
var oEvent = jQuery.Event("BeforeRendering");
// store the element on the event (aligned with jQuery syntax)
oEvent.srcControl = oControl;
oControl._handleEvent(oEvent);
} finally {
bLocked = false;
}
} | javascript | function triggerBeforeRendering(oControl){
bLocked = true;
try {
var oEvent = jQuery.Event("BeforeRendering");
// store the element on the event (aligned with jQuery syntax)
oEvent.srcControl = oControl;
oControl._handleEvent(oEvent);
} finally {
bLocked = false;
}
} | [
"function",
"triggerBeforeRendering",
"(",
"oControl",
")",
"{",
"bLocked",
"=",
"true",
";",
"try",
"{",
"var",
"oEvent",
"=",
"jQuery",
".",
"Event",
"(",
"\"BeforeRendering\"",
")",
";",
"// store the element on the event (aligned with jQuery syntax)",
"oEvent",
".... | Triggers the BeforeRendering event on the given Control | [
"Triggers",
"the",
"BeforeRendering",
"event",
"on",
"the",
"given",
"Control"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/RenderManager.js#L577-L587 |
3,936 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/RenderManager.js | isDomPatchingEnabled | function isDomPatchingEnabled() {
if (bDomPatching === undefined) {
bDomPatching = sap.ui.getCore().getConfiguration().getDomPatching();
if (bDomPatching) {
Log.warning("DOM Patching is enabled: This feature should be used only for testing purposes!");
}
}
return bDomPatching;
} | javascript | function isDomPatchingEnabled() {
if (bDomPatching === undefined) {
bDomPatching = sap.ui.getCore().getConfiguration().getDomPatching();
if (bDomPatching) {
Log.warning("DOM Patching is enabled: This feature should be used only for testing purposes!");
}
}
return bDomPatching;
} | [
"function",
"isDomPatchingEnabled",
"(",
")",
"{",
"if",
"(",
"bDomPatching",
"===",
"undefined",
")",
"{",
"bDomPatching",
"=",
"sap",
".",
"ui",
".",
"getCore",
"(",
")",
".",
"getConfiguration",
"(",
")",
".",
"getDomPatching",
"(",
")",
";",
"if",
"(... | Determines whether Dom Patching is enabled or not
@returns {boolean} whether or not dom patching is enabled
@private | [
"Determines",
"whether",
"Dom",
"Patching",
"is",
"enabled",
"or",
"not"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/RenderManager.js#L1831-L1840 |
3,937 | SAP/openui5 | src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js | function(oRm, oControl) {
if (oControl.getResizeEnabled()) {
fnRenderToggler(oRm, oControl);
}
if (oControl.hasItems()) {
if (oControl.getVisibleStatus() == NotificationBarStatus.Max) {
fnWriteItemsMaximized(oRm, oControl);
} else {
fnWriteItemsDefault(oRm, oControl);
}
}
} | javascript | function(oRm, oControl) {
if (oControl.getResizeEnabled()) {
fnRenderToggler(oRm, oControl);
}
if (oControl.hasItems()) {
if (oControl.getVisibleStatus() == NotificationBarStatus.Max) {
fnWriteItemsMaximized(oRm, oControl);
} else {
fnWriteItemsDefault(oRm, oControl);
}
}
} | [
"function",
"(",
"oRm",
",",
"oControl",
")",
"{",
"if",
"(",
"oControl",
".",
"getResizeEnabled",
"(",
")",
")",
"{",
"fnRenderToggler",
"(",
"oRm",
",",
"oControl",
")",
";",
"}",
"if",
"(",
"oControl",
".",
"hasItems",
"(",
")",
")",
"{",
"if",
... | Renders all notifiers | [
"Renders",
"all",
"notifiers"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js#L232-L244 | |
3,938 | SAP/openui5 | src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js | function(oRm, oNotifier, bMessageNotifier) {
var sId = oNotifier.getId();
oRm.write("<li");
oRm.writeElementData(oNotifier);
oRm.addClass("sapUiNotifier");
oRm.writeClasses();
// ItemNavigation can only handle focusable items
oRm.writeAttribute("tabindex", "-1");
oRm.writeAttribute("aria-descr... | javascript | function(oRm, oNotifier, bMessageNotifier) {
var sId = oNotifier.getId();
oRm.write("<li");
oRm.writeElementData(oNotifier);
oRm.addClass("sapUiNotifier");
oRm.writeClasses();
// ItemNavigation can only handle focusable items
oRm.writeAttribute("tabindex", "-1");
oRm.writeAttribute("aria-descr... | [
"function",
"(",
"oRm",
",",
"oNotifier",
",",
"bMessageNotifier",
")",
"{",
"var",
"sId",
"=",
"oNotifier",
".",
"getId",
"(",
")",
";",
"oRm",
".",
"write",
"(",
"\"<li\"",
")",
";",
"oRm",
".",
"writeElementData",
"(",
"oNotifier",
")",
";",
"oRm",
... | Renders a single notifier | [
"Renders",
"a",
"single",
"notifier"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js#L344-L389 | |
3,939 | SAP/openui5 | src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js | function(oRm, aNotifiers) {
for ( var i = 0; i < aNotifiers.length; i++) {
fnRenderNotifier(oRm, aNotifiers[i], false);
}
} | javascript | function(oRm, aNotifiers) {
for ( var i = 0; i < aNotifiers.length; i++) {
fnRenderNotifier(oRm, aNotifiers[i], false);
}
} | [
"function",
"(",
"oRm",
",",
"aNotifiers",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"aNotifiers",
".",
"length",
";",
"i",
"++",
")",
"{",
"fnRenderNotifier",
"(",
"oRm",
",",
"aNotifiers",
"[",
"i",
"]",
",",
"false",
")",
";",... | Renders given map of notifiers | [
"Renders",
"given",
"map",
"of",
"notifiers"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js#L420-L424 | |
3,940 | SAP/openui5 | src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js | function (oRm, sUri, bMessageNotifier) {
if (sUri == null || sUri == "") {
var icon = new Icon({
useIconTooltip: false
});
icon.addStyleClass("sapUiNotifierIcon");
if (bMessageNotifier) {
icon.setSrc("sap-icon://alert");
} else {
icon.setSrc("sap-icon://notification-2");
}
... | javascript | function (oRm, sUri, bMessageNotifier) {
if (sUri == null || sUri == "") {
var icon = new Icon({
useIconTooltip: false
});
icon.addStyleClass("sapUiNotifierIcon");
if (bMessageNotifier) {
icon.setSrc("sap-icon://alert");
} else {
icon.setSrc("sap-icon://notification-2");
}
... | [
"function",
"(",
"oRm",
",",
"sUri",
",",
"bMessageNotifier",
")",
"{",
"if",
"(",
"sUri",
"==",
"null",
"||",
"sUri",
"==",
"\"\"",
")",
"{",
"var",
"icon",
"=",
"new",
"Icon",
"(",
"{",
"useIconTooltip",
":",
"false",
"}",
")",
";",
"icon",
".",
... | Renders the notifier's icon. If there is no icon set a default icon is
used | [
"Renders",
"the",
"notifier",
"s",
"icon",
".",
"If",
"there",
"is",
"no",
"icon",
"set",
"a",
"default",
"icon",
"is",
"used"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js#L430-L452 | |
3,941 | SAP/openui5 | src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js | function(oRm, oNotifier, oNotiBar) {
fnRenderNotifier(oRm, oNotifier, true);
fnRenderMessageNotifierMessageArea(oRm, oNotifier, oNotiBar);
} | javascript | function(oRm, oNotifier, oNotiBar) {
fnRenderNotifier(oRm, oNotifier, true);
fnRenderMessageNotifierMessageArea(oRm, oNotifier, oNotiBar);
} | [
"function",
"(",
"oRm",
",",
"oNotifier",
",",
"oNotiBar",
")",
"{",
"fnRenderNotifier",
"(",
"oRm",
",",
"oNotifier",
",",
"true",
")",
";",
"fnRenderMessageNotifierMessageArea",
"(",
"oRm",
",",
"oNotifier",
",",
"oNotiBar",
")",
";",
"}"
] | This renders a given message notifier and its message area next to the
notifier icon | [
"This",
"renders",
"a",
"given",
"message",
"notifier",
"and",
"its",
"message",
"area",
"next",
"to",
"the",
"notifier",
"icon"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js#L458-L461 | |
3,942 | SAP/openui5 | src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js | function(oRm, oMessageNotifier, oNotiBar) {
if (oMessageNotifier.hasItems()) {
var aMessages = oMessageNotifier.getMessages();
var lastItem = aMessages[aMessages.length - 1];
var oMA = oMessageNotifier._oMessageArea;
// this ensures that this message is selectable from the bar
oMA._message = las... | javascript | function(oRm, oMessageNotifier, oNotiBar) {
if (oMessageNotifier.hasItems()) {
var aMessages = oMessageNotifier.getMessages();
var lastItem = aMessages[aMessages.length - 1];
var oMA = oMessageNotifier._oMessageArea;
// this ensures that this message is selectable from the bar
oMA._message = las... | [
"function",
"(",
"oRm",
",",
"oMessageNotifier",
",",
"oNotiBar",
")",
"{",
"if",
"(",
"oMessageNotifier",
".",
"hasItems",
"(",
")",
")",
"{",
"var",
"aMessages",
"=",
"oMessageNotifier",
".",
"getMessages",
"(",
")",
";",
"var",
"lastItem",
"=",
"aMessag... | Renders the message area next to a message notifier | [
"Renders",
"the",
"message",
"area",
"next",
"to",
"a",
"message",
"notifier"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBarRenderer.js#L466-L520 | |
3,943 | SAP/openui5 | src/sap.m/src/sap/m/ViewSettingsDialog.js | getViewSettingsItemByKey | function getViewSettingsItemByKey(aViewSettingsItems, sKey) {
var i, oItem;
// convenience, also allow strings
// find item with this key
for (i = 0; i < aViewSettingsItems.length; i++) {
if (aViewSettingsItems[i].getKey() === sKey) {
oItem = aViewSettingsItems[i];
break;
}
}
return oItem;
... | javascript | function getViewSettingsItemByKey(aViewSettingsItems, sKey) {
var i, oItem;
// convenience, also allow strings
// find item with this key
for (i = 0; i < aViewSettingsItems.length; i++) {
if (aViewSettingsItems[i].getKey() === sKey) {
oItem = aViewSettingsItems[i];
break;
}
}
return oItem;
... | [
"function",
"getViewSettingsItemByKey",
"(",
"aViewSettingsItems",
",",
"sKey",
")",
"{",
"var",
"i",
",",
"oItem",
";",
"// convenience, also allow strings",
"// find item with this key",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"aViewSettingsItems",
".",
"length"... | Gets an sap.m.ViewSettingsItem from a list of items by a given key.
@param {array} aViewSettingsItems The list of sap.m.ViewSettingsItem objects to be searched
@param {string} sKey The key of the searched item
@returns {*} The sap.m.ViewSettingsItem found in the list of items
@private | [
"Gets",
"an",
"sap",
".",
"m",
".",
"ViewSettingsItem",
"from",
"a",
"list",
"of",
"items",
"by",
"a",
"given",
"key",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/ViewSettingsDialog.js#L2942-L2955 |
3,944 | SAP/openui5 | src/sap.m/src/sap/m/ViewSettingsDialog.js | findViewSettingsItemByKey | function findViewSettingsItemByKey(vItemOrKey, aViewSettingsItems, sErrorMessage) {
var oItem;
// convenience, also allow strings
if (typeof vItemOrKey === "string") {
// find item with this key
oItem = getViewSettingsItemByKey(aViewSettingsItems, vItemOrKey);
if (!oItem) {
Log.error(sErrorMessage)... | javascript | function findViewSettingsItemByKey(vItemOrKey, aViewSettingsItems, sErrorMessage) {
var oItem;
// convenience, also allow strings
if (typeof vItemOrKey === "string") {
// find item with this key
oItem = getViewSettingsItemByKey(aViewSettingsItems, vItemOrKey);
if (!oItem) {
Log.error(sErrorMessage)... | [
"function",
"findViewSettingsItemByKey",
"(",
"vItemOrKey",
",",
"aViewSettingsItems",
",",
"sErrorMessage",
")",
"{",
"var",
"oItem",
";",
"// convenience, also allow strings",
"if",
"(",
"typeof",
"vItemOrKey",
"===",
"\"string\"",
")",
"{",
"// find item with this key"... | Finds an sap.m.ViewSettingsItem from a list of items by a given key.
If it does not succeed logs an error.
@param {sap.m.ViewSettingsItem|string} vItemOrKey The searched item or its key
@param {array} aViewSettingsItems The list of sap.m.ViewSettingsItem objects to be searched
@param {string} sErrorMessage The error m... | [
"Finds",
"an",
"sap",
".",
"m",
".",
"ViewSettingsItem",
"from",
"a",
"list",
"of",
"items",
"by",
"a",
"given",
"key",
".",
"If",
"it",
"does",
"not",
"succeed",
"logs",
"an",
"error",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/ViewSettingsDialog.js#L2967-L2983 |
3,945 | SAP/openui5 | src/sap.m/src/sap/m/ViewSettingsDialog.js | restoreCustomTabContentAggregation | function restoreCustomTabContentAggregation(sAggregationName, oCustomTab) {
// Make sure page1 exists, as this method may be called on destroy(), after the page was destroyed
// Suppress creation of new page as the following logic is needed only when a page already exists
if (!this._getPage1(true)) {
return;
... | javascript | function restoreCustomTabContentAggregation(sAggregationName, oCustomTab) {
// Make sure page1 exists, as this method may be called on destroy(), after the page was destroyed
// Suppress creation of new page as the following logic is needed only when a page already exists
if (!this._getPage1(true)) {
return;
... | [
"function",
"restoreCustomTabContentAggregation",
"(",
"sAggregationName",
",",
"oCustomTab",
")",
"{",
"// Make sure page1 exists, as this method may be called on destroy(), after the page was destroyed",
"// Suppress creation of new page as the following logic is needed only when a page already ... | Handle the "content" aggregation of a custom tab, as the items in it might be transferred to the dialog page
instance.
@param {string} sAggregationName The string identifying the aggregation that the given object should be removed from
@param {object} oCustomTab Custom tab instance
@private | [
"Handle",
"the",
"content",
"aggregation",
"of",
"a",
"custom",
"tab",
"as",
"the",
"items",
"in",
"it",
"might",
"be",
"transferred",
"to",
"the",
"dialog",
"page",
"instance",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/ViewSettingsDialog.js#L3158-L3191 |
3,946 | SAP/openui5 | src/sap.m/src/sap/m/ViewSettingsDialog.js | function(sOperator) {
this.sOperator = sOperator || StringFilterOperator.StartsWith;
switch (this.sOperator) {
case StringFilterOperator.Equals:
this.fnOperator = fnEquals;
break;
case StringFilterOperator.Contains:
this.fnOperator = fnContains;
break;
case StringFilterOperator.StartsWith:... | javascript | function(sOperator) {
this.sOperator = sOperator || StringFilterOperator.StartsWith;
switch (this.sOperator) {
case StringFilterOperator.Equals:
this.fnOperator = fnEquals;
break;
case StringFilterOperator.Contains:
this.fnOperator = fnContains;
break;
case StringFilterOperator.StartsWith:... | [
"function",
"(",
"sOperator",
")",
"{",
"this",
".",
"sOperator",
"=",
"sOperator",
"||",
"StringFilterOperator",
".",
"StartsWith",
";",
"switch",
"(",
"this",
".",
"sOperator",
")",
"{",
"case",
"StringFilterOperator",
".",
"Equals",
":",
"this",
".",
"fnO... | String filter helper class.
@param {string} sOperator sap.m.StringFilterOperator value. Default is sap.m.StringFilterOperator.StartsWith.
@constructor
@private | [
"String",
"filter",
"helper",
"class",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/ViewSettingsDialog.js#L3228-L3250 | |
3,947 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/type/Decimal.js | getText | function getText(sKey, aParams) {
return sap.ui.getCore().getLibraryResourceBundle().getText(sKey, aParams);
} | javascript | function getText(sKey, aParams) {
return sap.ui.getCore().getLibraryResourceBundle().getText(sKey, aParams);
} | [
"function",
"getText",
"(",
"sKey",
",",
"aParams",
")",
"{",
"return",
"sap",
".",
"ui",
".",
"getCore",
"(",
")",
".",
"getLibraryResourceBundle",
"(",
")",
".",
"getText",
"(",
"sKey",
",",
"aParams",
")",
";",
"}"
] | Fetches a text from the message bundle and formats it using the parameters.
@param {string} sKey
the message key
@param {any[]} aParams
the message parameters
@returns {string}
the message | [
"Fetches",
"a",
"text",
"from",
"the",
"message",
"bundle",
"and",
"formats",
"it",
"using",
"the",
"parameters",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/type/Decimal.js#L68-L70 |
3,948 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js | function (oIssue) {
var element = sap.ui.getCore().byId(oIssue.context.id),
className = "";
if (oIssue.context.id === "WEBPAGE") {
className = "sap.ui.core";
} else if (element) {
className = element.getMetadata().getName();
}
return {
severity: oIssue.severity,
name: oIssue.rule.ti... | javascript | function (oIssue) {
var element = sap.ui.getCore().byId(oIssue.context.id),
className = "";
if (oIssue.context.id === "WEBPAGE") {
className = "sap.ui.core";
} else if (element) {
className = element.getMetadata().getName();
}
return {
severity: oIssue.severity,
name: oIssue.rule.ti... | [
"function",
"(",
"oIssue",
")",
"{",
"var",
"element",
"=",
"sap",
".",
"ui",
".",
"getCore",
"(",
")",
".",
"byId",
"(",
"oIssue",
".",
"context",
".",
"id",
")",
",",
"className",
"=",
"\"\"",
";",
"if",
"(",
"oIssue",
".",
"context",
".",
"id"... | Converts Issue Object to a ViewModel that can be used by the IssueManager.
@param {object} oIssue Issue Object that is to be converted
@returns {object} Converted Issue Object | [
"Converts",
"Issue",
"Object",
"to",
"a",
"ViewModel",
"that",
"can",
"be",
"used",
"by",
"the",
"IssueManager",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js#L23-L51 | |
3,949 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js | function (rules, selectedRulesIDs, issues) {
var rulesViewModel = {},
issueCount = 0,
group = {},
library = {},
rule = {},
rulesCopy = jQuery.extend(true, {}, rules),
issuesCopy = jQuery.extend(true, {}, issues);
for (group in rulesCopy) {
rulesViewModel[group] = jQuery.exten... | javascript | function (rules, selectedRulesIDs, issues) {
var rulesViewModel = {},
issueCount = 0,
group = {},
library = {},
rule = {},
rulesCopy = jQuery.extend(true, {}, rules),
issuesCopy = jQuery.extend(true, {}, issues);
for (group in rulesCopy) {
rulesViewModel[group] = jQuery.exten... | [
"function",
"(",
"rules",
",",
"selectedRulesIDs",
",",
"issues",
")",
"{",
"var",
"rulesViewModel",
"=",
"{",
"}",
",",
"issueCount",
"=",
"0",
",",
"group",
"=",
"{",
"}",
",",
"library",
"=",
"{",
"}",
",",
"rule",
"=",
"{",
"}",
",",
"rulesCopy... | Gets rules and issues, and converts each rule to a ruleViewModel - parameters should be converted as specified beforehand.
@public
@method
@name sap.ui.support.IssueManager.getRulesViewModel
@param {object} rules All the rules from _mRulesets
@param {array} selectedRulesIDs The rule ID's of the selected rules.
@param {... | [
"Gets",
"rules",
"and",
"issues",
"and",
"converts",
"each",
"rule",
"to",
"a",
"ruleViewModel",
"-",
"parameters",
"should",
"be",
"converted",
"as",
"specified",
"beforehand",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js#L133-L195 | |
3,950 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js | function(oRules) {
var index = 0,
innerIndex = 0,
treeTableModel = {},
rulesViewModel,
rule,
rules = [];
rulesViewModel = this.getRulesViewModel(oRules, [], []);
for (var libraryName in rulesViewModel) {
treeTableModel[index] = {
name: libraryName,
id: libraryName ... | javascript | function(oRules) {
var index = 0,
innerIndex = 0,
treeTableModel = {},
rulesViewModel,
rule,
rules = [];
rulesViewModel = this.getRulesViewModel(oRules, [], []);
for (var libraryName in rulesViewModel) {
treeTableModel[index] = {
name: libraryName,
id: libraryName ... | [
"function",
"(",
"oRules",
")",
"{",
"var",
"index",
"=",
"0",
",",
"innerIndex",
"=",
"0",
",",
"treeTableModel",
"=",
"{",
"}",
",",
"rulesViewModel",
",",
"rule",
",",
"rules",
"=",
"[",
"]",
";",
"rulesViewModel",
"=",
"this",
".",
"getRulesViewMod... | Gets rules and converts them into treeTable format.
@public
@method
@name sap.ui.support.IssueManager.getTreeTableViewModel
@param {object} oRules Deserialized rules found within the current state
@returns {object} TreeTableModel Rules in treeTable usable format
The rules are in a TreeTable format. | [
"Gets",
"rules",
"and",
"converts",
"them",
"into",
"treeTable",
"format",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js#L206-L244 | |
3,951 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js | function(issuesModel) {
var treeTableModel = {},
index = 0,
innerIndex = 0,
issueCount = 0,
oSortedSeverityCount,
iHighSeverityCount = 0,
iMediumSeverityCount = 0,
iLowSeverityCount = 0;
for (var libName in issuesModel) {
treeTableModel[index] = {
name: libName,
... | javascript | function(issuesModel) {
var treeTableModel = {},
index = 0,
innerIndex = 0,
issueCount = 0,
oSortedSeverityCount,
iHighSeverityCount = 0,
iMediumSeverityCount = 0,
iLowSeverityCount = 0;
for (var libName in issuesModel) {
treeTableModel[index] = {
name: libName,
... | [
"function",
"(",
"issuesModel",
")",
"{",
"var",
"treeTableModel",
"=",
"{",
"}",
",",
"index",
"=",
"0",
",",
"innerIndex",
"=",
"0",
",",
"issueCount",
"=",
"0",
",",
"oSortedSeverityCount",
",",
"iHighSeverityCount",
"=",
"0",
",",
"iMediumSeverityCount",... | Gets issues in TreeTable format.
@public
@method
@name sap.ui.support.IssueManager.getIssuesViewModel
@param {object} issuesModel All the issues after they have been grouped with <code>groupIssues</code>
@returns {object} All the issues in TreeTable usable model | [
"Gets",
"issues",
"in",
"TreeTable",
"format",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js#L254-L330 | |
3,952 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js | function (oIssues) {
var viewModel = [];
for (var i = 0; i < oIssues.length; i++) {
viewModel.push(_convertIssueToViewModel(oIssues[i]));
}
return viewModel;
} | javascript | function (oIssues) {
var viewModel = [];
for (var i = 0; i < oIssues.length; i++) {
viewModel.push(_convertIssueToViewModel(oIssues[i]));
}
return viewModel;
} | [
"function",
"(",
"oIssues",
")",
"{",
"var",
"viewModel",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"oIssues",
".",
"length",
";",
"i",
"++",
")",
"{",
"viewModel",
".",
"push",
"(",
"_convertIssueToViewModel",
"(",
"oIss... | Converts issues to view model format.
@public
@method
@name sap.ui.support.IssueManager.convertToViewModel
@param {array} oIssues The issues to convert
@returns {array} viewModel Issues in ViewModel format | [
"Converts",
"issues",
"to",
"view",
"model",
"format",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js#L398-L404 | |
3,953 | SAP/openui5 | src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js | function (oIssues) {
var groupedIssues = {},
issue = {};
for (var i = 0; i < oIssues.length; i++) {
issue = oIssues[i];
if (!groupedIssues[issue.ruleLibName]) {
groupedIssues[issue.ruleLibName] = {};
}
if (!groupedIssues[issue.ruleLibName][issue.ruleId]) {
groupedIssues[i... | javascript | function (oIssues) {
var groupedIssues = {},
issue = {};
for (var i = 0; i < oIssues.length; i++) {
issue = oIssues[i];
if (!groupedIssues[issue.ruleLibName]) {
groupedIssues[issue.ruleLibName] = {};
}
if (!groupedIssues[issue.ruleLibName][issue.ruleId]) {
groupedIssues[i... | [
"function",
"(",
"oIssues",
")",
"{",
"var",
"groupedIssues",
"=",
"{",
"}",
",",
"issue",
"=",
"{",
"}",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"oIssues",
".",
"length",
";",
"i",
"++",
")",
"{",
"issue",
"=",
"oIssues",
"[",
... | Groups all issues by library and rule ID.
@public
@method
@name sap.ui.support.IssueManager.groupIssues
@param {array} oIssues The issues to group. Must be in a ViewModel format
@returns {array} groupedIssues Grouped issues by library and rule id | [
"Groups",
"all",
"issues",
"by",
"library",
"and",
"rule",
"ID",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/IssueManager.js#L414-L433 | |
3,954 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableRendererUtils.js | function(rm, sClassName, bShouldAdd) {
if (sClassName && (!!bShouldAdd || arguments.length == 2)) {
rm.addClass(sClassName);
if (TAGCONTEXT) {
TAGCONTEXT.writeClasses = true;
}
}
return TableRendererUtils;
} | javascript | function(rm, sClassName, bShouldAdd) {
if (sClassName && (!!bShouldAdd || arguments.length == 2)) {
rm.addClass(sClassName);
if (TAGCONTEXT) {
TAGCONTEXT.writeClasses = true;
}
}
return TableRendererUtils;
} | [
"function",
"(",
"rm",
",",
"sClassName",
",",
"bShouldAdd",
")",
"{",
"if",
"(",
"sClassName",
"&&",
"(",
"!",
"!",
"bShouldAdd",
"||",
"arguments",
".",
"length",
"==",
"2",
")",
")",
"{",
"rm",
".",
"addClass",
"(",
"sClassName",
")",
";",
"if",
... | Adds the given CSS class if no condition is given or the condition is truthy.
@param {sap.ui.core.RenderManager} rm Instance of the rendermanager
@param {string} sClassName The CSS class which should be written
@param {boolean} [bShouldAdd] optional condition
@returns TableRendererUtils to allow method chaining
@priv... | [
"Adds",
"the",
"given",
"CSS",
"class",
"if",
"no",
"condition",
"is",
"given",
"or",
"the",
"condition",
"is",
"truthy",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableRendererUtils.js#L33-L41 | |
3,955 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableRendererUtils.js | function(rm, sName, oValue, bShouldAdd) {
if (sName && oValue && (!!bShouldAdd || arguments.length == 3)) {
rm.addStyle(sName, oValue);
if (TAGCONTEXT) {
TAGCONTEXT.writeStyles = true;
}
}
return TableRendererUtils;
} | javascript | function(rm, sName, oValue, bShouldAdd) {
if (sName && oValue && (!!bShouldAdd || arguments.length == 3)) {
rm.addStyle(sName, oValue);
if (TAGCONTEXT) {
TAGCONTEXT.writeStyles = true;
}
}
return TableRendererUtils;
} | [
"function",
"(",
"rm",
",",
"sName",
",",
"oValue",
",",
"bShouldAdd",
")",
"{",
"if",
"(",
"sName",
"&&",
"oValue",
"&&",
"(",
"!",
"!",
"bShouldAdd",
"||",
"arguments",
".",
"length",
"==",
"3",
")",
")",
"{",
"rm",
".",
"addStyle",
"(",
"sName",... | Adds the given style if no condition is given or the condition is truthy.
@param {sap.ui.core.RenderManager} rm Instance of the rendermanager
@param {string} sName The style name which should be written
@param {string} oValue The style value which should be written
@param {boolean} [bShouldAdd] optional condition
@re... | [
"Adds",
"the",
"given",
"style",
"if",
"no",
"condition",
"is",
"given",
"or",
"the",
"condition",
"is",
"truthy",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableRendererUtils.js#L54-L62 | |
3,956 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableRendererUtils.js | function(rm, oTable, oConfig) {
oConfig = oConfig || {};
rm.write("<", oConfig.tag || "div");
TAGCONTEXT = oConfig;
if (oConfig.furtherSettings) {
oConfig.furtherSettings(rm, oTable);
}
if (Array.isArray(oConfig.classname) && oConfig.classname.length) {
for (var i = 0; i < oConfig.classname... | javascript | function(rm, oTable, oConfig) {
oConfig = oConfig || {};
rm.write("<", oConfig.tag || "div");
TAGCONTEXT = oConfig;
if (oConfig.furtherSettings) {
oConfig.furtherSettings(rm, oTable);
}
if (Array.isArray(oConfig.classname) && oConfig.classname.length) {
for (var i = 0; i < oConfig.classname... | [
"function",
"(",
"rm",
",",
"oTable",
",",
"oConfig",
")",
"{",
"oConfig",
"=",
"oConfig",
"||",
"{",
"}",
";",
"rm",
".",
"write",
"(",
"\"<\"",
",",
"oConfig",
".",
"tag",
"||",
"\"div\"",
")",
";",
"TAGCONTEXT",
"=",
"oConfig",
";",
"if",
"(",
... | Writes the starting tag of an element with the given settings.
@param {sap.ui.core.RenderManager} rm Instance of the rendermanager
@param {sap.ui.table.Table} oTable Instance of the table
@param {object} oConfig the configuration of the start tag
@param {string} [oConfig.tag] The tag type which should be used. I... | [
"Writes",
"the",
"starting",
"tag",
"of",
"an",
"element",
"with",
"the",
"given",
"settings",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableRendererUtils.js#L92-L146 | |
3,957 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/TableRendererUtils.js | function(rm, oTable, oConfig) {
TableRendererUtils.startElement(rm, oTable, oConfig);
TableRendererUtils.endElement(rm, oConfig ? oConfig.tag : null);
return TableRendererUtils;
} | javascript | function(rm, oTable, oConfig) {
TableRendererUtils.startElement(rm, oTable, oConfig);
TableRendererUtils.endElement(rm, oConfig ? oConfig.tag : null);
return TableRendererUtils;
} | [
"function",
"(",
"rm",
",",
"oTable",
",",
"oConfig",
")",
"{",
"TableRendererUtils",
".",
"startElement",
"(",
"rm",
",",
"oTable",
",",
"oConfig",
")",
";",
"TableRendererUtils",
".",
"endElement",
"(",
"rm",
",",
"oConfig",
"?",
"oConfig",
".",
"tag",
... | Writes the starting and end tag of an element with the given settings.
@param {sap.ui.core.RenderManager} rm Instance of the rendermanager
@param {sap.ui.table.Table} oTable Instance of the table
@param {object} oConfig the configuration of the start tag
@returns TableRendererUtils to allow method chaining
@see TableR... | [
"Writes",
"the",
"starting",
"and",
"end",
"tag",
"of",
"an",
"element",
"with",
"the",
"given",
"settings",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableRendererUtils.js#L173-L177 | |
3,958 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/signals.js | function (listener, listenerContext, priority) {
validateListener(listener, 'add');
return this._registerListener(listener, false, listenerContext, priority);
} | javascript | function (listener, listenerContext, priority) {
validateListener(listener, 'add');
return this._registerListener(listener, false, listenerContext, priority);
} | [
"function",
"(",
"listener",
",",
"listenerContext",
",",
"priority",
")",
"{",
"validateListener",
"(",
"listener",
",",
"'add'",
")",
";",
"return",
"this",
".",
"_registerListener",
"(",
"listener",
",",
"false",
",",
"listenerContext",
",",
"priority",
")"... | Add a listener to the signal.
@param {Function} listener Signal handler function.
@param {Object} [listenerContext] Context on which listener will be executed (object that should represent the `this` variable inside listener function).
@param {Number} [priority] The priority level of the event listener. Listeners with ... | [
"Add",
"a",
"listener",
"to",
"the",
"signal",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/signals.js#L296-L299 | |
3,959 | SAP/openui5 | src/sap.ui.core/src/sap/ui/thirdparty/signals.js | function (listener, context) {
validateListener(listener, 'remove');
var i = this._indexOfListener(listener, context);
if (i !== -1) {
this._bindings[i]._destroy(); //no reason to a SignalBinding exist if it isn't attached to a signal
this._bindings.s... | javascript | function (listener, context) {
validateListener(listener, 'remove');
var i = this._indexOfListener(listener, context);
if (i !== -1) {
this._bindings[i]._destroy(); //no reason to a SignalBinding exist if it isn't attached to a signal
this._bindings.s... | [
"function",
"(",
"listener",
",",
"context",
")",
"{",
"validateListener",
"(",
"listener",
",",
"'remove'",
")",
";",
"var",
"i",
"=",
"this",
".",
"_indexOfListener",
"(",
"listener",
",",
"context",
")",
";",
"if",
"(",
"i",
"!==",
"-",
"1",
")",
... | Remove a single listener from the dispatch queue.
@param {Function} listener Handler function that should be removed.
@param {Object} [context] Execution context (since you can add the same handler multiple times if executing in a different context).
@return {Function} Listener handler function. | [
"Remove",
"a",
"single",
"listener",
"from",
"the",
"dispatch",
"queue",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/signals.js#L319-L328 | |
3,960 | SAP/openui5 | src/sap.ui.demokit/src/sap/ui/demokit/explored/util/MyRouter.js | function (sRoute, oData) {
var oHistory = History.getInstance();
var oPrevHash = oHistory.getPreviousHash();
if (oPrevHash !== undefined) {
window.history.go(-1);
} else {
var bReplace = true; // otherwise we go backwards with a forward history
this.navTo(sRoute, oData, bReplace);
}
} | javascript | function (sRoute, oData) {
var oHistory = History.getInstance();
var oPrevHash = oHistory.getPreviousHash();
if (oPrevHash !== undefined) {
window.history.go(-1);
} else {
var bReplace = true; // otherwise we go backwards with a forward history
this.navTo(sRoute, oData, bReplace);
}
} | [
"function",
"(",
"sRoute",
",",
"oData",
")",
"{",
"var",
"oHistory",
"=",
"History",
".",
"getInstance",
"(",
")",
";",
"var",
"oPrevHash",
"=",
"oHistory",
".",
"getPreviousHash",
"(",
")",
";",
"if",
"(",
"oPrevHash",
"!==",
"undefined",
")",
"{",
"... | mobile nav back handling | [
"mobile",
"nav",
"back",
"handling"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.demokit/src/sap/ui/demokit/explored/util/MyRouter.js#L17-L26 | |
3,961 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (o, oExtension, sTypeClass, sNonDefaultValue, bDeepCopy) {
if (sTypeClass === "EntitySet" && oExtension.value === sNonDefaultValue) {
// potentially nested structure so do deep copy
if (bDeepCopy) {
jQuery.extend(true, o, mV2ToV4[oExtension.name]);
} else {
// Warning: Passing false fo... | javascript | function (o, oExtension, sTypeClass, sNonDefaultValue, bDeepCopy) {
if (sTypeClass === "EntitySet" && oExtension.value === sNonDefaultValue) {
// potentially nested structure so do deep copy
if (bDeepCopy) {
jQuery.extend(true, o, mV2ToV4[oExtension.name]);
} else {
// Warning: Passing false fo... | [
"function",
"(",
"o",
",",
"oExtension",
",",
"sTypeClass",
",",
"sNonDefaultValue",
",",
"bDeepCopy",
")",
"{",
"if",
"(",
"sTypeClass",
"===",
"\"EntitySet\"",
"&&",
"oExtension",
".",
"value",
"===",
"sNonDefaultValue",
")",
"{",
"// potentially nested structur... | Adds EntitySet V4 annotation for current extension if extension value is equal to
the given non-default value. Depending on bDeepCopy the annotation will be merged
with deep copy.
@param {object} o
any object
@param {object} oExtension
the SAP Annotation (OData Version 2.0) for which a V4 annotation needs to be added
@... | [
"Adds",
"EntitySet",
"V4",
"annotation",
"for",
"current",
"extension",
"if",
"extension",
"value",
"is",
"equal",
"to",
"the",
"given",
"non",
"-",
"default",
"value",
".",
"Depending",
"on",
"bDeepCopy",
"the",
"annotation",
"will",
"be",
"merged",
"with",
... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L181-L191 | |
3,962 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (sV2AnnotationName, oEntitySet, oProperty) {
var aNames = mV2ToV4PropertyCollection[sV2AnnotationName],
sTerm = aNames[0],
sCollection = aNames[1],
oAnnotation = oEntitySet[sTerm] || {},
aCollection = oAnnotation[sCollection] || [];
aCollection.push({ "PropertyPath" : oProperty.name });
... | javascript | function (sV2AnnotationName, oEntitySet, oProperty) {
var aNames = mV2ToV4PropertyCollection[sV2AnnotationName],
sTerm = aNames[0],
sCollection = aNames[1],
oAnnotation = oEntitySet[sTerm] || {},
aCollection = oAnnotation[sCollection] || [];
aCollection.push({ "PropertyPath" : oProperty.name });
... | [
"function",
"(",
"sV2AnnotationName",
",",
"oEntitySet",
",",
"oProperty",
")",
"{",
"var",
"aNames",
"=",
"mV2ToV4PropertyCollection",
"[",
"sV2AnnotationName",
"]",
",",
"sTerm",
"=",
"aNames",
"[",
"0",
"]",
",",
"sCollection",
"=",
"aNames",
"[",
"1",
"]... | Adds current property to the property collection for given V2 annotation.
@param {string} sV2AnnotationName
V2 annotation name (key in map mV2ToV4PropertyCollection)
@param {object} oEntitySet
the entity set
@param {object} oProperty
the property of the entity | [
"Adds",
"current",
"property",
"to",
"the",
"property",
"collection",
"for",
"given",
"V2",
"annotation",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L270-L280 | |
3,963 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (o, oExtension, sTypeClass) {
switch (oExtension.name) {
case "aggregation-role":
if (oExtension.value === "dimension") {
o["com.sap.vocabularies.Analytics.v1.Dimension"] = oBoolTrue;
} else if (oExtension.value === "measure") {
o["com.sap.vocabularies.Analytics.v1.Measure"] = oBoo... | javascript | function (o, oExtension, sTypeClass) {
switch (oExtension.name) {
case "aggregation-role":
if (oExtension.value === "dimension") {
o["com.sap.vocabularies.Analytics.v1.Dimension"] = oBoolTrue;
} else if (oExtension.value === "measure") {
o["com.sap.vocabularies.Analytics.v1.Measure"] = oBoo... | [
"function",
"(",
"o",
",",
"oExtension",
",",
"sTypeClass",
")",
"{",
"switch",
"(",
"oExtension",
".",
"name",
")",
"{",
"case",
"\"aggregation-role\"",
":",
"if",
"(",
"oExtension",
".",
"value",
"===",
"\"dimension\"",
")",
"{",
"o",
"[",
"\"com.sap.voc... | Adds the corresponding V4 annotation to the given object based on the given SAP
extension.
@param {object} o
any object
@param {object} oExtension
the SAP Annotation (OData Version 2.0) for which a V4 annotation needs to be added
@param {string} sTypeClass
the type class of the given object; supported type classes are... | [
"Adds",
"the",
"corresponding",
"V4",
"annotation",
"to",
"the",
"given",
"object",
"based",
"on",
"the",
"given",
"SAP",
"extension",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L461-L528 | |
3,964 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (aArray, vExpectedPropertyValue, sPropertyName) {
var i, n;
sPropertyName = sPropertyName || "name";
if (aArray) {
for (i = 0, n = aArray.length; i < n; i += 1) {
if (aArray[i][sPropertyName] === vExpectedPropertyValue) {
return i;
}
}
}
return -1;
} | javascript | function (aArray, vExpectedPropertyValue, sPropertyName) {
var i, n;
sPropertyName = sPropertyName || "name";
if (aArray) {
for (i = 0, n = aArray.length; i < n; i += 1) {
if (aArray[i][sPropertyName] === vExpectedPropertyValue) {
return i;
}
}
}
return -1;
} | [
"function",
"(",
"aArray",
",",
"vExpectedPropertyValue",
",",
"sPropertyName",
")",
"{",
"var",
"i",
",",
"n",
";",
"sPropertyName",
"=",
"sPropertyName",
"||",
"\"name\"",
";",
"if",
"(",
"aArray",
")",
"{",
"for",
"(",
"i",
"=",
"0",
",",
"n",
"=",
... | Returns the index of the first object inside the given array, where the property with the
given name has the given expected value.
@param {object[]} [aArray]
some array
@param {any} vExpectedPropertyValue
expected value of the property with given name
@param {string} [sPropertyName="name"]
some property name
@returns ... | [
"Returns",
"the",
"index",
"of",
"the",
"first",
"object",
"inside",
"the",
"given",
"array",
"where",
"the",
"property",
"with",
"the",
"given",
"name",
"has",
"the",
"given",
"expected",
"value",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L586-L598 | |
3,965 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (aArray, vExpectedPropertyValue, sPropertyName) {
var iIndex = Utils.findIndex(aArray, vExpectedPropertyValue, sPropertyName);
return iIndex < 0 ? null : aArray[iIndex];
} | javascript | function (aArray, vExpectedPropertyValue, sPropertyName) {
var iIndex = Utils.findIndex(aArray, vExpectedPropertyValue, sPropertyName);
return iIndex < 0 ? null : aArray[iIndex];
} | [
"function",
"(",
"aArray",
",",
"vExpectedPropertyValue",
",",
"sPropertyName",
")",
"{",
"var",
"iIndex",
"=",
"Utils",
".",
"findIndex",
"(",
"aArray",
",",
"vExpectedPropertyValue",
",",
"sPropertyName",
")",
";",
"return",
"iIndex",
"<",
"0",
"?",
"null",
... | Returns the object inside the given array, where the property with the given name has
the given expected value.
@param {object[]} aArray
some array
@param {any} vExpectedPropertyValue
expected value of the property with given name
@param {string} [sPropertyName="name"]
some property name
@returns {object}
the object f... | [
"Returns",
"the",
"object",
"inside",
"the",
"given",
"array",
"where",
"the",
"property",
"with",
"the",
"given",
"name",
"has",
"the",
"given",
"expected",
"value",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L613-L617 | |
3,966 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (oAnnotations, sQualifiedName, bInContainer) {
var o = bInContainer
? oAnnotations.EntityContainer
: oAnnotations.propertyAnnotations;
return o && o[sQualifiedName] || {};
} | javascript | function (oAnnotations, sQualifiedName, bInContainer) {
var o = bInContainer
? oAnnotations.EntityContainer
: oAnnotations.propertyAnnotations;
return o && o[sQualifiedName] || {};
} | [
"function",
"(",
"oAnnotations",
",",
"sQualifiedName",
",",
"bInContainer",
")",
"{",
"var",
"o",
"=",
"bInContainer",
"?",
"oAnnotations",
".",
"EntityContainer",
":",
"oAnnotations",
".",
"propertyAnnotations",
";",
"return",
"o",
"&&",
"o",
"[",
"sQualifiedN... | Gets the map from child name to annotations for a parent with the given qualified
name which lives inside the entity container as indicated.
@param {sap.ui.model.odata.ODataAnnotations} oAnnotations
the OData annotations
@param {string} sQualifiedName
the parent's qualified name
@param {boolean} bInContainer
whether t... | [
"Gets",
"the",
"map",
"from",
"child",
"name",
"to",
"annotations",
"for",
"a",
"parent",
"with",
"the",
"given",
"qualified",
"name",
"which",
"lives",
"inside",
"the",
"entity",
"container",
"as",
"indicated",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L632-L637 | |
3,967 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (oEntityContainer, sArrayName, sName, bAsPath) {
var k,
vResult = bAsPath ? undefined : null;
if (oEntityContainer) {
k = Utils.findIndex(oEntityContainer[sArrayName], sName);
if (k >= 0) {
vResult = bAsPath
? oEntityContainer.$path + "/" + sArrayName + "/" + k
: oEntityCont... | javascript | function (oEntityContainer, sArrayName, sName, bAsPath) {
var k,
vResult = bAsPath ? undefined : null;
if (oEntityContainer) {
k = Utils.findIndex(oEntityContainer[sArrayName], sName);
if (k >= 0) {
vResult = bAsPath
? oEntityContainer.$path + "/" + sArrayName + "/" + k
: oEntityCont... | [
"function",
"(",
"oEntityContainer",
",",
"sArrayName",
",",
"sName",
",",
"bAsPath",
")",
"{",
"var",
"k",
",",
"vResult",
"=",
"bAsPath",
"?",
"undefined",
":",
"null",
";",
"if",
"(",
"oEntityContainer",
")",
"{",
"k",
"=",
"Utils",
".",
"findIndex",
... | Returns the thing with the given simple name from the given entity container.
@param {object} oEntityContainer
the entity container
@param {string} sArrayName
name of array within entity container which will be searched
@param {string} sName
a simple name, e.g. "Foo"
@param {boolean} [bAsPath=false]
determines whether... | [
"Returns",
"the",
"thing",
"with",
"the",
"given",
"simple",
"name",
"from",
"the",
"given",
"entity",
"container",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L654-L668 | |
3,968 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (vModel, sNamespace) {
var oSchema = null,
aSchemas = Array.isArray(vModel)
? vModel
: vModel.getObject("/dataServices/schema");
if (aSchemas) {
aSchemas.forEach(function (o) {
if (o.namespace === sNamespace) {
oSchema = o;
return false; // break
}
});
}
... | javascript | function (vModel, sNamespace) {
var oSchema = null,
aSchemas = Array.isArray(vModel)
? vModel
: vModel.getObject("/dataServices/schema");
if (aSchemas) {
aSchemas.forEach(function (o) {
if (o.namespace === sNamespace) {
oSchema = o;
return false; // break
}
});
}
... | [
"function",
"(",
"vModel",
",",
"sNamespace",
")",
"{",
"var",
"oSchema",
"=",
"null",
",",
"aSchemas",
"=",
"Array",
".",
"isArray",
"(",
"vModel",
")",
"?",
"vModel",
":",
"vModel",
".",
"getObject",
"(",
"\"/dataServices/schema\"",
")",
";",
"if",
"("... | Returns the schema with the given namespace.
@param {sap.ui.model.Model|object[]} vModel
either a model or an array of schemas
@param {string} sNamespace
a namespace, e.g. "ACME"
@returns {object}
the schema with the given namespace; <code>null</code> if no such schema is found | [
"Returns",
"the",
"schema",
"with",
"the",
"given",
"namespace",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L724-L740 | |
3,969 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (oAnnotations, oData, oMetaModel) {
var aSchemas = oData.dataServices.schema;
if (!aSchemas) {
return;
}
aSchemas.forEach(function (oSchema, i) {
var sSchemaVersion;
// remove datajs artefact for inline annotations in $metadata
delete oSchema.annotations;
Utils.liftSAPData(oS... | javascript | function (oAnnotations, oData, oMetaModel) {
var aSchemas = oData.dataServices.schema;
if (!aSchemas) {
return;
}
aSchemas.forEach(function (oSchema, i) {
var sSchemaVersion;
// remove datajs artefact for inline annotations in $metadata
delete oSchema.annotations;
Utils.liftSAPData(oS... | [
"function",
"(",
"oAnnotations",
",",
"oData",
",",
"oMetaModel",
")",
"{",
"var",
"aSchemas",
"=",
"oData",
".",
"dataServices",
".",
"schema",
";",
"if",
"(",
"!",
"aSchemas",
")",
"{",
"return",
";",
"}",
"aSchemas",
".",
"forEach",
"(",
"function",
... | Merges the given annotation data into the given metadata and lifts SAPData extensions.
@param {object} oAnnotations
annotations "JSON"
@param {object} oData
metadata "JSON"
@param {sap.ui.model.odata.ODataMetaModel} oMetaModel
the metamodel | [
"Merges",
"the",
"given",
"annotation",
"data",
"into",
"the",
"given",
"metadata",
"and",
"lifts",
"SAPData",
"extensions",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L954-L1003 | |
3,970 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (aChildren, mChildAnnotations, sTypeClass, aSchemas, fnCallback,
iStartIndex) {
if (!aChildren) {
return;
}
if (iStartIndex) {
aChildren = aChildren.slice(iStartIndex);
}
aChildren.forEach(function (oChild) {
// lift SAP data for easy access to SAP Annotations for OData V 2.0
... | javascript | function (aChildren, mChildAnnotations, sTypeClass, aSchemas, fnCallback,
iStartIndex) {
if (!aChildren) {
return;
}
if (iStartIndex) {
aChildren = aChildren.slice(iStartIndex);
}
aChildren.forEach(function (oChild) {
// lift SAP data for easy access to SAP Annotations for OData V 2.0
... | [
"function",
"(",
"aChildren",
",",
"mChildAnnotations",
",",
"sTypeClass",
",",
"aSchemas",
",",
"fnCallback",
",",
"iStartIndex",
")",
"{",
"if",
"(",
"!",
"aChildren",
")",
"{",
"return",
";",
"}",
"if",
"(",
"iStartIndex",
")",
"{",
"aChildren",
"=",
... | Visits all children inside the given array, lifts "SAPData" extensions and
inlines OData V4 annotations for each child.
@param {object[]} aChildren
any array of children
@param {object} mChildAnnotations
map from child name (or role) to annotations
@param {string} [sTypeClass]
the type class of the given children; sup... | [
"Visits",
"all",
"children",
"inside",
"the",
"given",
"array",
"lifts",
"SAPData",
"extensions",
"and",
"inlines",
"OData",
"V4",
"annotations",
"for",
"each",
"child",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L1023-L1051 | |
3,971 | SAP/openui5 | src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js | function (oAnnotations, oSchema, oEntityContainer, oFunctionImport) {
var mAnnotations;
if (!oFunctionImport.parameter) {
return;
}
mAnnotations = Utils.getChildAnnotations(oAnnotations,
oSchema.namespace + "." + oEntityContainer.name, true);
oFunctionImport.parameter.forEach(
function (oPar... | javascript | function (oAnnotations, oSchema, oEntityContainer, oFunctionImport) {
var mAnnotations;
if (!oFunctionImport.parameter) {
return;
}
mAnnotations = Utils.getChildAnnotations(oAnnotations,
oSchema.namespace + "." + oEntityContainer.name, true);
oFunctionImport.parameter.forEach(
function (oPar... | [
"function",
"(",
"oAnnotations",
",",
"oSchema",
",",
"oEntityContainer",
",",
"oFunctionImport",
")",
"{",
"var",
"mAnnotations",
";",
"if",
"(",
"!",
"oFunctionImport",
".",
"parameter",
")",
"{",
"return",
";",
"}",
"mAnnotations",
"=",
"Utils",
".",
"get... | Visits all parameters of the given function import.
@param {object} oAnnotations
annotations "JSON"
@param {object} oSchema
OData data service schema
@param {object} oEntityContainer
the entity container
@param {object} oFunctionImport
a function import's V2 metadata object | [
"Visits",
"all",
"parameters",
"of",
"the",
"given",
"function",
"import",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js#L1079-L1094 | |
3,972 | SAP/openui5 | src/sap.m/src/sap/m/TimePickerSlider.js | findIndexInArray | function findIndexInArray(aArray, fnPredicate) {
if (aArray == null) {
throw new TypeError('findIndex called with null or undefined array');
}
if (typeof fnPredicate !== 'function') {
throw new TypeError('predicate must be a function');
}
var iLength = aArray.length;
var fnThisArg = arguments... | javascript | function findIndexInArray(aArray, fnPredicate) {
if (aArray == null) {
throw new TypeError('findIndex called with null or undefined array');
}
if (typeof fnPredicate !== 'function') {
throw new TypeError('predicate must be a function');
}
var iLength = aArray.length;
var fnThisArg = arguments... | [
"function",
"findIndexInArray",
"(",
"aArray",
",",
"fnPredicate",
")",
"{",
"if",
"(",
"aArray",
"==",
"null",
")",
"{",
"throw",
"new",
"TypeError",
"(",
"'findIndex called with null or undefined array'",
")",
";",
"}",
"if",
"(",
"typeof",
"fnPredicate",
"!==... | Finds the index of an element, satisfying provided predicate.
@param {array} aArray The array to be predicted
@param {function} fnPredicate Testing function
@returns {number} The index in the array, if an element in the array satisfies the provided testing function
@private | [
"Finds",
"the",
"index",
"of",
"an",
"element",
"satisfying",
"provided",
"predicate",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/TimePickerSlider.js#L1210-L1229 |
3,973 | SAP/openui5 | src/sap.m/src/sap/m/TimePickerSlider.js | function (oEvent) {
var iPageY = oEvent.touches && oEvent.touches.length ? oEvent.touches[0].pageY : oEvent.pageY;
this._bIsDrag = false;
if (!this.getIsExpanded()) {
return;
}
this._stopAnimation();
this._startDrag(iPageY);
oEvent.preventDefault();
this._mousedown = true;
} | javascript | function (oEvent) {
var iPageY = oEvent.touches && oEvent.touches.length ? oEvent.touches[0].pageY : oEvent.pageY;
this._bIsDrag = false;
if (!this.getIsExpanded()) {
return;
}
this._stopAnimation();
this._startDrag(iPageY);
oEvent.preventDefault();
this._mousedown = true;
} | [
"function",
"(",
"oEvent",
")",
"{",
"var",
"iPageY",
"=",
"oEvent",
".",
"touches",
"&&",
"oEvent",
".",
"touches",
".",
"length",
"?",
"oEvent",
".",
"touches",
"[",
"0",
"]",
".",
"pageY",
":",
"oEvent",
".",
"pageY",
";",
"this",
".",
"_bIsDrag",... | Default onTouchStart handler.
@param {jQuery.Event} oEvent Event object | [
"Default",
"onTouchStart",
"handler",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/TimePickerSlider.js#L1235-L1248 | |
3,974 | SAP/openui5 | src/sap.m/src/sap/m/TimePickerSlider.js | function (oEvent) {
var iPageY = oEvent.touches && oEvent.touches.length ? oEvent.touches[0].pageY : oEvent.pageY;
if (!this._mousedown || !this.getIsExpanded()) {
return;
}
//galaxy s5 android 5.0 fires touchmove every time - so see if it's far enough to call it a drag
if (!this._bIsDrag && this._... | javascript | function (oEvent) {
var iPageY = oEvent.touches && oEvent.touches.length ? oEvent.touches[0].pageY : oEvent.pageY;
if (!this._mousedown || !this.getIsExpanded()) {
return;
}
//galaxy s5 android 5.0 fires touchmove every time - so see if it's far enough to call it a drag
if (!this._bIsDrag && this._... | [
"function",
"(",
"oEvent",
")",
"{",
"var",
"iPageY",
"=",
"oEvent",
".",
"touches",
"&&",
"oEvent",
".",
"touches",
".",
"length",
"?",
"oEvent",
".",
"touches",
"[",
"0",
"]",
".",
"pageY",
":",
"oEvent",
".",
"pageY",
";",
"if",
"(",
"!",
"this"... | Default onTouchMove handler.
@param {jQuery.Event} oEvent Event object | [
"Default",
"onTouchMove",
"handler",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/TimePickerSlider.js#L1254-L1276 | |
3,975 | SAP/openui5 | src/sap.m/src/sap/m/TimePickerSlider.js | function (oEvent) {
var iPageY = oEvent.changedTouches && oEvent.changedTouches.length ? oEvent.changedTouches[0].pageY : oEvent.pageY;
if (this._bIsDrag === false) {
this.fireTap(oEvent);
this._dragSession = null;
}
this._bIsDrag = true;
if (!this.getIsExpanded()) {
this._dragSession = nu... | javascript | function (oEvent) {
var iPageY = oEvent.changedTouches && oEvent.changedTouches.length ? oEvent.changedTouches[0].pageY : oEvent.pageY;
if (this._bIsDrag === false) {
this.fireTap(oEvent);
this._dragSession = null;
}
this._bIsDrag = true;
if (!this.getIsExpanded()) {
this._dragSession = nu... | [
"function",
"(",
"oEvent",
")",
"{",
"var",
"iPageY",
"=",
"oEvent",
".",
"changedTouches",
"&&",
"oEvent",
".",
"changedTouches",
".",
"length",
"?",
"oEvent",
".",
"changedTouches",
"[",
"0",
"]",
".",
"pageY",
":",
"oEvent",
".",
"pageY",
";",
"if",
... | Default onTouchEnd handler.
@param {jQuery.Event} oEvent Event object | [
"Default",
"onTouchEnd",
"handler",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/TimePickerSlider.js#L1282-L1300 | |
3,976 | SAP/openui5 | src/sap.ui.core/src/sap/ui/events/PseudoEvents.js | checkModifierKeys | function checkModifierKeys(oEvent, bCtrlKey, bAltKey, bShiftKey) {
return oEvent.shiftKey == bShiftKey && oEvent.altKey == bAltKey && getCtrlKey(oEvent) == bCtrlKey;
} | javascript | function checkModifierKeys(oEvent, bCtrlKey, bAltKey, bShiftKey) {
return oEvent.shiftKey == bShiftKey && oEvent.altKey == bAltKey && getCtrlKey(oEvent) == bCtrlKey;
} | [
"function",
"checkModifierKeys",
"(",
"oEvent",
",",
"bCtrlKey",
",",
"bAltKey",
",",
"bShiftKey",
")",
"{",
"return",
"oEvent",
".",
"shiftKey",
"==",
"bShiftKey",
"&&",
"oEvent",
".",
"altKey",
"==",
"bAltKey",
"&&",
"getCtrlKey",
"(",
"oEvent",
")",
"==",... | Convenience method to check an event for a certain combination of modifier keys
@private | [
"Convenience",
"method",
"to",
"check",
"an",
"event",
"for",
"a",
"certain",
"combination",
"of",
"modifier",
"keys"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/PseudoEvents.js#L20-L22 |
3,977 | SAP/openui5 | src/sap.ui.demokit/src/sap/ui/demokit/explored/view/entity.controller.js | function (sType) {
if (!sType) {
return null;
} else {
// remove core prefix
sType = sType.replace("sap.ui.core.", "");
// only take text after last dot
var index = sType.lastIndexOf(".");
return (index !== -1) ? sType.substr(index + 1) : sType;
}
} | javascript | function (sType) {
if (!sType) {
return null;
} else {
// remove core prefix
sType = sType.replace("sap.ui.core.", "");
// only take text after last dot
var index = sType.lastIndexOf(".");
return (index !== -1) ? sType.substr(index + 1) : sType;
}
} | [
"function",
"(",
"sType",
")",
"{",
"if",
"(",
"!",
"sType",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"// remove core prefix",
"sType",
"=",
"sType",
".",
"replace",
"(",
"\"sap.ui.core.\"",
",",
"\"\"",
")",
";",
"// only take text after last dot"... | Converts the type to a friendly readable text | [
"Converts",
"the",
"type",
"to",
"a",
"friendly",
"readable",
"text"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.demokit/src/sap/ui/demokit/explored/view/entity.controller.js#L476-L486 | |
3,978 | SAP/openui5 | src/sap.ui.demokit/src/sap/ui/demokit/explored/view/entity.controller.js | function (controlName) {
var oLibComponentModel = data.libComponentInfos;
jQuery.sap.require("sap.ui.core.util.LibraryInfo");
var LibraryInfo = sap.ui.require("sap/ui/core/util/LibraryInfo");
var oLibInfo = new LibraryInfo();
var sActualControlComponent = oLibInfo._getActualComponent(oLibComponentModel, ... | javascript | function (controlName) {
var oLibComponentModel = data.libComponentInfos;
jQuery.sap.require("sap.ui.core.util.LibraryInfo");
var LibraryInfo = sap.ui.require("sap/ui/core/util/LibraryInfo");
var oLibInfo = new LibraryInfo();
var sActualControlComponent = oLibInfo._getActualComponent(oLibComponentModel, ... | [
"function",
"(",
"controlName",
")",
"{",
"var",
"oLibComponentModel",
"=",
"data",
".",
"libComponentInfos",
";",
"jQuery",
".",
"sap",
".",
"require",
"(",
"\"sap.ui.core.util.LibraryInfo\"",
")",
";",
"var",
"LibraryInfo",
"=",
"sap",
".",
"ui",
".",
"requi... | the actual component for the control
@param {string} controlName
@return {string} sActualControlComponent | [
"the",
"actual",
"component",
"for",
"the",
"control"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.demokit/src/sap/ui/demokit/explored/view/entity.controller.js#L542-L549 | |
3,979 | SAP/openui5 | src/sap.ui.core/src/sap/ui/base/ManagedObjectMetadata.js | loadOwnDesignTime | function loadOwnDesignTime(oMetadata) {
if (isPlainObject(oMetadata._oDesignTime) || !oMetadata._oDesignTime) {
return Promise.resolve(oMetadata._oDesignTime || {});
}
return new Promise(function(fnResolve) {
var sModule;
if (typeof oMetadata._oDesignTime === "string") {
//oMetadata._oDesignTime poi... | javascript | function loadOwnDesignTime(oMetadata) {
if (isPlainObject(oMetadata._oDesignTime) || !oMetadata._oDesignTime) {
return Promise.resolve(oMetadata._oDesignTime || {});
}
return new Promise(function(fnResolve) {
var sModule;
if (typeof oMetadata._oDesignTime === "string") {
//oMetadata._oDesignTime poi... | [
"function",
"loadOwnDesignTime",
"(",
"oMetadata",
")",
"{",
"if",
"(",
"isPlainObject",
"(",
"oMetadata",
".",
"_oDesignTime",
")",
"||",
"!",
"oMetadata",
".",
"_oDesignTime",
")",
"{",
"return",
"Promise",
".",
"resolve",
"(",
"oMetadata",
".",
"_oDesignTim... | Returns a promise that resolves with the own, unmerged designtime data.
If the class is marked as having no designtime data, the promise will resolve with null.
@private | [
"Returns",
"a",
"promise",
"that",
"resolves",
"with",
"the",
"own",
"unmerged",
"designtime",
"data",
".",
"If",
"the",
"class",
"is",
"marked",
"as",
"having",
"no",
"designtime",
"data",
"the",
"promise",
"will",
"resolve",
"with",
"null",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ManagedObjectMetadata.js#L1804-L1826 |
3,980 | SAP/openui5 | src/sap.ui.core/src/sap/ui/base/ManagedObjectMetadata.js | getScopeBasedDesignTime | function getScopeBasedDesignTime(mMetadata, sScopeKey) {
var mResult = mMetadata;
if ("default" in mMetadata) {
mResult = merge(
{},
mMetadata.default,
sScopeKey !== "default" && mMetadata[sScopeKey] || null
);
}
return mResult;
} | javascript | function getScopeBasedDesignTime(mMetadata, sScopeKey) {
var mResult = mMetadata;
if ("default" in mMetadata) {
mResult = merge(
{},
mMetadata.default,
sScopeKey !== "default" && mMetadata[sScopeKey] || null
);
}
return mResult;
} | [
"function",
"getScopeBasedDesignTime",
"(",
"mMetadata",
",",
"sScopeKey",
")",
"{",
"var",
"mResult",
"=",
"mMetadata",
";",
"if",
"(",
"\"default\"",
"in",
"mMetadata",
")",
"{",
"mResult",
"=",
"merge",
"(",
"{",
"}",
",",
"mMetadata",
".",
"default",
"... | Extracts metadata from metadata map by scope key
@param {object} mMetadata metadata map received from loader
@param {string} sScopeKey scope name to be extracted
@private | [
"Extracts",
"metadata",
"from",
"metadata",
"map",
"by",
"scope",
"key"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/ManagedObjectMetadata.js#L1873-L1885 |
3,981 | SAP/openui5 | src/sap.m/src/sap/m/FormattedText.js | openExternalLink | function openExternalLink (oEvent) {
var newWindow = window.open();
newWindow.opener = null;
newWindow.location = oEvent.currentTarget.href;
oEvent.preventDefault();
} | javascript | function openExternalLink (oEvent) {
var newWindow = window.open();
newWindow.opener = null;
newWindow.location = oEvent.currentTarget.href;
oEvent.preventDefault();
} | [
"function",
"openExternalLink",
"(",
"oEvent",
")",
"{",
"var",
"newWindow",
"=",
"window",
".",
"open",
"(",
")",
";",
"newWindow",
".",
"opener",
"=",
"null",
";",
"newWindow",
".",
"location",
"=",
"oEvent",
".",
"currentTarget",
".",
"href",
";",
"oE... | prohibit a new window from accessing window.opener.location | [
"prohibit",
"a",
"new",
"window",
"from",
"accessing",
"window",
".",
"opener",
".",
"location"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/FormattedText.js#L282-L287 |
3,982 | SAP/openui5 | src/sap.ui.table/src/sap/ui/table/Table.js | setMinColWidths | function setMinColWidths(oTable) {
var oTableRef = oTable.getDomRef();
var iAbsoluteMinWidth = TableUtils.Column.getMinColumnWidth();
var aNotFixedVariableColumns = [];
var bColumnHeaderVisible = oTable.getColumnHeaderVisible();
function calcNewWidth(iDomWidth, iMinWidth) {
if (iDomWidth <= iMinWidt... | javascript | function setMinColWidths(oTable) {
var oTableRef = oTable.getDomRef();
var iAbsoluteMinWidth = TableUtils.Column.getMinColumnWidth();
var aNotFixedVariableColumns = [];
var bColumnHeaderVisible = oTable.getColumnHeaderVisible();
function calcNewWidth(iDomWidth, iMinWidth) {
if (iDomWidth <= iMinWidt... | [
"function",
"setMinColWidths",
"(",
"oTable",
")",
"{",
"var",
"oTableRef",
"=",
"oTable",
".",
"getDomRef",
"(",
")",
";",
"var",
"iAbsoluteMinWidth",
"=",
"TableUtils",
".",
"Column",
".",
"getMinColumnWidth",
"(",
")",
";",
"var",
"aNotFixedVariableColumns",
... | the only place to fix the minimum column width | [
"the",
"only",
"place",
"to",
"fix",
"the",
"minimum",
"column",
"width"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/Table.js#L1564-L1628 |
3,983 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/Target.js | function(mArguments) {
var sTitle = this._oTitleProvider && this._oTitleProvider.getTitle();
if (sTitle) {
this.fireTitleChanged({
name: this._oOptions._name,
title: sTitle
});
}
this._bIsDisplayed = true;
return this.fireEvent(this.M_EVENTS.DISPLAY, mArguments);
} | javascript | function(mArguments) {
var sTitle = this._oTitleProvider && this._oTitleProvider.getTitle();
if (sTitle) {
this.fireTitleChanged({
name: this._oOptions._name,
title: sTitle
});
}
this._bIsDisplayed = true;
return this.fireEvent(this.M_EVENTS.DISPLAY, mArguments);
} | [
"function",
"(",
"mArguments",
")",
"{",
"var",
"sTitle",
"=",
"this",
".",
"_oTitleProvider",
"&&",
"this",
".",
"_oTitleProvider",
".",
"getTitle",
"(",
")",
";",
"if",
"(",
"sTitle",
")",
"{",
"this",
".",
"fireTitleChanged",
"(",
"{",
"name",
":",
... | Fire event created to attached listeners.
@param {object} [mArguments] the arguments to pass along with the event.
@return {sap.ui.core.routing.Target} <code>this</code> to allow method chaining
@protected | [
"Fire",
"event",
"created",
"to",
"attached",
"listeners",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Target.js#L167-L179 | |
3,984 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/routing/Target.js | function(oData, fnFunction, oListener) {
var bHasListener = this.hasListeners("titleChanged"),
sTitle = this._oTitleProvider && this._oTitleProvider.getTitle();
this.attachEvent(this.M_EVENTS.TITLE_CHANGED, oData, fnFunction, oListener);
// in case the title is changed before the first event listener ... | javascript | function(oData, fnFunction, oListener) {
var bHasListener = this.hasListeners("titleChanged"),
sTitle = this._oTitleProvider && this._oTitleProvider.getTitle();
this.attachEvent(this.M_EVENTS.TITLE_CHANGED, oData, fnFunction, oListener);
// in case the title is changed before the first event listener ... | [
"function",
"(",
"oData",
",",
"fnFunction",
",",
"oListener",
")",
"{",
"var",
"bHasListener",
"=",
"this",
".",
"hasListeners",
"(",
"\"titleChanged\"",
")",
",",
"sTitle",
"=",
"this",
".",
"_oTitleProvider",
"&&",
"this",
".",
"_oTitleProvider",
".",
"ge... | Will be fired when the title of this Target has been changed.
@name sap.ui.core.routing.Target#titleChanged
@event
@param {object} oEvent
@param {sap.ui.base.EventProvider} oEvent.getSource
@param {object} oEvent.getParameters
@param {string} oEvent.getParameters.title The name of this target
@param {string} oEvent.ge... | [
"Will",
"be",
"fired",
"when",
"the",
"title",
"of",
"this",
"Target",
"has",
"been",
"changed",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Target.js#L209-L222 | |
3,985 | SAP/openui5 | src/sap.ui.integration/src/sap/ui/integration/util/CustomElements.js | callback | function callback(mutationsList, observer) {
mutationsList.forEach(function (mutation) {
if (mutation.type == 'childList') {
var addedNodes = mutation.addedNodes,
removedNodes = mutation.removedNodes,
node,
xnode,
count,
aTags,
i;
for (count = 0; count < addedNodes.l... | javascript | function callback(mutationsList, observer) {
mutationsList.forEach(function (mutation) {
if (mutation.type == 'childList') {
var addedNodes = mutation.addedNodes,
removedNodes = mutation.removedNodes,
node,
xnode,
count,
aTags,
i;
for (count = 0; count < addedNodes.l... | [
"function",
"callback",
"(",
"mutationsList",
",",
"observer",
")",
"{",
"mutationsList",
".",
"forEach",
"(",
"function",
"(",
"mutation",
")",
"{",
"if",
"(",
"mutation",
".",
"type",
"==",
"'childList'",
")",
"{",
"var",
"addedNodes",
"=",
"mutation",
"... | Callback function to execute when mutations are observed | [
"Callback",
"function",
"to",
"execute",
"when",
"mutations",
"are",
"observed"
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.integration/src/sap/ui/integration/util/CustomElements.js#L73-L129 |
3,986 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | createContextInterface | function createContextInterface(oWithControl, mSettings, i, vBindingOrContext) {
/*
* Returns the single binding or model context related to the current formatter call.
*
* @param {number} [iPart]
* index of part in case of the root formatter of a composite binding
* @returns {sap.ui.model.Binding|sa... | javascript | function createContextInterface(oWithControl, mSettings, i, vBindingOrContext) {
/*
* Returns the single binding or model context related to the current formatter call.
*
* @param {number} [iPart]
* index of part in case of the root formatter of a composite binding
* @returns {sap.ui.model.Binding|sa... | [
"function",
"createContextInterface",
"(",
"oWithControl",
",",
"mSettings",
",",
"i",
",",
"vBindingOrContext",
")",
"{",
"/*\n\t\t * Returns the single binding or model context related to the current formatter call.\n\t\t *\n\t\t * @param {number} [iPart]\n\t\t * index of part in case of... | Creates the context interface for a call to the given control's formatter of the binding part
with given index.
@param {sap.ui.core.util._with} oWithControl
the "with" control
@param {object} mSettings
map/JSON-object with initial property values, etc.
@param {number} [i]
index of part inside a composite binding
@para... | [
"Creates",
"the",
"context",
"interface",
"for",
"a",
"call",
"to",
"the",
"given",
"control",
"s",
"formatter",
"of",
"the",
"binding",
"part",
"with",
"given",
"index",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L86-L326 |
3,987 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | getPath | function getPath(oBindingOrContext) {
return oBindingOrContext instanceof Context
? oBindingOrContext.getPath()
: oBindingOrContext.getModel().resolve(
oBindingOrContext.getPath(), oBindingOrContext.getContext());
} | javascript | function getPath(oBindingOrContext) {
return oBindingOrContext instanceof Context
? oBindingOrContext.getPath()
: oBindingOrContext.getModel().resolve(
oBindingOrContext.getPath(), oBindingOrContext.getContext());
} | [
"function",
"getPath",
"(",
"oBindingOrContext",
")",
"{",
"return",
"oBindingOrContext",
"instanceof",
"Context",
"?",
"oBindingOrContext",
".",
"getPath",
"(",
")",
":",
"oBindingOrContext",
".",
"getModel",
"(",
")",
".",
"resolve",
"(",
"oBindingOrContext",
".... | Returns the resolved path for the given single binding or model context.
@param {sap.ui.model.Binding|sap.ui.model.Context} oBindingOrContext
single binding or model context
@returns {string}
the resolved path | [
"Returns",
"the",
"resolved",
"path",
"for",
"the",
"given",
"single",
"binding",
"or",
"model",
"context",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L123-L128 |
3,988 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | getAny | function getAny(oWithControl, oBindingInfo, mSettings, oScope, bAsync) {
var bValueAsPromise = false;
/*
* Prepares the given binding info or part of it; makes it "one time" and binds its
* formatter function (if opted in) to an interface object.
*
* @param {object} oInfo
* a binding info or a par... | javascript | function getAny(oWithControl, oBindingInfo, mSettings, oScope, bAsync) {
var bValueAsPromise = false;
/*
* Prepares the given binding info or part of it; makes it "one time" and binds its
* formatter function (if opted in) to an interface object.
*
* @param {object} oInfo
* a binding info or a par... | [
"function",
"getAny",
"(",
"oWithControl",
",",
"oBindingInfo",
",",
"mSettings",
",",
"oScope",
",",
"bAsync",
")",
"{",
"var",
"bValueAsPromise",
"=",
"false",
";",
"/*\n\t\t * Prepares the given binding info or part of it; makes it \"one time\" and binds its\n\t\t * formatte... | Gets the value of the control's "any" property via the given binding info.
@param {sap.ui.core.util._with} oWithControl
the "with" control
@param {object} oBindingInfo
the binding info
@param {object} mSettings
map/JSON-object with initial property values, etc.
@param {object} oScope
map of currently known aliases
@pa... | [
"Gets",
"the",
"value",
"of",
"the",
"control",
"s",
"any",
"property",
"via",
"the",
"given",
"binding",
"info",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L346-L408 |
3,989 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | stopAndGo | function stopAndGo(aElements, fnCallback) {
var i = -1;
/*
* Visits the next element, taking the result of the previous callback into account.
*
* @param {boolean} bFound
* Whether an element was approved by the corresponding callback
* @returns {sap.ui.base.SyncPromise|any}
* First call retu... | javascript | function stopAndGo(aElements, fnCallback) {
var i = -1;
/*
* Visits the next element, taking the result of the previous callback into account.
*
* @param {boolean} bFound
* Whether an element was approved by the corresponding callback
* @returns {sap.ui.base.SyncPromise|any}
* First call retu... | [
"function",
"stopAndGo",
"(",
"aElements",
",",
"fnCallback",
")",
"{",
"var",
"i",
"=",
"-",
"1",
";",
"/*\n\t\t * Visits the next element, taking the result of the previous callback into account.\n\t\t *\n\t\t * @param {boolean} bFound\n\t\t * Whether an element was approved by the c... | Visits the given elements one-by-one, calls the given callback for each of them and stops
and waits for each sync promise returned by the callback before going on to the next element.
If a sync promise resolves with a truthy value, iteration stops and the corresponding element
becomes the result of the returned sync pr... | [
"Visits",
"the",
"given",
"elements",
"one",
"-",
"by",
"-",
"one",
"calls",
"the",
"given",
"callback",
"for",
"each",
"of",
"them",
"and",
"stops",
"and",
"waits",
"for",
"each",
"sync",
"promise",
"returned",
"by",
"the",
"callback",
"before",
"going",
... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L429-L454 |
3,990 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | function (fnVisitor, sNamespace, sLocalName) {
var fnOldVisitor = mVisitors[sNamespace];
if (fnVisitor !== null && typeof fnVisitor !== "function"
|| fnVisitor === visitNodeWrapper) {
throw new Error("Invalid visitor: " + fnVisitor);
}
if (!sNamespace || sNamespace === sNAMESPACE || sNamespace ===... | javascript | function (fnVisitor, sNamespace, sLocalName) {
var fnOldVisitor = mVisitors[sNamespace];
if (fnVisitor !== null && typeof fnVisitor !== "function"
|| fnVisitor === visitNodeWrapper) {
throw new Error("Invalid visitor: " + fnVisitor);
}
if (!sNamespace || sNamespace === sNAMESPACE || sNamespace ===... | [
"function",
"(",
"fnVisitor",
",",
"sNamespace",
",",
"sLocalName",
")",
"{",
"var",
"fnOldVisitor",
"=",
"mVisitors",
"[",
"sNamespace",
"]",
";",
"if",
"(",
"fnVisitor",
"!==",
"null",
"&&",
"typeof",
"fnVisitor",
"!==",
"\"function\"",
"||",
"fnVisitor",
... | Plug-in the given visitor which is called for each matching XML element.
@param {function} [fnVisitor]
Visitor function, will be called with the matching XML DOM element and a
{@link sap.ui.core.util.XMLPreprocessor.ICallback callback interface} which uses a map
of currently known variables; must return <code>undefine... | [
"Plug",
"-",
"in",
"the",
"given",
"visitor",
"which",
"is",
"called",
"for",
"each",
"matching",
"XML",
"element",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L531-L550 | |
3,991 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | function (aElements, fnCallback) {
try {
return SyncPromise.resolve(stopAndGo(aElements, fnCallback));
} catch (e) {
return SyncPromise.reject(e);
}
} | javascript | function (aElements, fnCallback) {
try {
return SyncPromise.resolve(stopAndGo(aElements, fnCallback));
} catch (e) {
return SyncPromise.reject(e);
}
} | [
"function",
"(",
"aElements",
",",
"fnCallback",
")",
"{",
"try",
"{",
"return",
"SyncPromise",
".",
"resolve",
"(",
"stopAndGo",
"(",
"aElements",
",",
"fnCallback",
")",
")",
";",
"}",
"catch",
"(",
"e",
")",
"{",
"return",
"SyncPromise",
".",
"reject"... | Visits the given elements one-by-one, calls the given callback for each of
them and stops and waits for each thenable returned by the callback before
going on to the next element. If a thenable resolves with a truthy value,
iteration stops and the corresponding element becomes the result of the
returned thenable.
<b>N... | [
"Visits",
"the",
"given",
"elements",
"one",
"-",
"by",
"-",
"one",
"calls",
"the",
"given",
"callback",
"for",
"each",
"of",
"them",
"and",
"stops",
"and",
"waits",
"for",
"each",
"thenable",
"returned",
"by",
"the",
"callback",
"before",
"going",
"on",
... | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L644-L650 | |
3,992 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | function (sPath) {
var oBindingInfo,
oModel,
sResolvedPath;
sPath = sPath || "";
if (sPath[0] === "{") {
throw new Error("Must be a simple path, not a binding: " + sPath);
}
oBindingInfo = BindingParser.simpleParser("{" + sPath + "}");
oModel = oWithControl.getM... | javascript | function (sPath) {
var oBindingInfo,
oModel,
sResolvedPath;
sPath = sPath || "";
if (sPath[0] === "{") {
throw new Error("Must be a simple path, not a binding: " + sPath);
}
oBindingInfo = BindingParser.simpleParser("{" + sPath + "}");
oModel = oWithControl.getM... | [
"function",
"(",
"sPath",
")",
"{",
"var",
"oBindingInfo",
",",
"oModel",
",",
"sResolvedPath",
";",
"sPath",
"=",
"sPath",
"||",
"\"\"",
";",
"if",
"(",
"sPath",
"[",
"0",
"]",
"===",
"\"{\"",
")",
"{",
"throw",
"new",
"Error",
"(",
"\"Must be a simpl... | Returns the model's context which corresponds to the given simple binding
path. Uses the map of currently known variables.
@param {string} [sPath=""]
A simple binding path which may include a model name ("a variable"), for
example "var>some/relative/path", but not a binding ("{...}")
@returns {sap.ui.model.Context}
Th... | [
"Returns",
"the",
"model",
"s",
"context",
"which",
"corresponds",
"to",
"the",
"given",
"simple",
"binding",
"path",
".",
"Uses",
"the",
"map",
"of",
"currently",
"known",
"variables",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L667-L687 | |
3,993 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | getResolvedBinding | function getResolvedBinding(sValue, oElement, oWithControl, bMandatory,
fnCallIfConstant) {
var vBindingInfo,
oPromise;
Measurement.average(sPerformanceGetResolvedBinding, "", aPerformanceCategories);
try {
vBindingInfo
= BindingParser.complexParser(sValue, oScope, bMandatory, true, tr... | javascript | function getResolvedBinding(sValue, oElement, oWithControl, bMandatory,
fnCallIfConstant) {
var vBindingInfo,
oPromise;
Measurement.average(sPerformanceGetResolvedBinding, "", aPerformanceCategories);
try {
vBindingInfo
= BindingParser.complexParser(sValue, oScope, bMandatory, true, tr... | [
"function",
"getResolvedBinding",
"(",
"sValue",
",",
"oElement",
",",
"oWithControl",
",",
"bMandatory",
",",
"fnCallIfConstant",
")",
"{",
"var",
"vBindingInfo",
",",
"oPromise",
";",
"Measurement",
".",
"average",
"(",
"sPerformanceGetResolvedBinding",
",",
"\"\"... | Interprets the given value as a binding and returns the resulting value; takes care
of unescaping and thus also of constant expressions.
@param {string} sValue
an XML DOM attribute value
@param {Element} oElement
the XML DOM element
@param {sap.ui.core.util._with} oWithControl
the "with" control
@param {boolean} bMand... | [
"Interprets",
"the",
"given",
"value",
"as",
"a",
"binding",
"and",
"returns",
"the",
"resulting",
"value",
";",
"takes",
"care",
"of",
"unescaping",
"and",
"thus",
"also",
"of",
"constant",
"expressions",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L1086-L1125 |
3,994 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | liftChildNodes | function liftChildNodes(oParent, oWithControl, oTarget) {
return visitChildNodes(oParent, oWithControl).then(function () {
var oChild;
oTarget = oTarget || oParent;
while ((oChild = oParent.firstChild)) {
oTarget.parentNode.insertBefore(oChild, oTarget);
}
});
} | javascript | function liftChildNodes(oParent, oWithControl, oTarget) {
return visitChildNodes(oParent, oWithControl).then(function () {
var oChild;
oTarget = oTarget || oParent;
while ((oChild = oParent.firstChild)) {
oTarget.parentNode.insertBefore(oChild, oTarget);
}
});
} | [
"function",
"liftChildNodes",
"(",
"oParent",
",",
"oWithControl",
",",
"oTarget",
")",
"{",
"return",
"visitChildNodes",
"(",
"oParent",
",",
"oWithControl",
")",
".",
"then",
"(",
"function",
"(",
")",
"{",
"var",
"oChild",
";",
"oTarget",
"=",
"oTarget",
... | Visits the child nodes of the given parent element. Lifts them up by inserting them
before the target element.
@param {Element} oParent the XML DOM DOM element
@param {sap.ui.core.util._with} oWithControl the "with" control
@param {Element} [oTarget=oParent] the target DOM element
@returns {sap.ui.base.SyncPromise}
A ... | [
"Visits",
"the",
"child",
"nodes",
"of",
"the",
"given",
"parent",
"element",
".",
"Lifts",
"them",
"up",
"by",
"inserting",
"them",
"before",
"the",
"target",
"element",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L1207-L1216 |
3,995 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | visitAttribute | function visitAttribute(oElement, oAttribute, oWithControl) {
if (fnSupportInfo) {
fnSupportInfo({context:undefined /*context from node clone*/, env:{caller:"visitAttribute", before: {name: oAttribute.name, value: oAttribute.value}}});
}
return resolveAttributeBinding(oElement, oAttribute, oWithControl... | javascript | function visitAttribute(oElement, oAttribute, oWithControl) {
if (fnSupportInfo) {
fnSupportInfo({context:undefined /*context from node clone*/, env:{caller:"visitAttribute", before: {name: oAttribute.name, value: oAttribute.value}}});
}
return resolveAttributeBinding(oElement, oAttribute, oWithControl... | [
"function",
"visitAttribute",
"(",
"oElement",
",",
"oAttribute",
",",
"oWithControl",
")",
"{",
"if",
"(",
"fnSupportInfo",
")",
"{",
"fnSupportInfo",
"(",
"{",
"context",
":",
"undefined",
"/*context from node clone*/",
",",
"env",
":",
"{",
"caller",
":",
"... | Visits the given attribute of the given element. If the attribute value represents a
binding expression that can be resolved, it is replaced with the resulting value.
@param {Element} oElement the XML DOM element
@param {Attr} oAttribute one of the element's attribute nodes
@param {sap.ui.core.template._with} oWithCon... | [
"Visits",
"the",
"given",
"attribute",
"of",
"the",
"given",
"element",
".",
"If",
"the",
"attribute",
"value",
"represents",
"a",
"binding",
"expression",
"that",
"can",
"be",
"resolved",
"it",
"is",
"replaced",
"with",
"the",
"resulting",
"value",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L1726-L1736 |
3,996 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | visitAttributes | function visitAttributes(oElement, oWithControl) {
/*
* Comparator for DOM attributes by name.
*
* @param {Attr} oAttributeA
* @param {Attr} oAttributeB
* @returns {number} <0, 0, >0
*/
function comparator(oAttributeA, oAttributeB) {
return oAttributeA.name.localeCompare(oAttr... | javascript | function visitAttributes(oElement, oWithControl) {
/*
* Comparator for DOM attributes by name.
*
* @param {Attr} oAttributeA
* @param {Attr} oAttributeB
* @returns {number} <0, 0, >0
*/
function comparator(oAttributeA, oAttributeB) {
return oAttributeA.name.localeCompare(oAttr... | [
"function",
"visitAttributes",
"(",
"oElement",
",",
"oWithControl",
")",
"{",
"/*\n\t\t\t\t * Comparator for DOM attributes by name.\n\t\t\t\t *\n\t\t\t\t * @param {Attr} oAttributeA\n\t\t\t\t * @param {Attr} oAttributeB\n\t\t\t\t * @returns {number} <0, 0, >0\n\t\t\t\t */",
"function",
"compar... | Visits all attributes of the given element. If an attribute value represents a
binding expression that can be resolved, it is replaced with the resulting value.
@param {Element} oElement the XML DOM element
@param {sap.ui.core.template._with} oWithControl the "with" control
@returns {sap.ui.base.SyncPromise}
A sync pr... | [
"Visits",
"all",
"attributes",
"of",
"the",
"given",
"element",
".",
"If",
"an",
"attribute",
"value",
"represents",
"a",
"binding",
"expression",
"that",
"can",
"be",
"resolved",
"it",
"is",
"replaced",
"with",
"the",
"resulting",
"value",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L1749-L1768 |
3,997 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | visitChildNodes | function visitChildNodes(oNode, oWithControl) {
return stopAndGo(
// cache live collection so that removing a template node does not hurt
Array.prototype.slice.apply(oNode.childNodes),
function (oChild) {
return visitNode(oChild, oWithControl);
});
} | javascript | function visitChildNodes(oNode, oWithControl) {
return stopAndGo(
// cache live collection so that removing a template node does not hurt
Array.prototype.slice.apply(oNode.childNodes),
function (oChild) {
return visitNode(oChild, oWithControl);
});
} | [
"function",
"visitChildNodes",
"(",
"oNode",
",",
"oWithControl",
")",
"{",
"return",
"stopAndGo",
"(",
"// cache live collection so that removing a template node does not hurt",
"Array",
".",
"prototype",
".",
"slice",
".",
"apply",
"(",
"oNode",
".",
"childNodes",
")"... | Visits all child nodes of the given node.
@param {Node} oNode the XML DOM node
@param {sap.ui.core.util._with} oWithControl the "with" control
@returns {sap.ui.base.SyncPromise}
A sync promise which resolves with <code>undefined</code> as soon as visiting is
done, or is rejected with a corresponding error if visiting ... | [
"Visits",
"all",
"child",
"nodes",
"of",
"the",
"given",
"node",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L1779-L1786 |
3,998 | SAP/openui5 | src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js | visitNode | function visitNode(oNode, oWithControl) {
var fnVisitor;
function visitAttributesAndChildren() {
return visitAttributes(oNode, oWithControl).then(function () {
return visitChildNodes(oNode, oWithControl);
}).then(function () {
if (fnSupportInfo) {
fnSupportInfo({context:oNode, env:... | javascript | function visitNode(oNode, oWithControl) {
var fnVisitor;
function visitAttributesAndChildren() {
return visitAttributes(oNode, oWithControl).then(function () {
return visitChildNodes(oNode, oWithControl);
}).then(function () {
if (fnSupportInfo) {
fnSupportInfo({context:oNode, env:... | [
"function",
"visitNode",
"(",
"oNode",
",",
"oWithControl",
")",
"{",
"var",
"fnVisitor",
";",
"function",
"visitAttributesAndChildren",
"(",
")",
"{",
"return",
"visitAttributes",
"(",
"oNode",
",",
"oWithControl",
")",
".",
"then",
"(",
"function",
"(",
")",... | Visits the given node.
@param {Node} oNode the XML DOM node
@param {sap.ui.core.template._with} oWithControl the "with" control
@returns {sap.ui.base.SyncPromise}
A sync promise which resolves with <code>undefined</code> as soon as visiting is
done, or is rejected with a corresponding error if visiting fails.
@throws ... | [
"Visits",
"the",
"given",
"node",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/util/XMLPreprocessor.js#L1799-L1873 |
3,999 | SAP/openui5 | src/sap.ui.commons/src/sap/ui/commons/Tree.js | restoreSelectedChildren | function restoreSelectedChildren(oNode, aExpandingParents, oFirstCollapsedParent) {
var bIsExpanded = oNode.getExpanded(),
bNodeReferredInParents = false,
bIncludeInExpandingParents = bIsExpanded && !!oNode.getSelectedForNodes().length,
oFirstCollapsedParentNode = (oFirstCollapsedParent || bIsExpanded) ? oFi... | javascript | function restoreSelectedChildren(oNode, aExpandingParents, oFirstCollapsedParent) {
var bIsExpanded = oNode.getExpanded(),
bNodeReferredInParents = false,
bIncludeInExpandingParents = bIsExpanded && !!oNode.getSelectedForNodes().length,
oFirstCollapsedParentNode = (oFirstCollapsedParent || bIsExpanded) ? oFi... | [
"function",
"restoreSelectedChildren",
"(",
"oNode",
",",
"aExpandingParents",
",",
"oFirstCollapsedParent",
")",
"{",
"var",
"bIsExpanded",
"=",
"oNode",
".",
"getExpanded",
"(",
")",
",",
"bNodeReferredInParents",
"=",
"false",
",",
"bIncludeInExpandingParents",
"="... | Removes the references inside the expanded node of its selected children, because
they are no longer needed.
@param {sap.ui.commons.TreeNode} oNode The current node to look at
@param {object} aExpandingParents Array of parents of the current node that have selectedForNodes references
@param {sap.ui.commons.TreeNode} oF... | [
"Removes",
"the",
"references",
"inside",
"the",
"expanded",
"node",
"of",
"its",
"selected",
"children",
"because",
"they",
"are",
"no",
"longer",
"needed",
"."
] | 8a832fca01cb1cdf8df589788e0c5723e2a33c70 | https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/Tree.js#L518-L557 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.