sap.ui.ux3.CollectionInspector.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.ux3.CollectionInspector 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.Control.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.ux3.CollectionInspector.
Returns:
Adds some collection oCollection to the aggregation named collections.
Parameters:
Returns:
Adds some content oContent to the aggregation named content.
Parameters:
Returns:
Attaches event handler
fnFunction to the
collectionSelected event of this
sap.ui.ux3.CollectionInspector.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.ux3.CollectionInspector itself.
Event is fired if user selects a collection
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.CollectionInspector itself |
Returns:
Attaches event handler
fnFunction to the
editCollection event of this
sap.ui.ux3.CollectionInspector.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.ux3.CollectionInspector itself.
Fires when the edit button is clicked
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.CollectionInspector itself |
Returns:
Attaches event handler
fnFunction to the
itemSelectionChanged event of this
sap.ui.ux3.CollectionInspector.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.ux3.CollectionInspector itself.
Fires when an item in a collection is selected
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.CollectionInspector itself |
Returns:
closeSidebar()
Closes the siedebar
Destroys the collection aggregation
Returns:
Destroys all the content in the aggregation named content.
Returns:
Detaches event handler
fnFunction from the
collectionSelected event of this
sap.ui.ux3.CollectionInspector.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction from the
editCollection event of this
sap.ui.ux3.CollectionInspector.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction from the
itemSelectionChanged event of this
sap.ui.ux3.CollectionInspector.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event collectionSelected to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event editCollection to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event itemSelectionChanged to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets content of aggregation
collections.
Collections which are displayed in the COllectionInspector
Returns:
Gets content of aggregation
content.
All controls that are currently displayed
Returns:
getEditButton()
Return the edit button
getFitParent(): boolean
Gets current value of property
fitParent.
If set to true, control will fit parents content area
Default value is true.
Returns:
| {boolean} | Value of property fitParent |
ID of the element which is the current target of the association selectedCollection, or null.
Returns:
getSidebarVisible(): boolean
Gets current value of property
sidebarVisible.
Defines if the list of collection items is visible on the left
Default value is true.
Returns:
| {boolean} | Value of property sidebarVisible |
indexOfCollection(oCollection): int
Checks for the provided sap.ui.ux3.Collection in the aggregation collections. 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 |
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 |
Inserts a collection into the aggregation named collections.
Parameters:
| {sap.ui.ux3.Collection} | oCollection | the collection to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the collection should be inserted at; for a negative value of iIndex, the collection is inserted at position 0; for a value greater than the current size of the aggregation, the collection is inserted at the last position |
Returns:
Inserts a content into the aggregation named 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:
openSidebar()
Opens the sidebar
Removes all the controls in the aggregation named collections.
Additionally unregisters them from the hosting UIArea.
Returns:
Removes all the controls in the aggregation named content.
Additionally unregisters them from the hosting UIArea.
Returns:
Removes an collection from the aggregation named collections.
Parameters:
Returns:
Removes an content from the aggregation named content.
Parameters:
Returns:
Sets a new value for property
fitParent.
If set to true, control will fit parents content area
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bFitParent | New value for property fitParent |
Returns:
Sets the associated selectedCollection.
Parameters:
| {sap.ui.ux3.Collection} | oSelectedCollection | Id of an element which becomes the new target of this selectedCollection association; alternatively, an element instance may be given |
Returns:
Sets a new value for property
sidebarVisible.
Defines if the list of collection items is visible on the left
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bSidebarVisible | New value for property sidebarVisible |
Returns: