sap.ui.core.UIArea.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.core.UIArea 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.base.ManagedObject.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 |
Returns a metadata object for class sap.ui.core.UIArea.
Returns:
Adds some content to the aggregation content
.
Parameters:
Returns:
Adds some dependent to the aggregation dependents
.
Parameters:
Returns:
Destroys all the content in the aggregation content
.
Returns:
Destroys all the dependents in the aggregation dependents
.
Returns:
getBindingContext(): null
Provide getBindingContext, as UIArea can be parent of an element.
Returns:
{null} | Always returns null. |
Gets content of aggregation
content
.
Content that is displayed in the UIArea.
Returns:
Gets content of aggregation
dependents
.
Dependent objects whose lifecycle is bound to the UIarea but which are not automatically rendered by the UIArea.
Returns:
Returns the Core's event provider as new eventing parent to enable control event bubbling to the core to ensure compatibility with the core validation events.
Returns:
getId(): string|null
Returns this UIArea
's id (as determined from provided RootNode).
Returns:
{string|null} | id of this UIArea |
getRootNode(): Element
Returns the Root Node hosting this instance of UIArea
.
Returns:
{Element} | the Root Node hosting this instance of UIArea . |
Returns this UI area. Needed to stop recursive calls from an element to its parent.
Returns:
indexOfContent(oContent): int
Checks for the provided sap.ui.core.Control
in the aggregation content
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfDependent(oDependent): int
Checks for the provided sap.ui.core.Control
in the aggregation dependents
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a content into the aggregation content
.
Parameters:
{sap.ui.core.Control} | oContent | the content to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the content should be inserted at; for a negative value of iIndex , the content is inserted at position 0; for a value greater than the current size of the aggregation, the content is inserted at the last position |
Returns:
Inserts a dependent into the aggregation dependents
.
Parameters:
{sap.ui.core.Control} | oDependent | the dependent to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the dependent should be inserted at; for a negative value of iIndex , the dependent is inserted at position 0; for a value greater than the current size of the aggregation, the dependent is inserted at the last position |
Returns:
invalidate()
Will be used as end-point for invalidate-bubbling from controls up their hierarchy.
Triggers re-rendering of the UIAreas content.
isActive(): boolean
Checks whether the control is still valid (is in the DOM)
Returns:
{boolean} | True if the control is still in the active DOM |
isInvalidateSuppressed()
Returns whether rerendering is currently suppressed on this UIArea
isLocked(): boolean
Returns the locked state of the sap.ui.core.UIArea
Returns:
lock()
Locks this instance of UIArea.
Rerendering and eventing will not be active as long as no unlock is called.
Removes all the controls from the aggregation
content
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
dependents
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a content from the aggregation content
.
Parameters:
Returns:
Removes a dependent from the aggregation dependents
.
Parameters:
Returns:
setRootNode(oRootNode)
Allows setting the Root Node hosting this instance of UIArea
.
The Dom Ref must have an Id that will be used as Id for this instance of UIArea
.
Parameters:
{object} | oRootNode | the hosting Dom Ref for this instance of UIArea . |
unlock()
Un-Locks this instance of UIArea.
Rerendering and eventing will now be enabled again.
Returns the content control of this UIArea
at the specified index. If no index is given the first content control is returned.
Parameters:
{int} | idx | index of the control in the content of this UIArea |
- Deprecated:
- use function
getContent
instead
Returns:
setRootControl(oRootControl)
Sets the root control to be displayed in this UIArea.
First, all old content controls (if any) will be detached from this UIArea (e.g. their parent relationship to this UIArea will be cut off). Then the parent relationship for the new content control (if not empty) will be set to this UIArea and finally, the UIArea will be marked for re-rendering.
The real re-rendering happens whenever the re-rendering is called. Either implicitly at the end of any control event or by calling sap.ui.getCore().applyChanges().
Parameters:
- Deprecated:
- use functions
removeAllContent
and addContent
instead