Enhances a given control prototype with consolidated asynchronous handling for delegate modules and their initialization.
The following methods are available:
awaitControlDelegate
- Provides access to the delegate initialization Promise
.getControlDelegate
- Returns the delegate instance, if available.getPayload
- Returns the payload object set for the delegate property.getTypeUtil
- Returns the typeUtil
made available by the delegate moduleinitControlDelegate
- Loads and initializes the delegate module related to the enhanced control.initPropertyHelper
- Loads and initializes the property helper related to the enhanced control.awaitPropertyHelper
- Provides access to the property helper initialization Promise
.getPropertyHelper
- Returns the property helper instance, if available.Additionally, the following methods are wrapped:
applySettings
exit
init
setDelegate
The prototype.init
wrapper creates the following instance fields:
bDelegateInitialized
- Indicator for the availability of delegatesbDelegateLoading
- Indicates whether the initialization of delegate modules is triggered but not yet completed (loading necessary)Node | Description |
---|
Method | Description |
---|---|
sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate |
Provides access to the delegate initialization |
sap.ui.mdc.mixin.DelegateMixin.awaitPropertyHelper |
Provides access to the property helper initialization |
sap.ui.mdc.mixin.DelegateMixin.getControlDelegate |
Returns the delegate instance, if available. |
sap.ui.mdc.mixin.DelegateMixin.getPayload |
Returns the payload object set for the delegate property. |
sap.ui.mdc.mixin.DelegateMixin.getPropertyHelper |
Returns the property helper instance, if available. |
sap.ui.mdc.mixin.DelegateMixin.getTypeUtil |
Returns the |
sap.ui.mdc.mixin.DelegateMixin.initControlDelegate |
Loads and initializes the delegate module related to the enhanced control. |
sap.ui.mdc.mixin.DelegateMixin.initPropertyHelper |
Loads and initializes the property helper related to the enhanced control. |
Provides access to the delegate initialization Promise
. Note: initControlDelegate
must be called to start the delegate initialization
Param | Type | DefaultValue | Description |
---|
Provides access to the property helper initialization Promise
.
Param | Type | DefaultValue | Description |
---|
Returns the delegate instance, if available.
Param | Type | DefaultValue | Description |
---|
Returns the payload object set for the delegate property.
Param | Type | DefaultValue | Description |
---|
Returns the property helper instance, if available.
Param | Type | DefaultValue | Description |
---|
Returns the typeUtil
made available by a delegate module.
Param | Type | DefaultValue | Description |
---|
Loads and initializes the delegate module related to the enhanced control.
Param | Type | DefaultValue | Description |
---|---|---|---|
oPreloadedModule | object |
Preloaded delegate module |
Loads and initializes the property helper related to the enhanced control.
Param | Type | DefaultValue | Description |
---|---|---|---|
CustomPropertyHelper | sap.ui.mdc.util.PropertyHelper |
Custom property helper class |