sap.m.P13nGroupPanel.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.P13nGroupPanel with name
sClassName and enriches it with the information contained in
oClassInfo.
oClassInfo might contain the same kind of information as described in sap.m.P13nPanel.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.m.P13nGroupPanel.
Returns:
Adds some groupItem to the aggregation groupItems.
Parameters:
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
addGroupItem event of this
sap.m.P13nGroupPanel.
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.m.P13nGroupPanel itself.
Event raised if a GroupItem has been added.
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.m.P13nGroupPanel itself |
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
removeGroupItem event of this
sap.m.P13nGroupPanel.
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.m.P13nGroupPanel itself.
Removes a group item.
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.m.P13nGroupPanel itself |
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
updateGroupItem event of this
sap.m.P13nGroupPanel.
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.m.P13nGroupPanel itself.
Updates a group item.
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.m.P13nGroupPanel itself |
- Since:
- 1.26
Returns:
Binds aggregation
groupItems to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.
Parameters:
| {object} | oBindingInfo | The binding information |
- Since:
- 1.26
Returns:
Destroys all the groupItems in the aggregation groupItems.
- Since:
- 1.26
Returns:
Detaches event handler
fnFunction from the
addGroupItem event of this
sap.m.P13nGroupPanel.
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 |
- Since:
- 1.26
Returns:
Detaches event handler
fnFunction from the
removeGroupItem event of this
sap.m.P13nGroupPanel.
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 |
- Since:
- 1.26
Returns:
Detaches event handler
fnFunction from the
updateGroupItem event of this
sap.m.P13nGroupPanel.
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 |
- Since:
- 1.26
Returns:
Fires event addGroupItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
Fires event removeGroupItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
Fires event updateGroupItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
getContainerQuery(): boolean
Gets current value of property
containerQuery.
Defines if mediaQuery or ContainerResize is used for a layout update. If ConditionPanel is used in a dialog, the property must be set to true.
Default value is false.
- Since:
- 1.26
Returns:
| {boolean} | Value of property containerQuery |
Gets content of aggregation
groupItems.
Defined group items.
- Since:
- 1.26
Returns:
getLayoutMode(): string
Gets current value of property
layoutMode.
Can be used to control the layout behavior. Default is "" which will automatically change the layout. With "Desktop", "Table" or"Phone" you can set a fixed layout.
- Since:
- 1.26
Returns:
| {string} | Value of property layoutMode |
getMaxGroups(): string
Gets current value of property
maxGroups.
Defines the maximum number of groups.
Default value is -1.
- Since:
- 1.26
Returns:
| {string} | Value of property maxGroups |
indexOfGroupItem(oGroupItem): int
Checks for the provided sap.m.P13nGroupItem in the aggregation groupItems. and returns its index if found or -1 otherwise.
Parameters:
- Since:
- 1.26
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a groupItem into the aggregation groupItems.
Parameters:
| {sap.m.P13nGroupItem} | oGroupItem | the groupItem to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the groupItem should be inserted at; for a negative value of iIndex, the groupItem is inserted at position 0; for a value greater than the current size of the aggregation, the groupItem is inserted at the last position |
- Since:
- 1.26
Returns:
Removes all the controls from the aggregation
groupItems.
Additionally, it unregisters them from the hosting UIArea.
- Since:
- 1.26
Returns:
Removes a groupItem from the aggregation groupItems.
Parameters:
- Since:
- 1.26
Returns:
removeInvalidConditions()
Removes all invalid group conditions.
- Since:
- 1.28
removeValidationErrors()
Removes all errors/warning states from of all group conditions.
- Since:
- 1.28
Sets a new value for property
containerQuery.
Defines if mediaQuery or ContainerResize is used for a layout update. If ConditionPanel is used in a dialog, the property must be set to true.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
Parameters:
| {boolean} | bContainerQuery | New value for property containerQuery |
- Since:
- 1.26
Returns:
Sets a new value for property
layoutMode.
Can be used to control the layout behavior. Default is "" which will automatically change the layout. With "Desktop", "Table" or"Phone" you can set a fixed layout.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sLayoutMode | New value for property layoutMode |
- Since:
- 1.26
Returns:
Sets a new value for property
maxGroups.
Defines the maximum number of groups.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is -1.
Parameters:
| {string} | sMaxGroups | New value for property maxGroups |
- Since:
- 1.26
Returns:
setOperations(array)
Setter for the supported operations array.
Parameters:
| {array} | array | of operations [sap.m.P13nConditionOperation.BT, sap.m.P13nConditionOperation.EQ] |
- Since:
- 1.26
Unbinds aggregation groupItems from model data.
- Since:
- 1.26
Returns:
validateConditions()
Checks if the entered or modified conditions are correct, marks invalid fields yellow (Warning) and opens a popup message dialog to let the user know that some values are not correct or missing.
- Since:
- 1.26