Class sap.ui.generic.template.AppComponentModule: sap/ui/generic/template/AppComponent

extends UIComponent

The AppComponent class creates and initializes a new application component. It boots up the smart template application and creates the NavigationController, TransactionController and ApplicationController objects.


Since: 1.30.0.
Constructor Summary
new sap.ui.generic.template.AppComponent()Base class for application components used in smart template applications.
Method Summary
sap.ui.generic.template.AppComponent.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.generic.template.AppComponent with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.generic.template.AppComponent.getMetadata()Returns a metadata object for class sap.ui.generic.template.AppComponent.
createContent()Creates the content of the component.
exit()Cleans up the component instance before destruction.
getApplicationController()Returns the reference to the application controller instance that has been created by the AppComponent.
getConfig()Returns the application configuration metadata that has been created and/or specified in the app descriptor.
getNavigationController()Returns the reference to the navigation controller instance that has been created by AppComponent.
getTransactionController()Returns the reference to the transaction controller instance.
init()Initializes the AppComponent instance after creation.
Constructor Detail
new sap.ui.generic.template.AppComponent()
Base class for application components used in smart template applications.
Method Detail
sap.ui.generic.template.AppComponent.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.generic.template.AppComponent with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.UIComponent.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.generic.template.AppComponent.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.generic.template.AppComponent.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
createContent(): Object
Creates the content of the component.
Returns:
{Object} the root view
exit()
Cleans up the component instance before destruction.
getApplicationController(): sap.ui.generic.app.ApplicationController
Returns the reference to the application controller instance that has been created by the AppComponent.
Returns:
{sap.ui.generic.app.ApplicationController} the application controller instance
getConfig(): Object
Returns the application configuration metadata that has been created and/or specified in the app descriptor.
Returns:
{Object} the application configuration
getNavigationController(): sap.ui.generic.template.NavigationController
Returns the reference to the navigation controller instance that has been created by AppComponent.
Returns:
{sap.ui.generic.template.NavigationController} the navigation controller instance
Returns the reference to the transaction controller instance.
Returns:
{sap.ui.generic.app.transaction.TransactionController} the transaction controller instance
init()
Initializes the AppComponent instance after creation.