src/sap.ui.fl/src/sap/ui/fl/support/apps/contentbrowser/controller/LayerContentMaster.controller.js
function (oEvent) {
			var sSource = oEvent.getSource();
			var sContentBindingPath = sSource.getBindingContextPath().substring(1);
			var sContentModelData = this.getView().getModel("content").getData();
			var sContent = sContentModelData[sContentBindingPath];
			var sContentName = sContent.name;
			var sContentFileType = sContentModelData[sContentBindingPath].fileType;
			var oRouter = UIComponent.getRouterFor(this);

			this.sNamespace = (this.sNamespace ? this.sNamespace : '/');

				if (sContentFileType) {
					// show details to a file
					var mRouteParameters = {
						"layer": this.sLayer,
						"namespace": encodeURIComponent(this.sNamespace),
						"fileName": sContentName,
						"fileType": sContentFileType
					};
					oRouter.navTo("ContentDetails", mRouteParameters);
				} else {
					// navigation to a namespace
					this.sNamespace += sContentName + '/';
					oRouter.navTo("LayerContentMaster", {"layer": this.sLayer, "namespace": encodeURIComponent(this.sNamespace)});
				}
		}
function (oEvent) {
			var sSource = oEvent.getSource();
			var sContentBindingPath = sSource.getBindingContextPath().substring(1);
			var sContentModelData = this.getView().getModel("content").getData();
			var sContent = sContentModelData[sContentBindingPath];
			var sContentName = sContent.name;
			var sContentFileType = sContentModelData[sContentBindingPath].fileType;
			var oRouter = UIComponent.getRouterFor(this);

			this.sNamespace = (this.sNamespace ? this.sNamespace : '/');

				if (sContentFileType) {
					// show details to a file
					var mRouteParameters = {
						"layer": this.sLayer,
						"namespace": encodeURIComponent(this.sNamespace),
						"fileName": sContentName,
						"fileType": sContentFileType
					};
					oRouter.navTo("ContentDetails", mRouteParameters);
				} else {
					// navigation to a namespace
					this.sNamespace += sContentName + '/';
					oRouter.navTo("LayerContentMaster", {"layer": this.sLayer, "namespace": encodeURIComponent(this.sNamespace)});
				}
		}
function ( oEvent ) { var sSource = oEvent . getSource ( ) ; var sContentBindingPath = sSource . getBindingContextPath ( ) . substring ( 1 ) ; var sContentModelData = this . getView ( ) . getModel ( "content" ) . getData ( ) ; var sContent = sContentModelData [ sContentBindingPath ] ; var sContentName = sContent . name ; var sContentFileType = sContentModelData [ sContentBindingPath ] . fileType ; var oRouter = UIComponent . getRouterFor ( this ) ; this . sNamespace = ( this . sNamespace ? this . sNamespace : '/' ) ; if ( sContentFileType ) { // show details to a file var mRouteParameters = { "layer" : this . sLayer , "namespace" : encodeURIComponent ( this . sNamespace ) , "fileName" : sContentName , "fileType" : sContentFileType } ; oRouter . navTo ( "ContentDetails" , mRouteParameters ) ; } else { // navigation to a namespace this . sNamespace += sContentName + '/' ; oRouter . navTo ( "LayerContentMaster" , { "layer" : this . sLayer , "namespace" : encodeURIComponent ( this . sNamespace ) } ) ; } }
Handles the selection of a layer entry in the master page;
Gathers the selected namespace and the current layer, then navigates to the target.
@param {Object} oEvent - press event of master components list
@public
Handles the selection of a layer entry in the master page ; Gathers the selected namespace and the current layer then navigates to the target .