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
partition
stringclasses
1 value
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList, bSkipNotify, fCallback){ var fFinalize = function(jRef) { if (!bSkipNotify) { var oAttr = oList._getAtt(); var iSelectedIndex = oAttr.getParent().indexOfAttribute(oAttr); clearAttribute(oList.getParent(), oAttr, iSelectedIndex, true); setHeaderText(oList.getParent()); getTopList...
javascript
function(oList, bSkipNotify, fCallback){ var fFinalize = function(jRef) { if (!bSkipNotify) { var oAttr = oList._getAtt(); var iSelectedIndex = oAttr.getParent().indexOfAttribute(oAttr); clearAttribute(oList.getParent(), oAttr, iSelectedIndex, true); setHeaderText(oList.getParent()); getTopList...
[ "function", "(", "oList", ",", "bSkipNotify", ",", "fCallback", ")", "{", "var", "fFinalize", "=", "function", "(", "jRef", ")", "{", "if", "(", "!", "bSkipNotify", ")", "{", "var", "oAttr", "=", "oList", ".", "_getAtt", "(", ")", ";", "var", "iSelec...
Handles the close of the list
[ "Handles", "the", "close", "of", "the", "list" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1375-L1398
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList, oAttribute) { if (oAttribute.getSelected()) { var aAttributes = oAttribute.getAttributesInternal(true); if (aAttributes.length > 0) { var oSubList; if (oAttribute.getChangeListener()) { oSubList = sap.ui.getCore().byId(oAttribute.getChangeListener().id); } else { oSubList =...
javascript
function(oList, oAttribute) { if (oAttribute.getSelected()) { var aAttributes = oAttribute.getAttributesInternal(true); if (aAttributes.length > 0) { var oSubList; if (oAttribute.getChangeListener()) { oSubList = sap.ui.getCore().byId(oAttribute.getChangeListener().id); } else { oSubList =...
[ "function", "(", "oList", ",", "oAttribute", ")", "{", "if", "(", "oAttribute", ".", "getSelected", "(", ")", ")", "{", "var", "aAttributes", "=", "oAttribute", ".", "getAttributesInternal", "(", "true", ")", ";", "if", "(", "aAttributes", ".", "length", ...
Creates a new ExactList for the given attribute if the attribute is selected and does not have a corresponding list yet. If the attribute has a corresponding list already this list is returned.
[ "Creates", "a", "new", "ExactList", "for", "the", "given", "attribute", "if", "the", "attribute", "is", "selected", "and", "does", "not", "have", "a", "corresponding", "list", "yet", ".", "If", "the", "attribute", "has", "a", "corresponding", "list", "alread...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1403-L1420
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList, oAttribute, iSelectedIndex, bSkipNotify){ oList._lb.removeSelectedIndex(iSelectedIndex); oAttribute._clearSelection(); if (!bSkipNotify) { var aSubLists = oList.getSubLists(); for (var i = 0; i < aSubLists.length; i++) { if (aSubLists[i].getData() === oAttribute.getId()) { close(aSu...
javascript
function(oList, oAttribute, iSelectedIndex, bSkipNotify){ oList._lb.removeSelectedIndex(iSelectedIndex); oAttribute._clearSelection(); if (!bSkipNotify) { var aSubLists = oList.getSubLists(); for (var i = 0; i < aSubLists.length; i++) { if (aSubLists[i].getData() === oAttribute.getId()) { close(aSu...
[ "function", "(", "oList", ",", "oAttribute", ",", "iSelectedIndex", ",", "bSkipNotify", ")", "{", "oList", ".", "_lb", ".", "removeSelectedIndex", "(", "iSelectedIndex", ")", ";", "oAttribute", ".", "_clearSelection", "(", ")", ";", "if", "(", "!", "bSkipNot...
Sets the selection property of the given attribute and all its sub-attributes to false. Additionally the given index in the lists ListBox is unselected. ExactLists which corresponds to the cleared attributes are closed if bSkipNotify is not set.
[ "Sets", "the", "selection", "property", "of", "the", "given", "attribute", "and", "all", "its", "sub", "-", "attributes", "to", "false", ".", "Additionally", "the", "given", "index", "in", "the", "lists", "ListBox", "is", "unselected", ".", "ExactLists", "wh...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1426-L1437
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList) { var oAttr = oList._getAtt(); if (oAttr && oAttr.getChangeListener() && oAttr.getChangeListener().id === oList.getId()) { oAttr.setChangeListener(null); } }
javascript
function(oList) { var oAttr = oList._getAtt(); if (oAttr && oAttr.getChangeListener() && oAttr.getChangeListener().id === oList.getId()) { oAttr.setChangeListener(null); } }
[ "function", "(", "oList", ")", "{", "var", "oAttr", "=", "oList", ".", "_getAtt", "(", ")", ";", "if", "(", "oAttr", "&&", "oAttr", ".", "getChangeListener", "(", ")", "&&", "oAttr", ".", "getChangeListener", "(", ")", ".", "id", "===", "oList", ".",...
Removes the change listener which is attached to the lists attribute.
[ "Removes", "the", "change", "listener", "which", "is", "attached", "to", "the", "lists", "attribute", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1441-L1446
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js
function(oList) { if (oList._isTop()) { return oList; } if (!oList._oTopList) { oList._oTopList = getTopList(oList.getParent()); } return oList._oTopList; }
javascript
function(oList) { if (oList._isTop()) { return oList; } if (!oList._oTopList) { oList._oTopList = getTopList(oList.getParent()); } return oList._oTopList; }
[ "function", "(", "oList", ")", "{", "if", "(", "oList", ".", "_isTop", "(", ")", ")", "{", "return", "oList", ";", "}", "if", "(", "!", "oList", ".", "_oTopList", ")", "{", "oList", ".", "_oTopList", "=", "getTopList", "(", "oList", ".", "getParent...
Returns the top most list.
[ "Returns", "the", "top", "most", "list", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/ExactList.js#L1450-L1458
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/blanket.js
parseWithStatement
function parseWithStatement() { var object, body; if (strict) { // TODO(ikarienator): Should we update the test cases instead? skipComment(); throwErrorTolerant({}, Messages.StrictModeWith); } expectKeyword('with'); expect('('); obj...
javascript
function parseWithStatement() { var object, body; if (strict) { // TODO(ikarienator): Should we update the test cases instead? skipComment(); throwErrorTolerant({}, Messages.StrictModeWith); } expectKeyword('with'); expect('('); obj...
[ "function", "parseWithStatement", "(", ")", "{", "var", "object", ",", "body", ";", "if", "(", "strict", ")", "{", "// TODO(ikarienator): Should we update the test cases instead?", "skipComment", "(", ")", ";", "throwErrorTolerant", "(", "{", "}", ",", "Messages", ...
12.10 The with statement
[ "12", ".", "10", "The", "with", "statement" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/blanket.js#L3019-L3039
train
SAP/openui5
src/sap.ui.core/src/sap/ui/thirdparty/blanket.js
function(numSt, numCov, numBranch, numCovBr, moduleName) { var totalPercent = percentage(numCov, numSt); var statusClass = totalPercent < successRate ? "bl-error" : "bl-success"; var rowTitle = ( moduleName ? "Total for module: " + moduleName : "Global total" ); var totalsOutput = grand...
javascript
function(numSt, numCov, numBranch, numCovBr, moduleName) { var totalPercent = percentage(numCov, numSt); var statusClass = totalPercent < successRate ? "bl-error" : "bl-success"; var rowTitle = ( moduleName ? "Total for module: " + moduleName : "Global total" ); var totalsOutput = grand...
[ "function", "(", "numSt", ",", "numCov", ",", "numBranch", ",", "numCovBr", ",", "moduleName", ")", "{", "var", "totalPercent", "=", "percentage", "(", "numCov", ",", "numSt", ")", ";", "var", "statusClass", "=", "totalPercent", "<", "successRate", "?", "\...
create temporary function for use by the global totals reporter, as well as the per-module totals reporter
[ "create", "temporary", "function", "for", "use", "by", "the", "global", "totals", "reporter", "as", "well", "as", "the", "per", "-", "module", "totals", "reporter" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/thirdparty/blanket.js#L4765-L4779
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js
function(sChangeType,mParameters,mTexts) { //parameter correspond to inline change format //exception: appdescr_app_setTitle, and similar Utils.checkTexts(mTexts); this._mParameters = {}; this._mParameters.changeType = sChangeType; this._mParameters.content = mParameters; this._mParameters.texts = mText...
javascript
function(sChangeType,mParameters,mTexts) { //parameter correspond to inline change format //exception: appdescr_app_setTitle, and similar Utils.checkTexts(mTexts); this._mParameters = {}; this._mParameters.changeType = sChangeType; this._mParameters.content = mParameters; this._mParameters.texts = mText...
[ "function", "(", "sChangeType", ",", "mParameters", ",", "mTexts", ")", "{", "//parameter correspond to inline change format", "//exception: appdescr_app_setTitle, and similar", "Utils", ".", "checkTexts", "(", "mTexts", ")", ";", "this", ".", "_mParameters", "=", "{", ...
Descriptor Inline Change @param {string} sChangeType change type @param {object} [mParameters] parameters of the inline change for the provided change type @param {object} [mTexts] texts for the inline change @constructor @alias sap.ui.fl.descriptorRelated.api.DescriptorInlineChange @author SAP SE @version ${version}...
[ "Descriptor", "Inline", "Change" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory.js#L23-L33
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js
function () { this._initAndBindSelectedContentModel(); var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.getRoute("ContentDetails").attachMatched(this._onRouteMatched, this); oRouter.getRoute("ContentDetailsFlip").attachMatched(this._onRouteMatched, this); }
javascript
function () { this._initAndBindSelectedContentModel(); var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.getRoute("ContentDetails").attachMatched(this._onRouteMatched, this); oRouter.getRoute("ContentDetailsFlip").attachMatched(this._onRouteMatched, this); }
[ "function", "(", ")", "{", "this", ".", "_initAndBindSelectedContentModel", "(", ")", ";", "var", "oRouter", "=", "sap", ".", "ui", ".", "core", ".", "UIComponent", ".", "getRouterFor", "(", "this", ")", ";", "oRouter", ".", "getRoute", "(", "\"ContentDeta...
Initialize function; Handles data binding and route matching. @public
[ "Initialize", "function", ";", "Handles", "data", "binding", "and", "route", "matching", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js#L41-L46
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js
function (oModelData, oPage, oMetadata) { oModelData.metadata = oMetadata; this.oSelectedContentModel.setData(oModelData); var oCore = sap.ui.getCore(); var sIconTabBarId = this.getView().createId("contentDetailsIconTabBar"); var oIconTabBar = oCore.getElementById(sIconTabBarId); if (oIconTabBar){ ...
javascript
function (oModelData, oPage, oMetadata) { oModelData.metadata = oMetadata; this.oSelectedContentModel.setData(oModelData); var oCore = sap.ui.getCore(); var sIconTabBarId = this.getView().createId("contentDetailsIconTabBar"); var oIconTabBar = oCore.getElementById(sIconTabBarId); if (oIconTabBar){ ...
[ "function", "(", "oModelData", ",", "oPage", ",", "oMetadata", ")", "{", "oModelData", ".", "metadata", "=", "oMetadata", ";", "this", ".", "oSelectedContentModel", ".", "setData", "(", "oModelData", ")", ";", "var", "oCore", "=", "sap", ".", "ui", ".", ...
Handler if content metadata was received; Sets the received data to the current content model, updates the icon tab bar, and releases the busy mode of the current page. @param {Object} oModelData - model data of current page @param {Object} oPage - current page used to set display busy mode on/off @param {Object} oMeta...
[ "Handler", "if", "content", "metadata", "was", "received", ";", "Sets", "the", "received", "data", "to", "the", "current", "content", "model", "updates", "the", "icon", "tab", "bar", "and", "releases", "the", "busy", "mode", "of", "the", "current", "page", ...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js#L124-L137
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js
function () { var oSelectedContentModel = this.getView().getModel("selectedContent"); var oContentData = oSelectedContentModel.getData(); var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.navTo("ContentDetailsEdit", { "layer": oContentData.layer, "namespace": encodeURIComponent(oCon...
javascript
function () { var oSelectedContentModel = this.getView().getModel("selectedContent"); var oContentData = oSelectedContentModel.getData(); var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.navTo("ContentDetailsEdit", { "layer": oContentData.layer, "namespace": encodeURIComponent(oCon...
[ "function", "(", ")", "{", "var", "oSelectedContentModel", "=", "this", ".", "getView", "(", ")", ".", "getModel", "(", "\"selectedContent\"", ")", ";", "var", "oContentData", "=", "oSelectedContentModel", ".", "getData", "(", ")", ";", "var", "oRouter", "="...
Navigates to Edit mode of content. @public
[ "Navigates", "to", "Edit", "mode", "of", "content", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js#L143-L154
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js
function () { var that = this; var oDialog = new Dialog({ title: "{i18n>confirmDeletionTitle}", type: "Message", content: new Text({text: "{i18n>questionFileDeletion}"}), beginButton: new Button({ text: "{i18n>confirm}", type: ButtonType.Reject, press: function () { oDialog.c...
javascript
function () { var that = this; var oDialog = new Dialog({ title: "{i18n>confirmDeletionTitle}", type: "Message", content: new Text({text: "{i18n>questionFileDeletion}"}), beginButton: new Button({ text: "{i18n>confirm}", type: ButtonType.Reject, press: function () { oDialog.c...
[ "function", "(", ")", "{", "var", "that", "=", "this", ";", "var", "oDialog", "=", "new", "Dialog", "(", "{", "title", ":", "\"{i18n>confirmDeletionTitle}\"", ",", "type", ":", "\"Message\"", ",", "content", ":", "new", "Text", "(", "{", "text", ":", "...
Handles the deletion button; The function displays a confirmation dialog. On confirmation, the deletion of the displayed content is triggered. @public
[ "Handles", "the", "deletion", "button", ";", "The", "function", "displays", "a", "confirmation", "dialog", ".", "On", "confirmation", "the", "deletion", "of", "the", "displayed", "content", "is", "triggered", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js#L161-L190
train
SAP/openui5
src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js
function (sLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer) { return LRepConnector.deleteFile(sLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer).then(function () { var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.navTo("LayerContentMaster", { "...
javascript
function (sLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer) { return LRepConnector.deleteFile(sLayer, sNamespace, sFileName, sFileType, sTransportId, sSelectedLayer).then(function () { var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.navTo("LayerContentMaster", { "...
[ "function", "(", "sLayer", ",", "sNamespace", ",", "sFileName", ",", "sFileType", ",", "sTransportId", ",", "sSelectedLayer", ")", "{", "return", "LRepConnector", ".", "deleteFile", "(", "sLayer", ",", "sNamespace", ",", "sFileName", ",", "sFileType", ",", "sT...
Handler if a deletion was confirmed. @returns {Promise} - <code>LRepConnector</code> "deleteFile" promise @private
[ "Handler", "if", "a", "deletion", "was", "confirmed", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/ContentDetails.controller.js#L275-L283
train
SAP/openui5
src/sap.ui.core/src/sap/ui/events/F6Navigation.js
filterStaticAreaContent
function filterStaticAreaContent($Refs, aScopes) { var oStaticArea = window.document.getElementById("sap-ui-static"); if (!oStaticArea) { return $Refs; } var aScopesInStaticArea = []; for (var i = 0; i < aScopes.length; i++) { if (jQuery.contains(oStaticArea, aScopes[i])) { aScopesInStaticA...
javascript
function filterStaticAreaContent($Refs, aScopes) { var oStaticArea = window.document.getElementById("sap-ui-static"); if (!oStaticArea) { return $Refs; } var aScopesInStaticArea = []; for (var i = 0; i < aScopes.length; i++) { if (jQuery.contains(oStaticArea, aScopes[i])) { aScopesInStaticA...
[ "function", "filterStaticAreaContent", "(", "$Refs", ",", "aScopes", ")", "{", "var", "oStaticArea", "=", "window", ".", "document", ".", "getElementById", "(", "\"sap-ui-static\"", ")", ";", "if", "(", "!", "oStaticArea", ")", "{", "return", "$Refs", ";", "...
Filters all elements in the given jQuery object which are in the static UIArea and which are not in the given scopes.
[ "Filters", "all", "elements", "in", "the", "given", "jQuery", "object", "which", "are", "in", "the", "static", "UIArea", "and", "which", "are", "not", "in", "the", "given", "scopes", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/F6Navigation.js#L92-L111
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oModules, oResult) { var modules = oModules.modules, vDebugInfo = window["sap-ui-debug"]; // create tree with all modules and empty selection jQuery.each(modules, function (sName) { this.set(oResult, sName, false, true); }.bind(this)); // apply current debug info as tree selection ...
javascript
function (oModules, oResult) { var modules = oModules.modules, vDebugInfo = window["sap-ui-debug"]; // create tree with all modules and empty selection jQuery.each(modules, function (sName) { this.set(oResult, sName, false, true); }.bind(this)); // apply current debug info as tree selection ...
[ "function", "(", "oModules", ",", "oResult", ")", "{", "var", "modules", "=", "oModules", ".", "modules", ",", "vDebugInfo", "=", "window", "[", "\"sap-ui-debug\"", "]", ";", "// create tree with all modules and empty selection", "jQuery", ".", "each", "(", "modul...
Converts a module object to a module hierarchy with selections state based on sap-ui-debug @param {object} oModules Flat object of modules @param {object} oResult Hierarchical tree of modules including selection state
[ "Converts", "a", "module", "object", "to", "a", "module", "hierarchy", "with", "selections", "state", "based", "on", "sap", "-", "ui", "-", "debug" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L73-L111
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oModules) { var oHierarchy = {}, oTree = { text: "All" }, iSelectionDepth; this.modulesToHierarchy(oModules, oHierarchy); iSelectionDepth = this.setTreeNode(oHierarchy, oTree, 0, window["sap-ui-debug"] === true); if (!iSelectionDepth) { iSelectionDepth = 0; } return {...
javascript
function (oModules) { var oHierarchy = {}, oTree = { text: "All" }, iSelectionDepth; this.modulesToHierarchy(oModules, oHierarchy); iSelectionDepth = this.setTreeNode(oHierarchy, oTree, 0, window["sap-ui-debug"] === true); if (!iSelectionDepth) { iSelectionDepth = 0; } return {...
[ "function", "(", "oModules", ")", "{", "var", "oHierarchy", "=", "{", "}", ",", "oTree", "=", "{", "text", ":", "\"All\"", "}", ",", "iSelectionDepth", ";", "this", ".", "modulesToHierarchy", "(", "oModules", ",", "oHierarchy", ")", ";", "iSelectionDepth",...
Converts a module hierarchy to a bindable tree model structure The returning object contains the tree structure and depth of the deepest selected node @param {object} oModules Flat object of modules @return {{tree: {text: string}, depth: number}} The resulting tree and the depth
[ "Converts", "a", "module", "hierarchy", "to", "a", "bindable", "tree", "model", "structure", "The", "returning", "object", "contains", "the", "tree", "structure", "and", "depth", "of", "the", "deepest", "selected", "node" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L119-L137
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oHierarchy, oTree, iDepth, bSelected) { var iSelectionDepth, iInnerSelectionDepth; bSelected = oHierarchy === true || oHierarchy[""] || bSelected; oTree.nodes = []; oTree.selected = bSelected; if (bSelected) { iSelectionDepth = iDepth; } for (var sProperty in oHierarchy) { ...
javascript
function (oHierarchy, oTree, iDepth, bSelected) { var iSelectionDepth, iInnerSelectionDepth; bSelected = oHierarchy === true || oHierarchy[""] || bSelected; oTree.nodes = []; oTree.selected = bSelected; if (bSelected) { iSelectionDepth = iDepth; } for (var sProperty in oHierarchy) { ...
[ "function", "(", "oHierarchy", ",", "oTree", ",", "iDepth", ",", "bSelected", ")", "{", "var", "iSelectionDepth", ",", "iInnerSelectionDepth", ";", "bSelected", "=", "oHierarchy", "===", "true", "||", "oHierarchy", "[", "\"\"", "]", "||", "bSelected", ";", "...
Recursively constructs tree nodes in a format that it can be bound to a sap.m.Tree control @param {object} oHierarchy The module hierarchy node with selected state @param {object} oTree The tree node to be filled with the hierarchy information @param {int} iDepth The current depth of the recursion @param {boolean} bSel...
[ "Recursively", "constructs", "tree", "nodes", "in", "a", "format", "that", "it", "can", "be", "bound", "to", "a", "sap", ".", "m", ".", "Tree", "control" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L147-L174
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oTree) { var oResult = {}; oTree.selected = this.isNodeSelected(oTree); this.setHierarchyNode(oResult, oTree); return oResult; }
javascript
function (oTree) { var oResult = {}; oTree.selected = this.isNodeSelected(oTree); this.setHierarchyNode(oResult, oTree); return oResult; }
[ "function", "(", "oTree", ")", "{", "var", "oResult", "=", "{", "}", ";", "oTree", ".", "selected", "=", "this", ".", "isNodeSelected", "(", "oTree", ")", ";", "this", ".", "setHierarchyNode", "(", "oResult", ",", "oTree", ")", ";", "return", "oResult"...
Converts a bindable tree back to the module hierarchy structure @param {object} oTree The tree to be converted @return {object} The module hierarchy with the current selection state of the UI
[ "Converts", "a", "bindable", "tree", "back", "to", "the", "module", "hierarchy", "structure" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L181-L186
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oNode) { var iSelectedNodesCount = 0, oChildNode; for (var i = 0; i < oNode.nodes.length; i++) { oChildNode = oNode.nodes[i]; if (oChildNode.nodes.length) { oChildNode.selected = this.isNodeSelected(oChildNode); } if (oChildNode.selected) { iSelectedNodesCount++; } ...
javascript
function (oNode) { var iSelectedNodesCount = 0, oChildNode; for (var i = 0; i < oNode.nodes.length; i++) { oChildNode = oNode.nodes[i]; if (oChildNode.nodes.length) { oChildNode.selected = this.isNodeSelected(oChildNode); } if (oChildNode.selected) { iSelectedNodesCount++; } ...
[ "function", "(", "oNode", ")", "{", "var", "iSelectedNodesCount", "=", "0", ",", "oChildNode", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "oNode", ".", "nodes", ".", "length", ";", "i", "++", ")", "{", "oChildNode", "=", "oNode", ".", ...
Checks and update the tree model based on selected child nodes. @param oNode The tree to be updated @returns {boolean} The selected of the node.
[ "Checks", "and", "update", "the", "tree", "model", "based", "on", "selected", "child", "nodes", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L193-L208
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oHierarchy, oTree) { if (oTree.selected) { oHierarchy[""] = true; } for (var i = 0; i < oTree.nodes.length; i++) { oHierarchy[oTree.nodes[i].text] = {}; if (oTree.nodes[i].nodes.length) { this.setHierarchyNode(oHierarchy[oTree.nodes[i].text], oTree.nodes[i]); } else { oHie...
javascript
function (oHierarchy, oTree) { if (oTree.selected) { oHierarchy[""] = true; } for (var i = 0; i < oTree.nodes.length; i++) { oHierarchy[oTree.nodes[i].text] = {}; if (oTree.nodes[i].nodes.length) { this.setHierarchyNode(oHierarchy[oTree.nodes[i].text], oTree.nodes[i]); } else { oHie...
[ "function", "(", "oHierarchy", ",", "oTree", ")", "{", "if", "(", "oTree", ".", "selected", ")", "{", "oHierarchy", "[", "\"\"", "]", "=", "true", ";", "}", "for", "(", "var", "i", "=", "0", ";", "i", "<", "oTree", ".", "nodes", ".", "length", ...
Recursively converts a bindable tree node to a hierarchical model tree node @param {object} oHierarchy The module hierarchy node with selected state @param {object} oTree The tree node to be filled with the hierarchy information
[ "Recursively", "converts", "a", "bindable", "tree", "node", "to", "a", "hierarchical", "model", "tree", "node" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L214-L227
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oTree, sSeparator) { var oObject = this.toHierarchy(oTree), aFilters = []; function collect(sName, oObject) { var aChildren, bChildren; if (typeof oObject === 'object') { if (oObject['']) { aFilters.push(sName + '/'); return; } aChildren = Object.keys(oObject); ...
javascript
function (oTree, sSeparator) { var oObject = this.toHierarchy(oTree), aFilters = []; function collect(sName, oObject) { var aChildren, bChildren; if (typeof oObject === 'object') { if (oObject['']) { aFilters.push(sName + '/'); return; } aChildren = Object.keys(oObject); ...
[ "function", "(", "oTree", ",", "sSeparator", ")", "{", "var", "oObject", "=", "this", ".", "toHierarchy", "(", "oTree", ")", ",", "aFilters", "=", "[", "]", ";", "function", "collect", "(", "sName", ",", "oObject", ")", "{", "var", "aChildren", ",", ...
Converts a bindable tree structure to a valid value for sap-ui-debug @param {object} oTree The tree to be converted @param {string} sSeparator=, A separator character, default is a comma @return {string} The tree selection represented as string
[ "Converts", "a", "bindable", "tree", "structure", "to", "a", "valid", "value", "for", "sap", "-", "ui", "-", "debug" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L235-L270
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oTree) { var sDebugString = this.toDebugInfo(oTree); if (sDebugString === true) { return 1; } else if (sDebugString) { return sDebugString.split(",").length; } return 0; }
javascript
function (oTree) { var sDebugString = this.toDebugInfo(oTree); if (sDebugString === true) { return 1; } else if (sDebugString) { return sDebugString.split(",").length; } return 0; }
[ "function", "(", "oTree", ")", "{", "var", "sDebugString", "=", "this", ".", "toDebugInfo", "(", "oTree", ")", ";", "if", "(", "sDebugString", "===", "true", ")", "{", "return", "1", ";", "}", "else", "if", "(", "sDebugString", ")", "{", "return", "s...
Calculates the number of currently selected debug modules @param {object} oTree The tree to be analyzed @return {int} The amount of selected tree nodes
[ "Calculates", "the", "number", "of", "currently", "selected", "debug", "modules" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L298-L307
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oTree, bSelected) { oTree.selected = bSelected; for (var i = 0; i < oTree.nodes.length; i++) { this.recursiveSelect(oTree.nodes[i], bSelected); } }
javascript
function (oTree, bSelected) { oTree.selected = bSelected; for (var i = 0; i < oTree.nodes.length; i++) { this.recursiveSelect(oTree.nodes[i], bSelected); } }
[ "function", "(", "oTree", ",", "bSelected", ")", "{", "oTree", ".", "selected", "=", "bSelected", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "oTree", ".", "nodes", ".", "length", ";", "i", "++", ")", "{", "this", ".", "recursiveSelect", ...
Recursively selected or deselects a branch of the tree @param {object} oTree The tree to be selected @param {boolean} bSelected Whether the branch should be selected or not
[ "Recursively", "selected", "or", "deselects", "a", "branch", "of", "the", "tree" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js#L314-L319
train
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/layout/PositionContainer.js
function(oThis, sChangeType) { var oLayout = oThis.getParent(); if (oLayout) { oLayout.contentChanged(oThis, sChangeType); } }
javascript
function(oThis, sChangeType) { var oLayout = oThis.getParent(); if (oLayout) { oLayout.contentChanged(oThis, sChangeType); } }
[ "function", "(", "oThis", ",", "sChangeType", ")", "{", "var", "oLayout", "=", "oThis", ".", "getParent", "(", ")", ";", "if", "(", "oLayout", ")", "{", "oLayout", ".", "contentChanged", "(", "oThis", ",", "sChangeType", ")", ";", "}", "}" ]
Notifies the layout of this container about the change of the given type. @private
[ "Notifies", "the", "layout", "of", "this", "container", "about", "the", "change", "of", "the", "given", "type", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/layout/PositionContainer.js#L349-L354
train
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/layout/PositionContainer.js
function(oControl, sPropertyName) { var oPropertyInfo = oControl.getMetadata().getProperty(sPropertyName); if (oPropertyInfo && oPropertyInfo.type === 'sap.ui.core.CSSSize') { return oPropertyInfo; } return null; }
javascript
function(oControl, sPropertyName) { var oPropertyInfo = oControl.getMetadata().getProperty(sPropertyName); if (oPropertyInfo && oPropertyInfo.type === 'sap.ui.core.CSSSize') { return oPropertyInfo; } return null; }
[ "function", "(", "oControl", ",", "sPropertyName", ")", "{", "var", "oPropertyInfo", "=", "oControl", ".", "getMetadata", "(", ")", ".", "getProperty", "(", "sPropertyName", ")", ";", "if", "(", "oPropertyInfo", "&&", "oPropertyInfo", ".", "type", "===", "'s...
Checks whether the given control has a property with the given name and type 'sap.ui.core.CSSSize' and returns the corresponding metadata object. @private
[ "Checks", "whether", "the", "given", "control", "has", "a", "property", "with", "the", "given", "name", "and", "type", "sap", ".", "ui", ".", "core", ".", "CSSSize", "and", "returns", "the", "corresponding", "metadata", "object", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/layout/PositionContainer.js#L405-L411
train
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/layout/PositionContainer.js
function(oEvent){ var sProp = oEvent.getParameter("name"); var parent = this.getParent(); if ((sProp === "width" || sProp === "height") && parent && parent.getDomRef()) { notifyLayoutOnChange(this, "CTRL_POS"); } }
javascript
function(oEvent){ var sProp = oEvent.getParameter("name"); var parent = this.getParent(); if ((sProp === "width" || sProp === "height") && parent && parent.getDomRef()) { notifyLayoutOnChange(this, "CTRL_POS"); } }
[ "function", "(", "oEvent", ")", "{", "var", "sProp", "=", "oEvent", ".", "getParameter", "(", "\"name\"", ")", ";", "var", "parent", "=", "this", ".", "getParent", "(", ")", ";", "if", "(", "(", "sProp", "===", "\"width\"", "||", "sProp", "===", "\"h...
Handler on child control to check for property changes on width or height attribute. @private
[ "Handler", "on", "child", "control", "to", "check", "for", "property", "changes", "on", "width", "or", "height", "attribute", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/layout/PositionContainer.js#L437-L444
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/Route.js
function () { EventProvider.prototype.destroy.apply(this); this._aPattern = null; this._aRoutes = null; this._oParent = null; this._oConfig = null; this.bIsDestroyed = true; return this; }
javascript
function () { EventProvider.prototype.destroy.apply(this); this._aPattern = null; this._aRoutes = null; this._oParent = null; this._oConfig = null; this.bIsDestroyed = true; return this; }
[ "function", "(", ")", "{", "EventProvider", ".", "prototype", ".", "destroy", ".", "apply", "(", "this", ")", ";", "this", ".", "_aPattern", "=", "null", ";", "this", ".", "_aRoutes", "=", "null", ";", "this", ".", "_oParent", "=", "null", ";", "this...
Destroys a route @public @returns { sap.ui.core.routing.Route } this for chaining.
[ "Destroys", "a", "route" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/routing/Route.js#L179-L190
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/IconPool.js
getInfo
function getInfo() { var collection = mRegistry[collectionName]; var info = collection && collection[iconName]; // convert raw data lazily to the icon info if (typeof info === 'number') { mRegistry[collectionName][iconName] = undefined; // avoid duplicate icon warning info = IconPool.addIcon(...
javascript
function getInfo() { var collection = mRegistry[collectionName]; var info = collection && collection[iconName]; // convert raw data lazily to the icon info if (typeof info === 'number') { mRegistry[collectionName][iconName] = undefined; // avoid duplicate icon warning info = IconPool.addIcon(...
[ "function", "getInfo", "(", ")", "{", "var", "collection", "=", "mRegistry", "[", "collectionName", "]", ";", "var", "info", "=", "collection", "&&", "collection", "[", "iconName", "]", ";", "// convert raw data lazily to the icon info", "if", "(", "typeof", "in...
retrieves the icon info from the internal registry
[ "retrieves", "the", "icon", "info", "from", "the", "internal", "registry" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/IconPool.js#L931-L947
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/IconPool.js
loadFont
function loadFont(oFontMetadata) { for (var sKey in oFontMetadata) { oFontMetadata[sKey] = parseInt(oFontMetadata[sKey], 16); } mRegistry[collectionName] = oFontMetadata; IconPool.insertFontFaceStyle(oConfig.fontFamily, oConfig.fontURI, collectionName); mFontRegistry[collectionName].metadataLoa...
javascript
function loadFont(oFontMetadata) { for (var sKey in oFontMetadata) { oFontMetadata[sKey] = parseInt(oFontMetadata[sKey], 16); } mRegistry[collectionName] = oFontMetadata; IconPool.insertFontFaceStyle(oConfig.fontFamily, oConfig.fontURI, collectionName); mFontRegistry[collectionName].metadataLoa...
[ "function", "loadFont", "(", "oFontMetadata", ")", "{", "for", "(", "var", "sKey", "in", "oFontMetadata", ")", "{", "oFontMetadata", "[", "sKey", "]", "=", "parseInt", "(", "oFontMetadata", "[", "sKey", "]", ",", "16", ")", ";", "}", "mRegistry", "[", ...
add icons to registry and insert the font style
[ "add", "icons", "to", "registry", "and", "insert", "the", "font", "style" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/IconPool.js#L1227-L1234
train
SAP/openui5
src/sap.ui.commons/src/sap/ui/commons/Toolbar.js
function (aNavigableItems) { // Initialize the ItemNavigation if required if (!this.oItemNavigation) { this.oItemNavigation = new ItemNavigation(); this.addDelegate(this.oItemNavigation); } this.oItemNavigation.setRootDomRef(ToolbarRenderer.getPopupArea(this.oToolbar)); this.oItemNavigati...
javascript
function (aNavigableItems) { // Initialize the ItemNavigation if required if (!this.oItemNavigation) { this.oItemNavigation = new ItemNavigation(); this.addDelegate(this.oItemNavigation); } this.oItemNavigation.setRootDomRef(ToolbarRenderer.getPopupArea(this.oToolbar)); this.oItemNavigati...
[ "function", "(", "aNavigableItems", ")", "{", "// Initialize the ItemNavigation if required", "if", "(", "!", "this", ".", "oItemNavigation", ")", "{", "this", ".", "oItemNavigation", "=", "new", "ItemNavigation", "(", ")", ";", "this", ".", "addDelegate", "(", ...
Initializes the ItemNavigation for this popup and focuses the first item @param aNavigableItems The DOM references of the toolbar items displayed in this popup @private
[ "Initializes", "the", "ItemNavigation", "for", "this", "popup", "and", "focuses", "the", "first", "item" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.commons/src/sap/ui/commons/Toolbar.js#L817-L827
train
SAP/openui5
src/sap.uxap/src/sap/uxap/component/ObjectPageLayoutUXDrivenFactory.controller.js
function (oModel) { var bHasPendingRequest = jQueryDOM.isEmptyObject(oModel.getData()); //ensure a 1 way binding otherwise it cause any block property change to update the entire subSections oModel.setDefaultBindingMode(BindingMode.OneWay); var fnHeaderFactory = jQueryDOM.proxy(function () { if (bHa...
javascript
function (oModel) { var bHasPendingRequest = jQueryDOM.isEmptyObject(oModel.getData()); //ensure a 1 way binding otherwise it cause any block property change to update the entire subSections oModel.setDefaultBindingMode(BindingMode.OneWay); var fnHeaderFactory = jQueryDOM.proxy(function () { if (bHa...
[ "function", "(", "oModel", ")", "{", "var", "bHasPendingRequest", "=", "jQueryDOM", ".", "isEmptyObject", "(", "oModel", ".", "getData", "(", ")", ")", ";", "//ensure a 1 way binding otherwise it cause any block property change to update the entire subSections", "oModel", "...
injects the header based on configuration @param {object} oModel model instanse
[ "injects", "the", "header", "based", "on", "configuration" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.uxap/src/sap/uxap/component/ObjectPageLayoutUXDrivenFactory.controller.js#L32-L67
train
SAP/openui5
src/sap.uxap/src/sap/uxap/component/ObjectPageLayoutUXDrivenFactory.controller.js
function (sStaticHandlerName) { var fnNameSpace = window, aNameSpaceParts = sStaticHandlerName.split('.'); try { jQueryDOM.each(aNameSpaceParts, function (iIndex, sNameSpacePart) { fnNameSpace = fnNameSpace[sNameSpacePart]; }); } catch (sError) { Log.error("ObjectPageLayoutFactory :: undefin...
javascript
function (sStaticHandlerName) { var fnNameSpace = window, aNameSpaceParts = sStaticHandlerName.split('.'); try { jQueryDOM.each(aNameSpaceParts, function (iIndex, sNameSpacePart) { fnNameSpace = fnNameSpace[sNameSpacePart]; }); } catch (sError) { Log.error("ObjectPageLayoutFactory :: undefin...
[ "function", "(", "sStaticHandlerName", ")", "{", "var", "fnNameSpace", "=", "window", ",", "aNameSpaceParts", "=", "sStaticHandlerName", ".", "split", "(", "'.'", ")", ";", "try", "{", "jQueryDOM", ".", "each", "(", "aNameSpaceParts", ",", "function", "(", "...
determine the static function to use from its name @param {string} sStaticHandlerName the name of the handler @returns {*|window|window} function
[ "determine", "the", "static", "function", "to", "use", "from", "its", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.uxap/src/sap/uxap/component/ObjectPageLayoutUXDrivenFactory.controller.js#L112-L126
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_V2Requestor.js
addSelects
function addSelects(vSelects, sExpandPath) { if (!Array.isArray(vSelects)) { vSelects = vSelects.split(","); } vSelects.forEach(function (sSelect) { var iIndex = sSelect.indexOf("/"); if (iIndex >= 0 && sSelect.indexOf(".") < 0) { // only strip if there is no type cast and no bound action (av...
javascript
function addSelects(vSelects, sExpandPath) { if (!Array.isArray(vSelects)) { vSelects = vSelects.split(","); } vSelects.forEach(function (sSelect) { var iIndex = sSelect.indexOf("/"); if (iIndex >= 0 && sSelect.indexOf(".") < 0) { // only strip if there is no type cast and no bound action (av...
[ "function", "addSelects", "(", "vSelects", ",", "sExpandPath", ")", "{", "if", "(", "!", "Array", ".", "isArray", "(", "vSelects", ")", ")", "{", "vSelects", "=", "vSelects", ".", "split", "(", "\",\"", ")", ";", "}", "vSelects", ".", "forEach", "(", ...
Strips all selects to their first segment and adds them to mSelects. @param {string|string[]} vSelects The selects for the given expand path as comma-separated list or array @param {string} [sExpandPath] The expand path
[ "Strips", "all", "selects", "to", "their", "first", "segment", "and", "adds", "them", "to", "mSelects", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_V2Requestor.js#L643-L657
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_V2Requestor.js
parseAndCheck
function parseAndCheck(oDateFormat, sValue) { var oDate = oDateFormat.parse(sValue); if (!oDate) { throw new Error("Not a valid " + oPropertyMetadata.$Type + " value: " + sValue); } return oDate; }
javascript
function parseAndCheck(oDateFormat, sValue) { var oDate = oDateFormat.parse(sValue); if (!oDate) { throw new Error("Not a valid " + oPropertyMetadata.$Type + " value: " + sValue); } return oDate; }
[ "function", "parseAndCheck", "(", "oDateFormat", ",", "sValue", ")", "{", "var", "oDate", "=", "oDateFormat", ".", "parse", "(", "sValue", ")", ";", "if", "(", "!", "oDate", ")", "{", "throw", "new", "Error", "(", "\"Not a valid \"", "+", "oPropertyMetadat...
Parse using the given formatter and check that the result is valid
[ "Parse", "using", "the", "given", "formatter", "and", "check", "that", "the", "result", "is", "valid" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_V2Requestor.js#L769-L775
train
SAP/openui5
src/sap.ui.core/src/sap/ui/dom/jquery/Aria.js
removeFromAttributeList
function removeFromAttributeList(sAttribute, sValue) { var sAttributes = this.attr(sAttribute) || "", aAttributes = sAttributes.split(" "), iIndex = aAttributes.indexOf(sValue); if (iIndex == -1) { return this; } aAttributes.splice(iIndex, 1); if (aAttributes.length) { this.attr(sAttribute, aAtt...
javascript
function removeFromAttributeList(sAttribute, sValue) { var sAttributes = this.attr(sAttribute) || "", aAttributes = sAttributes.split(" "), iIndex = aAttributes.indexOf(sValue); if (iIndex == -1) { return this; } aAttributes.splice(iIndex, 1); if (aAttributes.length) { this.attr(sAttribute, aAtt...
[ "function", "removeFromAttributeList", "(", "sAttribute", ",", "sValue", ")", "{", "var", "sAttributes", "=", "this", ".", "attr", "(", "sAttribute", ")", "||", "\"\"", ",", "aAttributes", "=", "sAttributes", ".", "split", "(", "\" \"", ")", ",", "iIndex", ...
Remove space separated value from the given attribute. @this {jQuery} jQuery context @param {string} sAttribute The name of the attribute. @param {string} sValue The value of the attribute to be inserted. @return {jQuery} <code>this</code> to allow method chaining. @author SAP SE @function @private
[ "Remove", "space", "separated", "value", "from", "the", "given", "attribute", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/dom/jquery/Aria.js#L62-L79
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/ODataTreeBindingAdapter.js
function() { // ensure only TreeBindings are enhanced which have not been enhanced yet if (!(this instanceof TreeBinding) || this._bIsAdapted) { return; } TreeBindingAdapter.apply(this); // apply the methods of the adapters prototype to the TreeBinding instance for (var fn in ODataTreeBindingAdapter.p...
javascript
function() { // ensure only TreeBindings are enhanced which have not been enhanced yet if (!(this instanceof TreeBinding) || this._bIsAdapted) { return; } TreeBindingAdapter.apply(this); // apply the methods of the adapters prototype to the TreeBinding instance for (var fn in ODataTreeBindingAdapter.p...
[ "function", "(", ")", "{", "// ensure only TreeBindings are enhanced which have not been enhanced yet", "if", "(", "!", "(", "this", "instanceof", "TreeBinding", ")", "||", "this", ".", "_bIsAdapted", ")", "{", "return", ";", "}", "TreeBindingAdapter", ".", "apply", ...
Adapter for TreeBindings to add the ListBinding functionality and use the tree structure in list based controls. Only usable with the sap.ui.table.TreeTable control. The functions defined here are only available when you are using a TreeTable and an ODataModel. @alias sap.ui.model.odata.ODataTreeBindingAdapter @functi...
[ "Adapter", "for", "TreeBindings", "to", "add", "the", "ListBinding", "functionality", "and", "use", "the", "tree", "structure", "in", "list", "based", "controls", ".", "Only", "usable", "with", "the", "sap", ".", "ui", ".", "table", ".", "TreeTable", "contro...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/ODataTreeBindingAdapter.js#L22-L66
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Cache.js
cleanUp
function cleanUp() { _Helper.removeByPath(that.mPostRequests, sPath, oEntityData); aCollection.splice(aCollection.indexOf(oEntityData), 1); aCollection.$created -= 1; addToCount(that.mChangeListeners, sPath, aCollection, -1); delete aCollection.$byPredicate[sTransientPredicate]; if (!sPath) { // N...
javascript
function cleanUp() { _Helper.removeByPath(that.mPostRequests, sPath, oEntityData); aCollection.splice(aCollection.indexOf(oEntityData), 1); aCollection.$created -= 1; addToCount(that.mChangeListeners, sPath, aCollection, -1); delete aCollection.$byPredicate[sTransientPredicate]; if (!sPath) { // N...
[ "function", "cleanUp", "(", ")", "{", "_Helper", ".", "removeByPath", "(", "that", ".", "mPostRequests", ",", "sPath", ",", "oEntityData", ")", ";", "aCollection", ".", "splice", "(", "aCollection", ".", "indexOf", "(", "oEntityData", ")", ",", "1", ")", ...
Clean-up when the create has been canceled.
[ "Clean", "-", "up", "when", "the", "create", "has", "been", "canceled", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Cache.js#L289-L300
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Cache.js
missingValue
function missingValue(oValue, sSegment, iPathLength) { var sPropertyPath = "", sReadLink, sServiceUrl; if (sPath[0] !== '(') { sPropertyPath += "/"; } sPropertyPath += sPath.split("/").slice(0, iPathLength).join("/"); return that.oRequestor.getModelInterface() .fetchMetadata(that.sMetaPa...
javascript
function missingValue(oValue, sSegment, iPathLength) { var sPropertyPath = "", sReadLink, sServiceUrl; if (sPath[0] !== '(') { sPropertyPath += "/"; } sPropertyPath += sPath.split("/").slice(0, iPathLength).join("/"); return that.oRequestor.getModelInterface() .fetchMetadata(that.sMetaPa...
[ "function", "missingValue", "(", "oValue", ",", "sSegment", ",", "iPathLength", ")", "{", "var", "sPropertyPath", "=", "\"\"", ",", "sReadLink", ",", "sServiceUrl", ";", "if", "(", "sPath", "[", "0", "]", "!==", "'('", ")", "{", "sPropertyPath", "+=", "\...
Determine the implicit value if the value is missing in the cache. Report an invalid segment if there is no implicit value.
[ "Determine", "the", "implicit", "value", "if", "the", "value", "is", "missing", "in", "the", "cache", ".", "Report", "an", "invalid", "segment", "if", "there", "is", "no", "implicit", "value", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Cache.js#L429-L466
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Cache.js
addFilter
function addFilter(oFilterElement) { var sFilter = _Helper.getKeyFilter(oFilterElement, that.sMetaPath, mTypeForMetaPath); aFilters.push(sFilter); return sFilter; }
javascript
function addFilter(oFilterElement) { var sFilter = _Helper.getKeyFilter(oFilterElement, that.sMetaPath, mTypeForMetaPath); aFilters.push(sFilter); return sFilter; }
[ "function", "addFilter", "(", "oFilterElement", ")", "{", "var", "sFilter", "=", "_Helper", ".", "getKeyFilter", "(", "oFilterElement", ",", "that", ".", "sMetaPath", ",", "mTypeForMetaPath", ")", ";", "aFilters", ".", "push", "(", "sFilter", ")", ";", "retu...
Adds the filter for the given element to the array of filters. @param {object} oFilterElement The element for which a filter is computed @returns {string} The filter for the given element; <code>undefined</code> if a key property for the element is missing.
[ "Adds", "the", "filter", "for", "the", "given", "element", "to", "the", "array", "of", "filters", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Cache.js#L1844-L1849
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js
function(oEvent) { var oCallout = oEvent.getParameter("callout"); switch (oEvent.getParameter("type")) { case "added": case "removed": var oNotifier = oEvent.getParameter("notifier"); if (this.getMessageNotifier() && this.getMessageNotifier().getId() === oNotifier.getId()) { // clone the mess...
javascript
function(oEvent) { var oCallout = oEvent.getParameter("callout"); switch (oEvent.getParameter("type")) { case "added": case "removed": var oNotifier = oEvent.getParameter("notifier"); if (this.getMessageNotifier() && this.getMessageNotifier().getId() === oNotifier.getId()) { // clone the mess...
[ "function", "(", "oEvent", ")", "{", "var", "oCallout", "=", "oEvent", ".", "getParameter", "(", "\"callout\"", ")", ";", "switch", "(", "oEvent", ".", "getParameter", "(", "\"type\"", ")", ")", "{", "case", "\"added\"", ":", "case", "\"removed\"", ":", ...
This is the eventListener of the NotificationBar. All triggered events from the bar's notifiers will be caught here. @param {sap.ui.base.Event} oEvent the event will all needed stuff. It can contain 'added', 'removed' or 'openCallout' as a parameter to identify the event.
[ "This", "is", "the", "eventListener", "of", "the", "NotificationBar", ".", "All", "triggered", "events", "from", "the", "bar", "s", "notifiers", "will", "be", "caught", "here", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js#L404-L525
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js
function(oThis, oMN) { if (oMN && oMN.hasItems()) { var $messageCount = oMN.$("counter"); // remove all possible classes $messageCount.removeClass("sapUiMessageInformation"); $messageCount.removeClass("sapUiMessageSuccess"); $messageCount.removeClass("sapUiMessageWarning"); $messageCount.rem...
javascript
function(oThis, oMN) { if (oMN && oMN.hasItems()) { var $messageCount = oMN.$("counter"); // remove all possible classes $messageCount.removeClass("sapUiMessageInformation"); $messageCount.removeClass("sapUiMessageSuccess"); $messageCount.removeClass("sapUiMessageWarning"); $messageCount.rem...
[ "function", "(", "oThis", ",", "oMN", ")", "{", "if", "(", "oMN", "&&", "oMN", ".", "hasItems", "(", ")", ")", "{", "var", "$messageCount", "=", "oMN", ".", "$", "(", "\"counter\"", ")", ";", "// remove all possible classes", "$messageCount", ".", "remov...
This method sets the corresponding CSS class to the message notifier's counter to set its corresponding color and sets the corresponding ARIA information to the notifier's description element @private
[ "This", "method", "sets", "the", "corresponding", "CSS", "class", "to", "the", "message", "notifier", "s", "counter", "to", "set", "its", "corresponding", "color", "and", "sets", "the", "corresponding", "ARIA", "information", "to", "the", "notifier", "s", "des...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js#L986-L1011
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js
function(oThis) { var aNotifiers = oThis.getNotifiers(); for (var i = 0; i < aNotifiers.length; i++) { var iCount = aNotifiers[i].getMessages().length; var sKey = "NOTIBAR_NOTIFIER_COUNT_TEXT_" + (iCount === 1 ? "SING" : "PL"); fnSetNotifierDescription(oThis, aNotifiers[i], sKey, iCount); } }
javascript
function(oThis) { var aNotifiers = oThis.getNotifiers(); for (var i = 0; i < aNotifiers.length; i++) { var iCount = aNotifiers[i].getMessages().length; var sKey = "NOTIBAR_NOTIFIER_COUNT_TEXT_" + (iCount === 1 ? "SING" : "PL"); fnSetNotifierDescription(oThis, aNotifiers[i], sKey, iCount); } }
[ "function", "(", "oThis", ")", "{", "var", "aNotifiers", "=", "oThis", ".", "getNotifiers", "(", ")", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "aNotifiers", ".", "length", ";", "i", "++", ")", "{", "var", "iCount", "=", "aNotifiers", ...
Sets all description of all notifiers @private
[ "Sets", "all", "description", "of", "all", "notifiers" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js#L1018-L1027
train
SAP/openui5
src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js
function(that) { var mNotifiers = that.getNotifiers(); for (var i = 0; i < mNotifiers.length; i++) { var oNotifier = mNotifiers[i]; oNotifier._oCallout.close(); } if (that.getMessageNotifier()) { that.getMessageNotifier()._oCallout.close(); } }
javascript
function(that) { var mNotifiers = that.getNotifiers(); for (var i = 0; i < mNotifiers.length; i++) { var oNotifier = mNotifiers[i]; oNotifier._oCallout.close(); } if (that.getMessageNotifier()) { that.getMessageNotifier()._oCallout.close(); } }
[ "function", "(", "that", ")", "{", "var", "mNotifiers", "=", "that", ".", "getNotifiers", "(", ")", ";", "for", "(", "var", "i", "=", "0", ";", "i", "<", "mNotifiers", ".", "length", ";", "i", "++", ")", "{", "var", "oNotifier", "=", "mNotifiers", ...
Forces a close of all Callouts of all notifiers of the NotificationBar.
[ "Forces", "a", "close", "of", "all", "Callouts", "of", "all", "notifiers", "of", "the", "NotificationBar", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.ux3/src/sap/ui/ux3/NotificationBar.js#L1245-L1257
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sWidth, sCalendarType) { assert(sWidth == "narrow" || sWidth == "abbreviated" || sWidth == "wide", "sWidth must be narrow, abbreviated or wide"); return this._get(getCLDRCalendarName(sCalendarType), "dayPeriods", "stand-alone", sWidth); }
javascript
function(sWidth, sCalendarType) { assert(sWidth == "narrow" || sWidth == "abbreviated" || sWidth == "wide", "sWidth must be narrow, abbreviated or wide"); return this._get(getCLDRCalendarName(sCalendarType), "dayPeriods", "stand-alone", sWidth); }
[ "function", "(", "sWidth", ",", "sCalendarType", ")", "{", "assert", "(", "sWidth", "==", "\"narrow\"", "||", "sWidth", "==", "\"abbreviated\"", "||", "sWidth", "==", "\"wide\"", ",", "\"sWidth must be narrow, abbreviated or wide\"", ")", ";", "return", "this", "....
Get standalone day periods in width "narrow", "abbreviated" or "wide". @param {string} sWidth the required width for the day period names @param {sap.ui.core.CalendarType} [sCalendarType] the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale. @r...
[ "Get", "standalone", "day", "periods", "in", "width", "narrow", "abbreviated", "or", "wide", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L194-L197
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sStyle, sCalendarType) { assert(sStyle == "short" || sStyle == "medium" || sStyle == "long" || sStyle == "full", "sStyle must be short, medium, long or full"); return this._get(getCLDRCalendarName(sCalendarType), "dateFormats", sStyle); }
javascript
function(sStyle, sCalendarType) { assert(sStyle == "short" || sStyle == "medium" || sStyle == "long" || sStyle == "full", "sStyle must be short, medium, long or full"); return this._get(getCLDRCalendarName(sCalendarType), "dateFormats", sStyle); }
[ "function", "(", "sStyle", ",", "sCalendarType", ")", "{", "assert", "(", "sStyle", "==", "\"short\"", "||", "sStyle", "==", "\"medium\"", "||", "sStyle", "==", "\"long\"", "||", "sStyle", "==", "\"full\"", ",", "\"sStyle must be short, medium, long or full\"", ")...
Get date pattern in format "short", "medium", "long" or "full". @param {string} sStyle the required style for the date pattern @param {sap.ui.core.CalendarType} [sCalendarType] the type of calendar. If it's not set, it falls back to the calendar type either set in configuration or calculated from locale. @returns {str...
[ "Get", "date", "pattern", "in", "format", "short", "medium", "long", "or", "full", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L207-L210
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sDateStyle, sTimeStyle, sCalendarType) { assert(sDateStyle == "short" || sDateStyle == "medium" || sDateStyle == "long" || sDateStyle == "full", "sStyle must be short, medium, long or full"); assert(sTimeStyle == "short" || sTimeStyle == "medium" || sTimeStyle == "long" || sTimeStyle == "full", "sStyle m...
javascript
function(sDateStyle, sTimeStyle, sCalendarType) { assert(sDateStyle == "short" || sDateStyle == "medium" || sDateStyle == "long" || sDateStyle == "full", "sStyle must be short, medium, long or full"); assert(sTimeStyle == "short" || sTimeStyle == "medium" || sTimeStyle == "long" || sTimeStyle == "full", "sStyle m...
[ "function", "(", "sDateStyle", ",", "sTimeStyle", ",", "sCalendarType", ")", "{", "assert", "(", "sDateStyle", "==", "\"short\"", "||", "sDateStyle", "==", "\"medium\"", "||", "sDateStyle", "==", "\"long\"", "||", "sDateStyle", "==", "\"full\"", ",", "\"sStyle m...
Get combined datetime pattern with given date and and time style. @param {string} sDateStyle the required style for the date part @param {string} sTimeStyle the required style for the time part @param {sap.ui.core.CalendarType} [sCalendarType] the type of calendar. If it's not set, it falls back to the calendar type e...
[ "Get", "combined", "datetime", "pattern", "with", "given", "date", "and", "and", "time", "style", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L247-L254
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sPattern, sCalendarType) { var oIntervalFormats = this._get(getCLDRCalendarName(sCalendarType), "dateTimeFormats", "intervalFormats"), sFallbackPattern = oIntervalFormats.intervalFormatFallback; return sFallbackPattern.replace(/\{(0|1)\}/g, sPattern); }
javascript
function(sPattern, sCalendarType) { var oIntervalFormats = this._get(getCLDRCalendarName(sCalendarType), "dateTimeFormats", "intervalFormats"), sFallbackPattern = oIntervalFormats.intervalFormatFallback; return sFallbackPattern.replace(/\{(0|1)\}/g, sPattern); }
[ "function", "(", "sPattern", ",", "sCalendarType", ")", "{", "var", "oIntervalFormats", "=", "this", ".", "_get", "(", "getCLDRCalendarName", "(", "sCalendarType", ")", ",", "\"dateTimeFormats\"", ",", "\"intervalFormats\"", ")", ",", "sFallbackPattern", "=", "oIn...
Get combined interval pattern using a given pattern and the fallback interval pattern. If a skeleton based pattern is not available or not wanted, this method can be used to create an interval pattern based on a given pattern, using the fallback interval pattern. @param {string} sPattern the single date pattern to us...
[ "Get", "combined", "interval", "pattern", "using", "a", "given", "pattern", "and", "the", "fallback", "interval", "pattern", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L319-L323
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sSkeleton, vGreatestDiff, sCalendarType) { var oAvailableFormats = this._get(getCLDRCalendarName(sCalendarType), "dateTimeFormats", "intervalFormats"); return this._getFormatPattern(sSkeleton, oAvailableFormats, sCalendarType, vGreatestDiff); }
javascript
function(sSkeleton, vGreatestDiff, sCalendarType) { var oAvailableFormats = this._get(getCLDRCalendarName(sCalendarType), "dateTimeFormats", "intervalFormats"); return this._getFormatPattern(sSkeleton, oAvailableFormats, sCalendarType, vGreatestDiff); }
[ "function", "(", "sSkeleton", ",", "vGreatestDiff", ",", "sCalendarType", ")", "{", "var", "oAvailableFormats", "=", "this", ".", "_get", "(", "getCLDRCalendarName", "(", "sCalendarType", ")", ",", "\"dateTimeFormats\"", ",", "\"intervalFormats\"", ")", ";", "retu...
Get interval pattern for a given skeleton format. The format string does contain pattern symbols (e.g. "yMMMd" or "Hms") and will be converted into the pattern in the used locale, which matches the wanted symbols best. The symbols must be in canonical order, that is: Era (G), Year (y/Y), Quarter (q/Q), Month (M/L), We...
[ "Get", "interval", "pattern", "for", "a", "given", "skeleton", "format", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L344-L347
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function () { var mCustomCurrencies = this._get("currency") || {}, mCustomCurrencyCodes = {}; Object.keys(mCustomCurrencies).forEach(function (sCurrencyKey) { mCustomCurrencyCodes[sCurrencyKey] = sCurrencyKey; }); return mCustomCurrencyCodes; }
javascript
function () { var mCustomCurrencies = this._get("currency") || {}, mCustomCurrencyCodes = {}; Object.keys(mCustomCurrencies).forEach(function (sCurrencyKey) { mCustomCurrencyCodes[sCurrencyKey] = sCurrencyKey; }); return mCustomCurrencyCodes; }
[ "function", "(", ")", "{", "var", "mCustomCurrencies", "=", "this", ".", "_get", "(", "\"currency\"", ")", "||", "{", "}", ",", "mCustomCurrencyCodes", "=", "{", "}", ";", "Object", ".", "keys", "(", "mCustomCurrencies", ")", ".", "forEach", "(", "functi...
Returns a map of custom currency codes, defined via global configuration. @returns {object} map of custom currency codes, e.g. { "AUD": "AUD", "BRL": "BRL", "EUR": "EUR", "GBP": "GBP", } @sap-restricted sap.ui.core.format.NumberFormat @private @since 1.63
[ "Returns", "a", "map", "of", "custom", "currency", "codes", "defined", "via", "global", "configuration", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L944-L953
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sCurrency) { // try to lookup currency digits from custom currencies var mCustomCurrencies = this._get("currency"); if (mCustomCurrencies) { if (mCustomCurrencies[sCurrency] && mCustomCurrencies[sCurrency].hasOwnProperty("digits")) { return mCustomCurrencies[sCurrency].digits; } else if ...
javascript
function(sCurrency) { // try to lookup currency digits from custom currencies var mCustomCurrencies = this._get("currency"); if (mCustomCurrencies) { if (mCustomCurrencies[sCurrency] && mCustomCurrencies[sCurrency].hasOwnProperty("digits")) { return mCustomCurrencies[sCurrency].digits; } else if ...
[ "function", "(", "sCurrency", ")", "{", "// try to lookup currency digits from custom currencies", "var", "mCustomCurrencies", "=", "this", ".", "_get", "(", "\"currency\"", ")", ";", "if", "(", "mCustomCurrencies", ")", "{", "if", "(", "mCustomCurrencies", "[", "sC...
Returns the number of digits of the specified currency. @param {string} sCurrency ISO 4217 currency code @returns {int} digits of the currency @public @since 1.21.1
[ "Returns", "the", "number", "of", "digits", "of", "the", "specified", "currency", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L963-L984
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sCurrencySymbol) { var oCurrencySymbols = this._get("currencySymbols"), sCurrencyCode; for (sCurrencyCode in oCurrencySymbols) { if (oCurrencySymbols[sCurrencyCode] === sCurrencySymbol) { return sCurrencyCode; } } return sCurrencySymbol; }
javascript
function(sCurrencySymbol) { var oCurrencySymbols = this._get("currencySymbols"), sCurrencyCode; for (sCurrencyCode in oCurrencySymbols) { if (oCurrencySymbols[sCurrencyCode] === sCurrencySymbol) { return sCurrencyCode; } } return sCurrencySymbol; }
[ "function", "(", "sCurrencySymbol", ")", "{", "var", "oCurrencySymbols", "=", "this", ".", "_get", "(", "\"currencySymbols\"", ")", ",", "sCurrencyCode", ";", "for", "(", "sCurrencyCode", "in", "oCurrencySymbols", ")", "{", "if", "(", "oCurrencySymbols", "[", ...
Returns the currency code which is corresponded with the given currency symbol. @param {string} sCurrencySymbol The currency symbol which needs to be converted to currency code @return {string} The corresponded currency code defined for the given currency symbol. The given currency symbol is returned if no currency co...
[ "Returns", "the", "currency", "code", "which", "is", "corresponded", "with", "the", "given", "currency", "symbol", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L1007-L1015
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function() { // Lookup into global Config var mCustomCurrencies = this._get("currency"), mCustomCurrencySymbols = {}, sIsoCode; for (var sCurrencyKey in mCustomCurrencies) { sIsoCode = mCustomCurrencies[sCurrencyKey].isoCode; if (mCustomCurrencies[sCurrencyKey].symbol) { mCustomCurrencyS...
javascript
function() { // Lookup into global Config var mCustomCurrencies = this._get("currency"), mCustomCurrencySymbols = {}, sIsoCode; for (var sCurrencyKey in mCustomCurrencies) { sIsoCode = mCustomCurrencies[sCurrencyKey].isoCode; if (mCustomCurrencies[sCurrencyKey].symbol) { mCustomCurrencyS...
[ "function", "(", ")", "{", "// Lookup into global Config", "var", "mCustomCurrencies", "=", "this", ".", "_get", "(", "\"currency\"", ")", ",", "mCustomCurrencySymbols", "=", "{", "}", ",", "sIsoCode", ";", "for", "(", "var", "sCurrencyKey", "in", "mCustomCurren...
Returns the currency symbols available for this locale. Currency symbols get accumulated by custom currency symbols. @returns {object} the map of all currency symbols available in this locale, e.g. { "AUD": "A$", "BRL": "R$", "EUR": "€", "GBP": "£", } @public @since 1.60
[ "Returns", "the", "currency", "symbols", "available", "for", "this", "locale", ".", "Currency", "symbols", "get", "accumulated", "by", "custom", "currency", "symbols", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L1031-L1048
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(aScales, sStyle) { if (sStyle === undefined) { sStyle = "wide"; } assert(sStyle === "wide" || sStyle === "short" || sStyle === "narrow", "sStyle is only allowed to be set with 'wide', 'short' or 'narrow'"); var aPatterns = [], aPluralCategories = this.getPluralCategories(), oScale, ...
javascript
function(aScales, sStyle) { if (sStyle === undefined) { sStyle = "wide"; } assert(sStyle === "wide" || sStyle === "short" || sStyle === "narrow", "sStyle is only allowed to be set with 'wide', 'short' or 'narrow'"); var aPatterns = [], aPluralCategories = this.getPluralCategories(), oScale, ...
[ "function", "(", "aScales", ",", "sStyle", ")", "{", "if", "(", "sStyle", "===", "undefined", ")", "{", "sStyle", "=", "\"wide\"", ";", "}", "assert", "(", "sStyle", "===", "\"wide\"", "||", "sStyle", "===", "\"short\"", "||", "sStyle", "===", "\"narrow\...
Returns relative time patterns for the given scales as an array of objects containing scale, value and pattern. The array may contain the following values: "year", "month", "week", "day", "hour", "minute" and "second". If no scales are given, patterns for all available scales will be returned. The return array will c...
[ "Returns", "relative", "time", "patterns", "for", "the", "given", "scales", "as", "an", "array", "of", "objects", "containing", "scale", "value", "and", "pattern", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L1084-L1127
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sWidth, sCalendarType) { assert(sWidth == "wide" || sWidth == "abbreviated" || sWidth == "narrow" , "sWidth must be wide, abbreviate or narrow"); //TODO Adapt generation so that eras are an array instead of object var oEras = this._get(getCLDRCalendarName(sCalendarType), "era-" + sWidth), aEras =...
javascript
function(sWidth, sCalendarType) { assert(sWidth == "wide" || sWidth == "abbreviated" || sWidth == "narrow" , "sWidth must be wide, abbreviate or narrow"); //TODO Adapt generation so that eras are an array instead of object var oEras = this._get(getCLDRCalendarName(sCalendarType), "era-" + sWidth), aEras =...
[ "function", "(", "sWidth", ",", "sCalendarType", ")", "{", "assert", "(", "sWidth", "==", "\"wide\"", "||", "sWidth", "==", "\"abbreviated\"", "||", "sWidth", "==", "\"narrow\"", ",", "\"sWidth must be wide, abbreviate or narrow\"", ")", ";", "//TODO Adapt generation ...
Returns array of eras. @param {string} sWidth the style of the era name. It can be 'wide', 'abbreviated' or 'narrow' @param {sap.ui.core.CalendarType} [sCalendarType] the type of calendar @return {array} the array of eras @public @since 1.32.0
[ "Returns", "array", "of", "eras", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L1466-L1476
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sCalendarType) { //TODO Adapt generation so that eradates are an array instead of object var oEraDates = this._get("eras-" + sCalendarType.toLowerCase()), aEraDates = []; for (var i in oEraDates) { aEraDates[parseInt(i)] = oEraDates[i]; } return aEraDates; }
javascript
function(sCalendarType) { //TODO Adapt generation so that eradates are an array instead of object var oEraDates = this._get("eras-" + sCalendarType.toLowerCase()), aEraDates = []; for (var i in oEraDates) { aEraDates[parseInt(i)] = oEraDates[i]; } return aEraDates; }
[ "function", "(", "sCalendarType", ")", "{", "//TODO Adapt generation so that eradates are an array instead of object", "var", "oEraDates", "=", "this", ".", "_get", "(", "\"eras-\"", "+", "sCalendarType", ".", "toLowerCase", "(", ")", ")", ",", "aEraDates", "=", "[", ...
Returns the map of era IDs to era dates. @param {sap.ui.core.CalendarType} [sCalendarType] the type of calendar @return {array} the array of eras containing objects with either an _end or _start property with a date @public @since 1.32.0
[ "Returns", "the", "map", "of", "era", "IDs", "to", "era", "dates", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L1486-L1494
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
function(sStyle, iWeekNumber) { assert(sStyle == "wide" || sStyle == "narrow" , "sStyle must be wide or narrow"); var oMessageBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.core", this.oLocale.toString()), sKey = "date.week.calendarweek." + sStyle; return oMessageBundle.getText(sKey, iWeekNum...
javascript
function(sStyle, iWeekNumber) { assert(sStyle == "wide" || sStyle == "narrow" , "sStyle must be wide or narrow"); var oMessageBundle = sap.ui.getCore().getLibraryResourceBundle("sap.ui.core", this.oLocale.toString()), sKey = "date.week.calendarweek." + sStyle; return oMessageBundle.getText(sKey, iWeekNum...
[ "function", "(", "sStyle", ",", "iWeekNumber", ")", "{", "assert", "(", "sStyle", "==", "\"wide\"", "||", "sStyle", "==", "\"narrow\"", ",", "\"sStyle must be wide or narrow\"", ")", ";", "var", "oMessageBundle", "=", "sap", ".", "ui", ".", "getCore", "(", "...
Returns the defined pattern for representing the calendar week number. @param {string} sStyle the style of the pattern. It can only be either "wide" or "narrow". @param {int} iWeekNumber the week number @return {string} the week number string @public @since 1.32.0
[ "Returns", "the", "defined", "pattern", "for", "representing", "the", "calendar", "week", "number", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L1506-L1513
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
getCLDRCalendarName
function getCLDRCalendarName(sCalendarType) { if (!sCalendarType) { sCalendarType = sap.ui.getCore().getConfiguration().getCalendarType(); } return "ca-" + sCalendarType.toLowerCase(); }
javascript
function getCLDRCalendarName(sCalendarType) { if (!sCalendarType) { sCalendarType = sap.ui.getCore().getConfiguration().getCalendarType(); } return "ca-" + sCalendarType.toLowerCase(); }
[ "function", "getCLDRCalendarName", "(", "sCalendarType", ")", "{", "if", "(", "!", "sCalendarType", ")", "{", "sCalendarType", "=", "sap", ".", "ui", ".", "getCore", "(", ")", ".", "getConfiguration", "(", ")", ".", "getCalendarType", "(", ")", ";", "}", ...
Returns the corresponding calendar name in CLDR of the given calendar type, or the calendar type from the configuration, in case sCalendarType is undefined. @param {sap.ui.core.CalendarType} sCalendarType the type defined in {@link sap.ui.core.CalendarType}. @private
[ "Returns", "the", "corresponding", "calendar", "name", "in", "CLDR", "of", "the", "given", "calendar", "type", "or", "the", "calendar", "type", "from", "the", "configuration", "in", "case", "sCalendarType", "is", "undefined", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L3190-L3195
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/LocaleData.js
getData
function getData(oLocale) { var sLanguage = oLocale.getLanguage() || "", sScript = oLocale.getScript() || "", sRegion = oLocale.getRegion() || "", mData; /* * Merge a CLDR delta file and a CLDR fallback file. * * Note: the contract of this method reg. null values differs from both, * jQuery.e...
javascript
function getData(oLocale) { var sLanguage = oLocale.getLanguage() || "", sScript = oLocale.getScript() || "", sRegion = oLocale.getRegion() || "", mData; /* * Merge a CLDR delta file and a CLDR fallback file. * * Note: the contract of this method reg. null values differs from both, * jQuery.e...
[ "function", "getData", "(", "oLocale", ")", "{", "var", "sLanguage", "=", "oLocale", ".", "getLanguage", "(", ")", "||", "\"\"", ",", "sScript", "=", "oLocale", ".", "getScript", "(", ")", "||", "\"\"", ",", "sRegion", "=", "oLocale", ".", "getRegion", ...
Load LocaleData data from the CLDR generated files.
[ "Load", "LocaleData", "data", "from", "the", "CLDR", "generated", "files", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/LocaleData.js#L3200-L3293
train
SAP/openui5
src/sap.ui.core/src/sap/ui/events/isSpecialKey.js
isModifierKey
function isModifierKey(oEvent) { var sKey = oEvent.key; // based on KeyBoardEvent.key (https://www.w3.org/TR/uievents/) and (https://www.w3.org/TR/uievents-key/) return (sKey === 'Shift') || (sKey === 'Control') || (sKey === 'Alt') || // Chrome uses 'Alt' and 'AltGraph, IE only use 'Alt' (sKey === 'Al...
javascript
function isModifierKey(oEvent) { var sKey = oEvent.key; // based on KeyBoardEvent.key (https://www.w3.org/TR/uievents/) and (https://www.w3.org/TR/uievents-key/) return (sKey === 'Shift') || (sKey === 'Control') || (sKey === 'Alt') || // Chrome uses 'Alt' and 'AltGraph, IE only use 'Alt' (sKey === 'Al...
[ "function", "isModifierKey", "(", "oEvent", ")", "{", "var", "sKey", "=", "oEvent", ".", "key", ";", "// based on KeyBoardEvent.key (https://www.w3.org/TR/uievents/) and (https://www.w3.org/TR/uievents-key/)", "return", "(", "sKey", "===", "'Shift'", ")", "||", "(", "sKey...
Detect whether the pressed key is a modifier. Modifier keys are considered: SHIFT, CONTROL, ALT, ALTGRAPH, CAPS_LOCK, NUM_LOCK These keys don't send characters, but modify the characters sent by other keys. @param {jQuery.Event} oEvent The event object of the <code>keydown</code>, <code>keyup</code> or <code>keypress...
[ "Detect", "whether", "the", "pressed", "key", "is", "a", "modifier", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/events/isSpecialKey.js#L40-L48
train
SAP/openui5
src/sap.f/src/sap/f/DynamicPage.js
hasDOMElementSize
function hasDOMElementSize(oElement) { var oClientRect; if (!oElement) { return false; } oClientRect = oElement.getBoundingClientRect(); return !!(oClientRect.width && oClientRect.height); }
javascript
function hasDOMElementSize(oElement) { var oClientRect; if (!oElement) { return false; } oClientRect = oElement.getBoundingClientRect(); return !!(oClientRect.width && oClientRect.height); }
[ "function", "hasDOMElementSize", "(", "oElement", ")", "{", "var", "oClientRect", ";", "if", "(", "!", "oElement", ")", "{", "return", "false", ";", "}", "oClientRect", "=", "oElement", ".", "getBoundingClientRect", "(", ")", ";", "return", "!", "!", "(", ...
Determines if DOM element has both width and height. @param {DOM Element} oElement @returns {boolean}
[ "Determines", "if", "DOM", "element", "has", "both", "width", "and", "height", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.f/src/sap/f/DynamicPage.js#L265-L275
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js
function (oEvent) { var aPopoverContent = this._aSubClasses.map(function (oElement) { return new Link({ text: oElement, href: "#/api/" + oElement }).addStyleClass("sapUiTinyMarginBottom sapUiTinyMarginEnd"); }), oPopover = this._getSubClassesAndImplementationsPopover(aPopoverContent); ...
javascript
function (oEvent) { var aPopoverContent = this._aSubClasses.map(function (oElement) { return new Link({ text: oElement, href: "#/api/" + oElement }).addStyleClass("sapUiTinyMarginBottom sapUiTinyMarginEnd"); }), oPopover = this._getSubClassesAndImplementationsPopover(aPopoverContent); ...
[ "function", "(", "oEvent", ")", "{", "var", "aPopoverContent", "=", "this", ".", "_aSubClasses", ".", "map", "(", "function", "(", "oElement", ")", "{", "return", "new", "Link", "(", "{", "text", ":", "oElement", ",", "href", ":", "\"#/api/\"", "+", "o...
Opens the Popover, which displays the entity subclasses, if the entity is a class. Or, it displays the direct implementations, if the entity is interface.
[ "Opens", "the", "Popover", "which", "displays", "the", "entity", "subclasses", "if", "the", "entity", "is", "a", "class", ".", "Or", "it", "displays", "the", "direct", "implementations", "if", "the", "entity", "is", "interface", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js#L427-L436
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function(aUndoStack) { while (aUndoStack.length) { var oOperation = aUndoStack.pop(); this[oOperation.name].apply(this, oOperation.properties); } }
javascript
function(aUndoStack) { while (aUndoStack.length) { var oOperation = aUndoStack.pop(); this[oOperation.name].apply(this, oOperation.properties); } }
[ "function", "(", "aUndoStack", ")", "{", "while", "(", "aUndoStack", ".", "length", ")", "{", "var", "oOperation", "=", "aUndoStack", ".", "pop", "(", ")", ";", "this", "[", "oOperation", ".", "name", "]", ".", "apply", "(", "this", ",", "oOperation", ...
Execute all recorded undo operations from stack @param {Array} aUndoStack stack of recorded undo operations
[ "Execute", "all", "recorded", "undo", "operations", "from", "stack" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L52-L57
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oControl, bVisible) { var bOldVisible = this.getVisible(oControl); var vReturnValue = JsControlTreeModifier.setVisible.apply(this, arguments); /* If the visibility changed, record the reversal as undo operation */ if (bOldVisible !== this.getVisible(oControl)){ this._saveUndoOperation("setVi...
javascript
function (oControl, bVisible) { var bOldVisible = this.getVisible(oControl); var vReturnValue = JsControlTreeModifier.setVisible.apply(this, arguments); /* If the visibility changed, record the reversal as undo operation */ if (bOldVisible !== this.getVisible(oControl)){ this._saveUndoOperation("setVi...
[ "function", "(", "oControl", ",", "bVisible", ")", "{", "var", "bOldVisible", "=", "this", ".", "getVisible", "(", "oControl", ")", ";", "var", "vReturnValue", "=", "JsControlTreeModifier", ".", "setVisible", ".", "apply", "(", "this", ",", "arguments", ")",...
Execute the visibility change from parent and record the opposite visibility as undo operation @override
[ "Execute", "the", "visibility", "change", "from", "parent", "and", "record", "the", "opposite", "visibility", "as", "undo", "operation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L77-L88
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oControl, sPropertyName, mBindingInfos) { var mOldBindingInfos = oControl.getBindingInfo(sPropertyName); var vOldValue; var oMetadata = oControl.getMetadata().getPropertyLikeSetting(sPropertyName); if (oMetadata) { var sPropertyGetter = oMetadata._sGetter; vOldValue = oControl[sPropertyGe...
javascript
function (oControl, sPropertyName, mBindingInfos) { var mOldBindingInfos = oControl.getBindingInfo(sPropertyName); var vOldValue; var oMetadata = oControl.getMetadata().getPropertyLikeSetting(sPropertyName); if (oMetadata) { var sPropertyGetter = oMetadata._sGetter; vOldValue = oControl[sPropertyGe...
[ "function", "(", "oControl", ",", "sPropertyName", ",", "mBindingInfos", ")", "{", "var", "mOldBindingInfos", "=", "oControl", ".", "getBindingInfo", "(", "sPropertyName", ")", ";", "var", "vOldValue", ";", "var", "oMetadata", "=", "oControl", ".", "getMetadata"...
Execute the bind property and record unbindProperty as undo operation if property was not previously bound + save property value If the property had a previous value, this value is restored with the undo @override
[ "Execute", "the", "bind", "property", "and", "record", "unbindProperty", "as", "undo", "operation", "if", "property", "was", "not", "previously", "bound", "+", "save", "property", "value", "If", "the", "property", "had", "a", "previous", "value", "this", "valu...
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L122-L142
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oControl, sPropertyName) { var mOldBindingInfos = oControl.getBindingInfo(sPropertyName); JsControlTreeModifier.unbindProperty.apply(this, arguments); if (mOldBindingInfos){ this._saveUndoOperation("bindProperty", [oControl, sPropertyName, mOldBindingInfos]); } }
javascript
function (oControl, sPropertyName) { var mOldBindingInfos = oControl.getBindingInfo(sPropertyName); JsControlTreeModifier.unbindProperty.apply(this, arguments); if (mOldBindingInfos){ this._saveUndoOperation("bindProperty", [oControl, sPropertyName, mOldBindingInfos]); } }
[ "function", "(", "oControl", ",", "sPropertyName", ")", "{", "var", "mOldBindingInfos", "=", "oControl", ".", "getBindingInfo", "(", "sPropertyName", ")", ";", "JsControlTreeModifier", ".", "unbindProperty", ".", "apply", "(", "this", ",", "arguments", ")", ";",...
Unbind a property and record bindProperty as undo operation @param {sap.ui.core.Control} oControl The control containing the property @param {string} sPropertyName The property to be unbound
[ "Unbind", "a", "property", "and", "record", "bindProperty", "as", "undo", "operation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L150-L158
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oControl, sPropertyName, oPropertyValue) { var vOldValue; var oMetadata = oControl.getMetadata().getPropertyLikeSetting(sPropertyName); if (oMetadata) { var sPropertyGetter = oMetadata._sGetter; vOldValue = oControl[sPropertyGetter](); } var vReturnValue = JsControlTreeModifier.setPro...
javascript
function (oControl, sPropertyName, oPropertyValue) { var vOldValue; var oMetadata = oControl.getMetadata().getPropertyLikeSetting(sPropertyName); if (oMetadata) { var sPropertyGetter = oMetadata._sGetter; vOldValue = oControl[sPropertyGetter](); } var vReturnValue = JsControlTreeModifier.setPro...
[ "function", "(", "oControl", ",", "sPropertyName", ",", "oPropertyValue", ")", "{", "var", "vOldValue", ";", "var", "oMetadata", "=", "oControl", ".", "getMetadata", "(", ")", ".", "getPropertyLikeSetting", "(", "sPropertyName", ")", ";", "if", "(", "oMetadata...
Record the previous value of the property in the undo operation @override
[ "Record", "the", "previous", "value", "of", "the", "property", "in", "the", "undo", "operation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L164-L181
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oControl, sPropertyName, oPropertyBinding) { var oOldValue; var oMetadata = oControl.getMetadata().getPropertyLikeSetting(sPropertyName); if (oMetadata) { var sPropertyGetter = oMetadata._sGetter; oOldValue = oControl[sPropertyGetter](); } JsControlTreeModifier.setPropertyBinding.appl...
javascript
function (oControl, sPropertyName, oPropertyBinding) { var oOldValue; var oMetadata = oControl.getMetadata().getPropertyLikeSetting(sPropertyName); if (oMetadata) { var sPropertyGetter = oMetadata._sGetter; oOldValue = oControl[sPropertyGetter](); } JsControlTreeModifier.setPropertyBinding.appl...
[ "function", "(", "oControl", ",", "sPropertyName", ",", "oPropertyBinding", ")", "{", "var", "oOldValue", ";", "var", "oMetadata", "=", "oControl", ".", "getMetadata", "(", ")", ".", "getPropertyLikeSetting", "(", "sPropertyName", ")", ";", "if", "(", "oMetada...
Record the previous value of the property binding in the undo operation @override
[ "Record", "the", "previous", "value", "of", "the", "property", "binding", "in", "the", "undo", "operation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L187-L202
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (sClassName, oAppComponent, oView, oSelector, mSettings, bAsync) { var oExistingControl = this.bySelector(oSelector, oAppComponent); var fnCreateUndoOperation = function() { if (!oExistingControl) { var oCreatedControl = this.bySelector(oSelector, oAppComponent); RtaControlTreeModifier._sav...
javascript
function (sClassName, oAppComponent, oView, oSelector, mSettings, bAsync) { var oExistingControl = this.bySelector(oSelector, oAppComponent); var fnCreateUndoOperation = function() { if (!oExistingControl) { var oCreatedControl = this.bySelector(oSelector, oAppComponent); RtaControlTreeModifier._sav...
[ "function", "(", "sClassName", ",", "oAppComponent", ",", "oView", ",", "oSelector", ",", "mSettings", ",", "bAsync", ")", "{", "var", "oExistingControl", "=", "this", ".", "bySelector", "(", "oSelector", ",", "oAppComponent", ")", ";", "var", "fnCreateUndoOpe...
Record destroy as undo operation @override
[ "Record", "destroy", "as", "undo", "operation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L208-L228
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function(sFragment, sChangeId, oView, oController) { var aControls = JsControlTreeModifier.instantiateFragment.apply(this, arguments); aControls.forEach(function(oControl) { this._saveUndoOperation("destroy", [oControl]); }.bind(this)); return aControls; }
javascript
function(sFragment, sChangeId, oView, oController) { var aControls = JsControlTreeModifier.instantiateFragment.apply(this, arguments); aControls.forEach(function(oControl) { this._saveUndoOperation("destroy", [oControl]); }.bind(this)); return aControls; }
[ "function", "(", "sFragment", ",", "sChangeId", ",", "oView", ",", "oController", ")", "{", "var", "aControls", "=", "JsControlTreeModifier", ".", "instantiateFragment", ".", "apply", "(", "this", ",", "arguments", ")", ";", "aControls", ".", "forEach", "(", ...
When a fragment is instantiated in JS, a control is created. This control has to be destroyed on undo @override
[ "When", "a", "fragment", "is", "instantiated", "in", "JS", "a", "control", "is", "created", ".", "This", "control", "has", "to", "be", "destroyed", "on", "undo" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L235-L242
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oParent, sName, oObject, iIndex) { var oOldAggregationValue = JsControlTreeModifier.getAggregation.call(this, oParent, sName); JsControlTreeModifier.insertAggregation.apply(this, arguments); if (oParent) { if (oParent.getMetadata) { var oMetadata = oParent.getMetadata(); var oAggregat...
javascript
function (oParent, sName, oObject, iIndex) { var oOldAggregationValue = JsControlTreeModifier.getAggregation.call(this, oParent, sName); JsControlTreeModifier.insertAggregation.apply(this, arguments); if (oParent) { if (oParent.getMetadata) { var oMetadata = oParent.getMetadata(); var oAggregat...
[ "function", "(", "oParent", ",", "sName", ",", "oObject", ",", "iIndex", ")", "{", "var", "oOldAggregationValue", "=", "JsControlTreeModifier", ".", "getAggregation", ".", "call", "(", "this", ",", "oParent", ",", "sName", ")", ";", "JsControlTreeModifier", "....
Adds an additional item to the aggregation or changes it in case it is not a multiple one Adds removeAggregation as the undo operation @override
[ "Adds", "an", "additional", "item", "to", "the", "aggregation", "or", "changes", "it", "in", "case", "it", "is", "not", "a", "multiple", "one", "Adds", "removeAggregation", "as", "the", "undo", "operation" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L261-L282
train
SAP/openui5
src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oParent, sName) { var aOldAggregationElements = []; var vAggregationElements; if (oParent) { vAggregationElements = JsControlTreeModifier.getAggregation.call(this, oParent, sName); } if (vAggregationElements && vAggregationElements instanceof Array) { aOldAggregationElements = vAggrega...
javascript
function (oParent, sName) { var aOldAggregationElements = []; var vAggregationElements; if (oParent) { vAggregationElements = JsControlTreeModifier.getAggregation.call(this, oParent, sName); } if (vAggregationElements && vAggregationElements instanceof Array) { aOldAggregationElements = vAggrega...
[ "function", "(", "oParent", ",", "sName", ")", "{", "var", "aOldAggregationElements", "=", "[", "]", ";", "var", "vAggregationElements", ";", "if", "(", "oParent", ")", "{", "vAggregationElements", "=", "JsControlTreeModifier", ".", "getAggregation", ".", "call"...
Removes all objects from an aggregation of the given control Adds one insertAggregation per removed object as undo operations @override
[ "Removes", "all", "objects", "from", "an", "aggregation", "of", "the", "given", "control", "Adds", "one", "insertAggregation", "per", "removed", "object", "as", "undo", "operations" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js#L317-L337
train
SAP/openui5
src/sap.ui.demokit/src/sap/ui/demokit/explored/view/master.controller.js
function () { // calculate text var sFilterText = ""; jQuery.each(this._oViewSettings.filter, function (sProperty, aValues) { jQuery.each(aValues, function (i, aValue) { sFilterText += aValue + ", "; }); }); if (sFilterText.length > 0) { var iIndex = sFilterText.lastIndexOf(", "); s...
javascript
function () { // calculate text var sFilterText = ""; jQuery.each(this._oViewSettings.filter, function (sProperty, aValues) { jQuery.each(aValues, function (i, aValue) { sFilterText += aValue + ", "; }); }); if (sFilterText.length > 0) { var iIndex = sFilterText.lastIndexOf(", "); s...
[ "function", "(", ")", "{", "// calculate text", "var", "sFilterText", "=", "\"\"", ";", "jQuery", ".", "each", "(", "this", ".", "_oViewSettings", ".", "filter", ",", "function", "(", "sProperty", ",", "aValues", ")", "{", "jQuery", ".", "each", "(", "aV...
Updates the filter bar in the view
[ "Updates", "the", "filter", "bar", "in", "the", "view" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.demokit/src/sap/ui/demokit/explored/view/master.controller.js#L294-L312
train
SAP/openui5
src/sap.ui.demokit/src/sap/ui/demokit/explored/view/master.controller.js
function () { var aFilters = [], aSorters = [], bFilterChanged = false, bGroupChanged = false, oSearchField = this.byId("searchField"), oList = this.byId("list"), oBinding = oList.getBinding("items"); // add filter for search var sQuery = oSearchField.getValue().trim(); bFilterCha...
javascript
function () { var aFilters = [], aSorters = [], bFilterChanged = false, bGroupChanged = false, oSearchField = this.byId("searchField"), oList = this.byId("list"), oBinding = oList.getBinding("items"); // add filter for search var sQuery = oSearchField.getValue().trim(); bFilterCha...
[ "function", "(", ")", "{", "var", "aFilters", "=", "[", "]", ",", "aSorters", "=", "[", "]", ",", "bFilterChanged", "=", "false", ",", "bGroupChanged", "=", "false", ",", "oSearchField", "=", "this", ".", "byId", "(", "\"searchField\"", ")", ",", "oLis...
Updates the binding of the master list and applies filters and groups Dear maintainer having more time than i currently have - this function does way too much and gets called everywhere the list gets rerendered a lot of times. So i build in some very small detection to at least reduce the rerenderings when starting th...
[ "Updates", "the", "binding", "of", "the", "master", "list", "and", "applies", "filters", "and", "groups" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.demokit/src/sap/ui/demokit/explored/view/master.controller.js#L323-L381
train
SAP/openui5
src/sap.ui.core/src/sap/ui/model/odata/type/Date.js
getModelFormatter
function getModelFormatter() { if (!oModelFormatter) { oModelFormatter = DateFormat.getDateInstance({ pattern : 'yyyy-MM-dd', strictParsing : true, UTC : true }); } return oModelFormatter; }
javascript
function getModelFormatter() { if (!oModelFormatter) { oModelFormatter = DateFormat.getDateInstance({ pattern : 'yyyy-MM-dd', strictParsing : true, UTC : true }); } return oModelFormatter; }
[ "function", "getModelFormatter", "(", ")", "{", "if", "(", "!", "oModelFormatter", ")", "{", "oModelFormatter", "=", "DateFormat", ".", "getDateInstance", "(", "{", "pattern", ":", "'yyyy-MM-dd'", ",", "strictParsing", ":", "true", ",", "UTC", ":", "true", "...
Returns a formatter that formats the date into YYYY-MM-DD. Creates it lazily. @returns {sap.ui.core.format.DateFormat} the formatter
[ "Returns", "a", "formatter", "that", "formats", "the", "date", "into", "YYYY", "-", "MM", "-", "DD", ".", "Creates", "it", "lazily", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/model/odata/type/Date.js#L58-L67
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiMaster.controller.js
function (sTopicId) { this._bIncludeDeprecated = true; // Switch internal flag this.byId("includeDeprecated").setSelected(true); // Update checkbox UI this.buildAndApplyFilters(); // Apply filters this._expandTreeToNode(sTopicId, this.getModel("treeData")); // Select the searched entity }
javascript
function (sTopicId) { this._bIncludeDeprecated = true; // Switch internal flag this.byId("includeDeprecated").setSelected(true); // Update checkbox UI this.buildAndApplyFilters(); // Apply filters this._expandTreeToNode(sTopicId, this.getModel("treeData")); // Select the searched entity }
[ "function", "(", "sTopicId", ")", "{", "this", ".", "_bIncludeDeprecated", "=", "true", ";", "// Switch internal flag", "this", ".", "byId", "(", "\"includeDeprecated\"", ")", ".", "setSelected", "(", "true", ")", ";", "// Update checkbox UI", "this", ".", "buil...
Selects a deprecated symbol in the tree and switches the filter to displaying deprecated symbols @param {string} sTopicId the name of the deprecated symbol to be selected
[ "Selects", "a", "deprecated", "symbol", "in", "the", "tree", "and", "switches", "the", "filter", "to", "displaying", "deprecated", "symbols" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiMaster.controller.js#L106-L111
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/syncXHRFix.js
wrapTimerHandler
function wrapTimerHandler(vHandler) { var fnWrappedHandler = function() { var aArgs, fnHandler; if (bPromisesQueued) { aArgs = [fnWrappedHandler, 0].concat(arguments); _timeout.apply(window, aArgs); } else { fnHandler = typeof vHandler !== "function" ? new Function(vHandler) : vHand...
javascript
function wrapTimerHandler(vHandler) { var fnWrappedHandler = function() { var aArgs, fnHandler; if (bPromisesQueued) { aArgs = [fnWrappedHandler, 0].concat(arguments); _timeout.apply(window, aArgs); } else { fnHandler = typeof vHandler !== "function" ? new Function(vHandler) : vHand...
[ "function", "wrapTimerHandler", "(", "vHandler", ")", "{", "var", "fnWrappedHandler", "=", "function", "(", ")", "{", "var", "aArgs", ",", "fnHandler", ";", "if", "(", "bPromisesQueued", ")", "{", "aArgs", "=", "[", "fnWrappedHandler", ",", "0", "]", ".", ...
If there are promise handlers waiting for execution at the time the timeout fires, start another timeout to postpone timer execution after promise execution.
[ "If", "there", "are", "promise", "handlers", "waiting", "for", "execution", "at", "the", "time", "the", "timeout", "fires", "start", "another", "timeout", "to", "postpone", "timer", "execution", "after", "promise", "execution", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/syncXHRFix.js#L94-L106
train
SAP/openui5
src/sap.ui.core/src/sap/ui/base/syncXHRFix.js
wrapHandler
function wrapHandler(fnHandler) { var fnWrappedHandler = function(oEvent) { // The ready state at the time the event is occurring needs to // be preserved, to restore it when the handler is called delayed var iCurrentState = oXHR.readyState; function callHandler() { iReadyState...
javascript
function wrapHandler(fnHandler) { var fnWrappedHandler = function(oEvent) { // The ready state at the time the event is occurring needs to // be preserved, to restore it when the handler is called delayed var iCurrentState = oXHR.readyState; function callHandler() { iReadyState...
[ "function", "wrapHandler", "(", "fnHandler", ")", "{", "var", "fnWrappedHandler", "=", "function", "(", "oEvent", ")", "{", "// The ready state at the time the event is occurring needs to", "// be preserved, to restore it when the handler is called delayed", "var", "iCurrentState",...
Return a wrapped handler function for the given function, which checks whether a synchronous request is currently in progress.
[ "Return", "a", "wrapped", "handler", "function", "for", "the", "given", "function", "which", "checks", "whether", "a", "synchronous", "request", "is", "currently", "in", "progress", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/base/syncXHRFix.js#L136-L163
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js
function(oBody, sDensityMode){ switch (sDensityMode) { case COMPACT: oBody.toggleClass("sapUiSizeCompact", true).toggleClass("sapUiSizeCozy", false).toggleClass("sapUiSizeCondensed", false); break; case CONDENSED: oBody.toggleClass("sapUiSizeCondensed", true).toggleClass("sapUiSizeCozy",...
javascript
function(oBody, sDensityMode){ switch (sDensityMode) { case COMPACT: oBody.toggleClass("sapUiSizeCompact", true).toggleClass("sapUiSizeCozy", false).toggleClass("sapUiSizeCondensed", false); break; case CONDENSED: oBody.toggleClass("sapUiSizeCondensed", true).toggleClass("sapUiSizeCozy",...
[ "function", "(", "oBody", ",", "sDensityMode", ")", "{", "switch", "(", "sDensityMode", ")", "{", "case", "COMPACT", ":", "oBody", ".", "toggleClass", "(", "\"sapUiSizeCompact\"", ",", "true", ")", ".", "toggleClass", "(", "\"sapUiSizeCozy\"", ",", "false", ...
Toggles content density classes in the provided html body @param {object} oBody the html body to set the correct class on @param {string} sDensityMode content density mode @private
[ "Toggles", "content", "density", "classes", "in", "the", "provided", "html", "body" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js#L203-L214
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js
function(sThemeActive, sDensityMode, bRTL){ var oSampleFrameContent, oSampleFrameCore, $SampleFrame, bRTLChanged, bThemeChanged, bContentDensityChanged; // Handle content density change if (this._oViewSettings.densityMode !== sDensityMode) { this._toggleContentDensityClasses(j...
javascript
function(sThemeActive, sDensityMode, bRTL){ var oSampleFrameContent, oSampleFrameCore, $SampleFrame, bRTLChanged, bThemeChanged, bContentDensityChanged; // Handle content density change if (this._oViewSettings.densityMode !== sDensityMode) { this._toggleContentDensityClasses(j...
[ "function", "(", "sThemeActive", ",", "sDensityMode", ",", "bRTL", ")", "{", "var", "oSampleFrameContent", ",", "oSampleFrameCore", ",", "$SampleFrame", ",", "bRTLChanged", ",", "bThemeChanged", ",", "bContentDensityChanged", ";", "// Handle content density change", "if...
Apply content configuration @param {string} sThemeActive name of the theme @param {string} sDensityMode content density mode @param {boolean} bRTL right to left mode @private
[ "Apply", "content", "configuration" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js#L223-L287
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js
function () { if (!this._oSettingsDialog) { this._oSettingsDialog = new sap.ui.xmlfragment("sap.ui.documentation.sdk.view.appSettingsDialog", this); this._oView.addDependent(this._oSettingsDialog); } setTimeout(function () { var oAppSettings = this._oCore.getConfiguration(), oThemeSele...
javascript
function () { if (!this._oSettingsDialog) { this._oSettingsDialog = new sap.ui.xmlfragment("sap.ui.documentation.sdk.view.appSettingsDialog", this); this._oView.addDependent(this._oSettingsDialog); } setTimeout(function () { var oAppSettings = this._oCore.getConfiguration(), oThemeSele...
[ "function", "(", ")", "{", "if", "(", "!", "this", ".", "_oSettingsDialog", ")", "{", "this", ".", "_oSettingsDialog", "=", "new", "sap", ".", "ui", ".", "xmlfragment", "(", "\"sap.ui.documentation.sdk.view.appSettingsDialog\"", ",", "this", ")", ";", "this", ...
Opens the View settings dialog @public
[ "Opens", "the", "View", "settings", "dialog" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js#L653-L675
train
SAP/openui5
src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js
function () { var BusyDialog, sDensityMode = this._oCore.byId('DensityModeSwitch').getSelectedKey(), sTheme = this._oCore.byId('ThemeSelect').getSelectedKey(), bRTL = this._oCore.byId('RTLSwitch').getState(); this._oSettingsDialog.close(); // Lazy loading of busy dialog if (!this._oBusy...
javascript
function () { var BusyDialog, sDensityMode = this._oCore.byId('DensityModeSwitch').getSelectedKey(), sTheme = this._oCore.byId('ThemeSelect').getSelectedKey(), bRTL = this._oCore.byId('RTLSwitch').getState(); this._oSettingsDialog.close(); // Lazy loading of busy dialog if (!this._oBusy...
[ "function", "(", ")", "{", "var", "BusyDialog", ",", "sDensityMode", "=", "this", ".", "_oCore", ".", "byId", "(", "'DensityModeSwitch'", ")", ".", "getSelectedKey", "(", ")", ",", "sTheme", "=", "this", ".", "_oCore", ".", "byId", "(", "'ThemeSelect'", ...
Saves settings from the view settings dialog @public
[ "Saves", "settings", "from", "the", "view", "settings", "dialog" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js#L689-L717
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/report/IssueRenderer.js
render
function render(issues, enableFiltering) { var content = ''; if (enableFiltering) { content += '<div class="filters">' + getSeverityFilters(issues) + '<div>\n'; } content += '<div>' + getIssues(issues) + '</div>'; return '<div>' + content + '</div>'; }
javascript
function render(issues, enableFiltering) { var content = ''; if (enableFiltering) { content += '<div class="filters">' + getSeverityFilters(issues) + '<div>\n'; } content += '<div>' + getIssues(issues) + '</div>'; return '<div>' + content + '</div>'; }
[ "function", "render", "(", "issues", ",", "enableFiltering", ")", "{", "var", "content", "=", "''", ";", "if", "(", "enableFiltering", ")", "{", "content", "+=", "'<div class=\"filters\">'", "+", "getSeverityFilters", "(", "issues", ")", "+", "'<div>\\n'", ";"...
Public functions Creates an html string containing the issues. @param {Object} issues - the issues in viewmodel format @param {Boolean} enableFiltering - if true renders the severity filters @returns {String}
[ "Public", "functions", "Creates", "an", "html", "string", "containing", "the", "issues", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/report/IssueRenderer.js#L168-L178
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/IntervalTrigger.js
function() { clearTimeout(this._delayedCallId); // if interval is active and there are registered listeners var bHasListeners = this._oEventBus._defaultChannel.hasListeners(_EVENT_ID); if (this._iInterval > 0 && bHasListeners) { this._oEventBus.publish(_EVENT_ID); this._delayedCallId = setTimeout(...
javascript
function() { clearTimeout(this._delayedCallId); // if interval is active and there are registered listeners var bHasListeners = this._oEventBus._defaultChannel.hasListeners(_EVENT_ID); if (this._iInterval > 0 && bHasListeners) { this._oEventBus.publish(_EVENT_ID); this._delayedCallId = setTimeout(...
[ "function", "(", ")", "{", "clearTimeout", "(", "this", ".", "_delayedCallId", ")", ";", "// if interval is active and there are registered listeners", "var", "bHasListeners", "=", "this", ".", "_oEventBus", ".", "_defaultChannel", ".", "hasListeners", "(", "_EVENT_ID",...
This is the function that will be used for triggering. @private
[ "This", "is", "the", "function", "that", "will", "be", "used", "for", "triggering", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/IntervalTrigger.js#L50-L60
train
SAP/openui5
src/sap.m/src/sap/m/SearchField.js
openSuggestions
function openSuggestions(oSF) { if (oSF.getEnableSuggestions()) { if (!oSF._oSuggest) { oSF._oSuggest = new Suggest(oSF); } oSF._oSuggest.open(); } }
javascript
function openSuggestions(oSF) { if (oSF.getEnableSuggestions()) { if (!oSF._oSuggest) { oSF._oSuggest = new Suggest(oSF); } oSF._oSuggest.open(); } }
[ "function", "openSuggestions", "(", "oSF", ")", "{", "if", "(", "oSF", ".", "getEnableSuggestions", "(", ")", ")", "{", "if", "(", "!", "oSF", ".", "_oSuggest", ")", "{", "oSF", ".", "_oSuggest", "=", "new", "Suggest", "(", "oSF", ")", ";", "}", "o...
Close the suggestions list. @param {sap.m.SearchField} oSF a SearchField instance
[ "Close", "the", "suggestions", "list", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/SearchField.js#L883-L890
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js
function(oRm, oTable) { if (!oTable._getAccExtension().getAccMode()) { return; } var sTableId = oTable.getId(); oRm.write("<div class='sapUiTableHiddenTexts' style='display:none;' aria-hidden='true'>"); // aria description for the row and column count _writeAccText(oRm, sTableId, "ariacount"); ...
javascript
function(oRm, oTable) { if (!oTable._getAccExtension().getAccMode()) { return; } var sTableId = oTable.getId(); oRm.write("<div class='sapUiTableHiddenTexts' style='display:none;' aria-hidden='true'>"); // aria description for the row and column count _writeAccText(oRm, sTableId, "ariacount"); ...
[ "function", "(", "oRm", ",", "oTable", ")", "{", "if", "(", "!", "oTable", ".", "_getAccExtension", "(", ")", ".", "getAccMode", "(", ")", ")", "{", "return", ";", "}", "var", "sTableId", "=", "oTable", ".", "getId", "(", ")", ";", "oRm", ".", "w...
Renders all necessary hidden text elements of the table. @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the Render-Output-Buffer. @param {sap.ui.table.Table} oTable Instance of the table. @public
[ "Renders", "all", "necessary", "hidden", "text", "elements", "of", "the", "table", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js#L63-L138
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js
function(oRm, oTable, sType, mParams) { var oExtension = oTable._getAccExtension(); if (!oExtension.getAccMode()) { return; } var mAttributes = oExtension.getAriaAttributesFor(sType, mParams); var oValue, sKey; for (sKey in mAttributes) { oValue = mAttributes[sKey]; if (Array.isArray(oV...
javascript
function(oRm, oTable, sType, mParams) { var oExtension = oTable._getAccExtension(); if (!oExtension.getAccMode()) { return; } var mAttributes = oExtension.getAriaAttributesFor(sType, mParams); var oValue, sKey; for (sKey in mAttributes) { oValue = mAttributes[sKey]; if (Array.isArray(oV...
[ "function", "(", "oRm", ",", "oTable", ",", "sType", ",", "mParams", ")", "{", "var", "oExtension", "=", "oTable", ".", "_getAccExtension", "(", ")", ";", "if", "(", "!", "oExtension", ".", "getAccMode", "(", ")", ")", "{", "return", ";", "}", "var",...
Renders the default aria attributes of the element with the given type and settings. @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the Render-Output-Buffer. @param {sap.ui.table.Table} oTable Instance of the table. @param {sap.ui.table.TableAccExtension.ELEMENTTYPES} sType Th...
[ "Renders", "the", "default", "aria", "attributes", "of", "the", "element", "with", "the", "given", "type", "and", "settings", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js#L150-L169
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js
function(oRm, oTable, oRow, iRowIndex) { if (!oTable._getAccExtension().getAccMode()) { return; } var bIsSelected = oTable.isIndexSelected(iRowIndex); var mTooltipTexts = oTable._getAccExtension().getAriaTextsForSelectionMode(true); var sText = mTooltipTexts.keyboard[bIsSelected ? "rowDeselect" : "r...
javascript
function(oRm, oTable, oRow, iRowIndex) { if (!oTable._getAccExtension().getAccMode()) { return; } var bIsSelected = oTable.isIndexSelected(iRowIndex); var mTooltipTexts = oTable._getAccExtension().getAriaTextsForSelectionMode(true); var sText = mTooltipTexts.keyboard[bIsSelected ? "rowDeselect" : "r...
[ "function", "(", "oRm", ",", "oTable", ",", "oRow", ",", "iRowIndex", ")", "{", "if", "(", "!", "oTable", ".", "_getAccExtension", "(", ")", ".", "getAccMode", "(", ")", ")", "{", "return", ";", "}", "var", "bIsSelected", "=", "oTable", ".", "isIndex...
Renders the default row selector content. @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the Render-Output-Buffer. @param {sap.ui.table.Table} oTable Instance of the table. @param {sap.ui.table.Row} oRow Instance of the row. @param {int} iRowIndex The index of the row. @see sa...
[ "Renders", "the", "default", "row", "selector", "content", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js#L181-L191
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js
function(oRm, oTable, oRow, iRowIndex) { if (!oTable._getAccExtension().getAccMode()) { return; } var oRowSettings = oRow.getAggregation("_settings"); var sHighlightText = oRowSettings._getHighlightText(); _writeAccText(oRm, oRow.getId(), "highlighttext", sHighlightText); }
javascript
function(oRm, oTable, oRow, iRowIndex) { if (!oTable._getAccExtension().getAccMode()) { return; } var oRowSettings = oRow.getAggregation("_settings"); var sHighlightText = oRowSettings._getHighlightText(); _writeAccText(oRm, oRow.getId(), "highlighttext", sHighlightText); }
[ "function", "(", "oRm", ",", "oTable", ",", "oRow", ",", "iRowIndex", ")", "{", "if", "(", "!", "oTable", ".", "_getAccExtension", "(", ")", ".", "getAccMode", "(", ")", ")", "{", "return", ";", "}", "var", "oRowSettings", "=", "oRow", ".", "getAggre...
Renders the default row highlight content. @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the Render-Output-Buffer. @param {sap.ui.table.Table} oTable Instance of the table. @param {sap.ui.table.Row} oRow Instance of the row. @param {int} iRowIndex The index of the row. @see s...
[ "Renders", "the", "default", "row", "highlight", "content", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js#L203-L212
train
SAP/openui5
src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js
function(oRm, oTable, oCreationRow) { if (!oTable._getAccExtension().getAccMode()) { return; } _writeAccText(oRm, oCreationRow.getId(), "label", TableUtils.getResourceText("TBL_CREATEROW_LABEL")); }
javascript
function(oRm, oTable, oCreationRow) { if (!oTable._getAccExtension().getAccMode()) { return; } _writeAccText(oRm, oCreationRow.getId(), "label", TableUtils.getResourceText("TBL_CREATEROW_LABEL")); }
[ "function", "(", "oRm", ",", "oTable", ",", "oCreationRow", ")", "{", "if", "(", "!", "oTable", ".", "_getAccExtension", "(", ")", ".", "getAccMode", "(", ")", ")", "{", "return", ";", "}", "_writeAccText", "(", "oRm", ",", "oCreationRow", ".", "getId"...
Renders the hidden label for a creation row. @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the Render-Output-Buffer. @param {sap.ui.table.Table} oTable Instance of the table. @param {sap.ui.table.CreationRow} oCreationRow Instance of the creation row. @see sap.ui.table.Creati...
[ "Renders", "the", "hidden", "label", "for", "a", "creation", "row", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.table/src/sap/ui/table/TableAccRenderExtension.js#L223-L229
train
SAP/openui5
src/sap.m/src/sap/m/changeHandler/MoveTableColumns.js
_applyChange
function _applyChange(oChange, oRelevantContainer, mPropertyBag, fnIterator) { var oModifier = mPropertyBag.modifier, oView = mPropertyBag.view, oAppComponent = mPropertyBag.appComponent, oChangeContent = oChange.getContent(), oTargetSource = oChange.getDependentControl(SOURCE_ALIAS, mPropertyBag), oTa...
javascript
function _applyChange(oChange, oRelevantContainer, mPropertyBag, fnIterator) { var oModifier = mPropertyBag.modifier, oView = mPropertyBag.view, oAppComponent = mPropertyBag.appComponent, oChangeContent = oChange.getContent(), oTargetSource = oChange.getDependentControl(SOURCE_ALIAS, mPropertyBag), oTa...
[ "function", "_applyChange", "(", "oChange", ",", "oRelevantContainer", ",", "mPropertyBag", ",", "fnIterator", ")", "{", "var", "oModifier", "=", "mPropertyBag", ".", "modifier", ",", "oView", "=", "mPropertyBag", ".", "view", ",", "oAppComponent", "=", "mProper...
Moves a column from one index to another. @param {sap.ui.fl.Change} oChange Change object with instructions to be applied on the control @param {sap.ui.core.Control} oRelevantContainer Control that matches the change selector for applying the change, which is the source of the move @param {object} mPropertyBag Map of p...
[ "Moves", "a", "column", "from", "one", "index", "to", "another", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.m/src/sap/m/changeHandler/MoveTableColumns.js#L37-L121
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/support/debugReboot.js
function(oScript, rRegex) { if (oScript && oScript.getAttribute("src") && rRegex.exec(oScript.getAttribute("src"))) { return oScript; } }
javascript
function(oScript, rRegex) { if (oScript && oScript.getAttribute("src") && rRegex.exec(oScript.getAttribute("src"))) { return oScript; } }
[ "function", "(", "oScript", ",", "rRegex", ")", "{", "if", "(", "oScript", "&&", "oScript", ".", "getAttribute", "(", "\"src\"", ")", "&&", "rRegex", ".", "exec", "(", "oScript", ".", "getAttribute", "(", "\"src\"", ")", ")", ")", "{", "return", "oScri...
replace the bootstrap tag with a newly created script tag to enable restarting the core from a different server
[ "replace", "the", "bootstrap", "tag", "with", "a", "newly", "created", "script", "tag", "to", "enable", "restarting", "the", "core", "from", "a", "different", "server" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/support/debugReboot.js#L56-L60
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
findConfig
function findConfig(sType, vObject, fnCheck) { var sComponentId = vObject && typeof vObject === "string" ? vObject : (vObject && Component.getOwnerIdFor(vObject)); if (sComponentId) { // if a component name is given only the component customizing // configuration is checked - the customizing configuration...
javascript
function findConfig(sType, vObject, fnCheck) { var sComponentId = vObject && typeof vObject === "string" ? vObject : (vObject && Component.getOwnerIdFor(vObject)); if (sComponentId) { // if a component name is given only the component customizing // configuration is checked - the customizing configuration...
[ "function", "findConfig", "(", "sType", ",", "vObject", ",", "fnCheck", ")", "{", "var", "sComponentId", "=", "vObject", "&&", "typeof", "vObject", "===", "\"string\"", "?", "vObject", ":", "(", "vObject", "&&", "Component", ".", "getOwnerIdFor", "(", "vObje...
Finds the config in the given type and use the check function to validate if the correct entry has been found! @param {string} sType Name of the config section @param {string|sap.ui.base.ManagedObject} vObject Component ID or ManagedObject @param {function} fnCheck Check function
[ "Finds", "the", "config", "in", "the", "given", "type", "and", "use", "the", "check", "function", "to", "validate", "if", "the", "correct", "entry", "has", "been", "found!" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L35-L64
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
function(sComponentName) { Log.info("CustomizingConfiguration: activateForComponent('" + sComponentName + "')"); var sFullComponentName = sComponentName + ".Component"; sap.ui.requireSync(sFullComponentName.replace(/\./g, "/")); var oCustomizingConfig = ObjectPath.get(sFullComponentName).getMetadata().g...
javascript
function(sComponentName) { Log.info("CustomizingConfiguration: activateForComponent('" + sComponentName + "')"); var sFullComponentName = sComponentName + ".Component"; sap.ui.requireSync(sFullComponentName.replace(/\./g, "/")); var oCustomizingConfig = ObjectPath.get(sFullComponentName).getMetadata().g...
[ "function", "(", "sComponentName", ")", "{", "Log", ".", "info", "(", "\"CustomizingConfiguration: activateForComponent('\"", "+", "sComponentName", "+", "\"')\"", ")", ";", "var", "sFullComponentName", "=", "sComponentName", "+", "\".Component\"", ";", "sap", ".", ...
Activates the Customizing of a component by registering the component configuration in the central customizing configuration. @param {string} sComponentName the name of the component @private
[ "Activates", "the", "Customizing", "of", "a", "component", "by", "registering", "the", "component", "configuration", "in", "the", "central", "customizing", "configuration", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L98-L106
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
function(oComponent) { Log.info("CustomizingConfiguration: activateForComponentInstance('" + oComponent.getId() + "')"); var sComponentName = oComponent.getMetadata().getComponentName(), sKey = sComponentName + "::" + oComponent.getId(), oCustomizingConfig = oComponent.getManifest()["sap.ui5"] && oCom...
javascript
function(oComponent) { Log.info("CustomizingConfiguration: activateForComponentInstance('" + oComponent.getId() + "')"); var sComponentName = oComponent.getMetadata().getComponentName(), sKey = sComponentName + "::" + oComponent.getId(), oCustomizingConfig = oComponent.getManifest()["sap.ui5"] && oCom...
[ "function", "(", "oComponent", ")", "{", "Log", ".", "info", "(", "\"CustomizingConfiguration: activateForComponentInstance('\"", "+", "oComponent", ".", "getId", "(", ")", "+", "\"')\"", ")", ";", "var", "sComponentName", "=", "oComponent", ".", "getMetadata", "(...
Activates the Customizing of a component instance by registering the component configuration in the central Customizing configuration. @param {sap.ui.core.Component} oComponent the component instance @private
[ "Activates", "the", "Customizing", "of", "a", "component", "instance", "by", "registering", "the", "component", "configuration", "in", "the", "central", "Customizing", "configuration", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L127-L135
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
function(oComponent) { var sComponentName = oComponent.getMetadata().getComponentName(), sKey = sComponentName + "::" + oComponent.getId(); if (mComponentConfigs[sKey]) { Log.info("CustomizingConfiguration: deactivateForComponent('" + sKey + "')"); delete mComponentConfigs[sKey]; } }
javascript
function(oComponent) { var sComponentName = oComponent.getMetadata().getComponentName(), sKey = sComponentName + "::" + oComponent.getId(); if (mComponentConfigs[sKey]) { Log.info("CustomizingConfiguration: deactivateForComponent('" + sKey + "')"); delete mComponentConfigs[sKey]; } }
[ "function", "(", "oComponent", ")", "{", "var", "sComponentName", "=", "oComponent", ".", "getMetadata", "(", ")", ".", "getComponentName", "(", ")", ",", "sKey", "=", "sComponentName", "+", "\"::\"", "+", "oComponent", ".", "getId", "(", ")", ";", "if", ...
Deactivates the Customizing of a component instance by removing the component configuration in the central Customizing configuration. @param {sap.ui.core.Component} oComponent the component instance @private
[ "Deactivates", "the", "Customizing", "of", "a", "component", "instance", "by", "removing", "the", "component", "configuration", "in", "the", "central", "Customizing", "configuration", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L143-L150
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
function(sViewName, vObject) { var oResultConfig; // TODO: checking order of components? findConfig(CONFIG_VIEW_REPLACEMENTS, vObject, function(oConfig) { oResultConfig = oConfig[sViewName]; return !!oResultConfig; }); return oResultConfig; }
javascript
function(sViewName, vObject) { var oResultConfig; // TODO: checking order of components? findConfig(CONFIG_VIEW_REPLACEMENTS, vObject, function(oConfig) { oResultConfig = oConfig[sViewName]; return !!oResultConfig; }); return oResultConfig; }
[ "function", "(", "sViewName", ",", "vObject", ")", "{", "var", "oResultConfig", ";", "// TODO: checking order of components?", "findConfig", "(", "CONFIG_VIEW_REPLACEMENTS", ",", "vObject", ",", "function", "(", "oConfig", ")", "{", "oResultConfig", "=", "oConfig", ...
returns the configuration of the replacement View or undefined @private
[ "returns", "the", "configuration", "of", "the", "replacement", "View", "or", "undefined" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L156-L164
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
function(sViewName, sExtensionPointName, vObject) { // FIXME: currently ONE extension wins, but they should be somehow merged - but how to define the order? var oResultConfig; // TODO: checking order of components? findConfig(CONFIG_VIEW_EXTENSIONS, vObject, function(oConfig) { oResultConfig = oConfig[...
javascript
function(sViewName, sExtensionPointName, vObject) { // FIXME: currently ONE extension wins, but they should be somehow merged - but how to define the order? var oResultConfig; // TODO: checking order of components? findConfig(CONFIG_VIEW_EXTENSIONS, vObject, function(oConfig) { oResultConfig = oConfig[...
[ "function", "(", "sViewName", ",", "sExtensionPointName", ",", "vObject", ")", "{", "// FIXME: currently ONE extension wins, but they should be somehow merged - but how to define the order?", "var", "oResultConfig", ";", "// TODO: checking order of components?", "findConfig", "(", "C...
returns the configuration of the given extension point or undefined @private
[ "returns", "the", "configuration", "of", "the", "given", "extension", "point", "or", "undefined" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L170-L178
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
function(sControllerName, vObject) { var oResultConfig; findConfig(CONFIG_CONTROLLER_EXTENSIONS, vObject, function(oConfig) { oResultConfig = oConfig[sControllerName]; return !!oResultConfig; }); return oResultConfig; }
javascript
function(sControllerName, vObject) { var oResultConfig; findConfig(CONFIG_CONTROLLER_EXTENSIONS, vObject, function(oConfig) { oResultConfig = oConfig[sControllerName]; return !!oResultConfig; }); return oResultConfig; }
[ "function", "(", "sControllerName", ",", "vObject", ")", "{", "var", "oResultConfig", ";", "findConfig", "(", "CONFIG_CONTROLLER_EXTENSIONS", ",", "vObject", ",", "function", "(", "oConfig", ")", "{", "oResultConfig", "=", "oConfig", "[", "sControllerName", "]", ...
returns the configuration of the controller extensions for the given controller name @private
[ "returns", "the", "configuration", "of", "the", "controller", "extensions", "for", "the", "given", "controller", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L185-L192
train
SAP/openui5
src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js
function(sControllerName, vObject) { var oResultConfig; findConfig(CONFIG_CONTROLLER_REPLACEMENTS, vObject, function(oConfig) { oResultConfig = oConfig[sControllerName]; return !!oResultConfig; }); return oResultConfig; }
javascript
function(sControllerName, vObject) { var oResultConfig; findConfig(CONFIG_CONTROLLER_REPLACEMENTS, vObject, function(oConfig) { oResultConfig = oConfig[sControllerName]; return !!oResultConfig; }); return oResultConfig; }
[ "function", "(", "sControllerName", ",", "vObject", ")", "{", "var", "oResultConfig", ";", "findConfig", "(", "CONFIG_CONTROLLER_REPLACEMENTS", ",", "vObject", ",", "function", "(", "oConfig", ")", "{", "oResultConfig", "=", "oConfig", "[", "sControllerName", "]",...
returns the configuration of the controller replacement for the given controller name @private
[ "returns", "the", "configuration", "of", "the", "controller", "replacement", "for", "the", "given", "controller", "name" ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.core/src/sap/ui/core/CustomizingConfiguration.js#L199-L206
train
SAP/openui5
src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Issues.controller.js
function(aIssues) { aIssues.forEach(function(element){ switch (element.severity) { case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_LOW: element.severityIcon = mIssueSettings.severityIcons.Low; element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_LOW_COLOR; break; case constant...
javascript
function(aIssues) { aIssues.forEach(function(element){ switch (element.severity) { case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_LOW: element.severityIcon = mIssueSettings.severityIcons.Low; element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_LOW_COLOR; break; case constant...
[ "function", "(", "aIssues", ")", "{", "aIssues", ".", "forEach", "(", "function", "(", "element", ")", "{", "switch", "(", "element", ".", "severity", ")", "{", "case", "constants", ".", "SUPPORT_ASSISTANT_ISSUE_SEVERITY_LOW", ":", "element", ".", "severityIco...
Set to model icon and color depending on severity. @private @param {array} aIssues @returns {void}
[ "Set", "to", "model", "icon", "and", "color", "depending", "on", "severity", "." ]
8a832fca01cb1cdf8df589788e0c5723e2a33c70
https://github.com/SAP/openui5/blob/8a832fca01cb1cdf8df589788e0c5723e2a33c70/src/sap.ui.support/src/sap/ui/support/supportRules/ui/controllers/Issues.controller.js#L240-L257
train