Class sap.ui.generic.template.AppComponentModule: sap/ui/generic/template/AppComponent
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.
Events borrowed from class sap.ui.base.ManagedObject
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.
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.
Methods borrowed from class sap.ui.core.UIComponent
Methods borrowed from class sap.ui.core.Component
Methods borrowed from class sap.ui.base.ManagedObject
addAggregation, addAssociation, applySettings, attachFormatError, attachModelContextChange, attachParseError, attachValidationError, attachValidationSuccess, bindAggregation, bindContext, bindObject, bindProperty, clone, destroy, destroyAggregation, detachFormatError, detachModelContextChange, detachParseError, detachValidationError, detachValidationSuccess, findAggregatedObjects, fireFormatError, fireModelContextChange, fireParseError, fireValidationError, fireValidationSuccess, getAggregation, getAssociation, getBinding, getBindingContext, getBindingInfo, getBindingPath, getId, getModel, getObjectBinding, getOriginInfo, getParent, getProperty, hasModel, indexOfAggregation, insertAggregation, invalidate, isBound, isInvalidateSuppressed, isTreeBinding, propagateMessages, removeAggregation, removeAllAggregation, removeAllAssociation, removeAssociation, setAggregation, setAssociation, setBindingContext, setModel, setProperty, toString, unbindAggregation, unbindContext, unbindObject, unbindProperty, validateAggregation, validateProperty
Methods borrowed from class sap.ui.base.EventProvider
Constructor Detail
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 |
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 |
getTransactionController(): sap.ui.generic.app.transaction.TransactionController
Returns the reference to the transaction controller instance.
Returns:
{sap.ui.generic.app.transaction.TransactionController} | the transaction controller instance |