sap.m.P13nFilterPanel.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.P13nFilterPanel 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.P13nFilterPanel.
Returns:
Adds some filterItem to the aggregation filterItems.
Parameters:
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
addFilterItem event of this
sap.m.P13nFilterPanel.
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.P13nFilterPanel itself.
Event raised if a filter item 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.P13nFilterPanel itself |
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
removeFilterItem event of this
sap.m.P13nFilterPanel.
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.P13nFilterPanel itself.
Removes a filter 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.P13nFilterPanel itself |
- Since:
- 1.26
Returns:
Attaches event handler
fnFunction to the
updateFilterItem event of this
sap.m.P13nFilterPanel.
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.P13nFilterPanel itself.
Updates a filter 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.P13nFilterPanel itself |
- Since:
- 1.26
Returns:
Binds aggregation
filterItems 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 filterItems in the aggregation filterItems.
- Since:
- 1.26
Returns:
Detaches event handler
fnFunction from the
addFilterItem event of this
sap.m.P13nFilterPanel.
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
removeFilterItem event of this
sap.m.P13nFilterPanel.
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
updateFilterItem event of this
sap.m.P13nFilterPanel.
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 addFilterItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
Fires event removeFilterItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
Fires event updateFilterItem to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
- Since:
- 1.26
Returns:
getConditions()
Returns the array of conditions.
- Since:
- 1.26
getContainerQuery(): boolean
Gets current value of property
containerQuery.
Defines if the mediaQuery or a ContainerResize is used for layout update. If the 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 |
getExcludeOperations(the): sap.m.P13nConditionOperation[]
Getter for the exclude operations.
Parameters:
| {string} | the | type for which the operations are defined |
- Since:
- 1.26
Returns:
| {sap.m.P13nConditionOperation[]} | array of operations [sap.m.P13nConditionOperation.BT, sap.m.P13nConditionOperation.EQ] |
Gets content of aggregation
filterItems.
Defines filter items.
- Since:
- 1.26
Returns:
getIncludeOperations(the): sap.m.P13nConditionOperation
Getter for the include operations.
Parameters:
| {string} | the | type for which the operations are defined |
- Since:
- 1.26
Returns:
| {sap.m.P13nConditionOperation} | array of operations [sap.m.P13nConditionOperation.BT, sap.m.P13nConditionOperation.EQ] |
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 |
getMaxExcludes(): string
Gets current value of property
maxExcludes.
Defines the maximum number of exclude filters.
Default value is -1.
- Since:
- 1.26
Returns:
| {string} | Value of property maxExcludes |
getMaxIncludes(): string
Gets current value of property
maxIncludes.
Defines the maximum number of include filters.
Default value is -1.
- Since:
- 1.26
Returns:
| {string} | Value of property maxIncludes |
indexOfFilterItem(oFilterItem): int
Checks for the provided sap.m.P13nFilterItem in the aggregation filterItems. 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 filterItem into the aggregation filterItems.
Parameters:
| {sap.m.P13nFilterItem} | oFilterItem | the filterItem to insert; if empty, nothing is inserted |
| {int} | iIndex | the 0-based index the filterItem should be inserted at; for a negative value of iIndex, the filterItem is inserted at position 0; for a value greater than the current size of the aggregation, the filterItem is inserted at the last position |
- Since:
- 1.26
Returns:
Removes all the controls from the aggregation
filterItems.
Additionally, it unregisters them from the hosting UIArea.
- Since:
- 1.26
Returns:
Removes a filterItem from the aggregation filterItems.
Parameters:
- Since:
- 1.26
Returns:
removeInvalidConditions()
Removes all invalid conditions.
- Since:
- 1.28
removeValidationErrors()
Removes all errors and warnings states from of all filter conditions.
- Since:
- 1.28
setConditions(aConditions)
Sets the array of conditions.
Parameters:
| {object[]} | aConditions | the complete list of conditions |
- Since:
- 1.26
Sets a new value for property
containerQuery.
Defines if the mediaQuery or a ContainerResize is used for layout update. If the 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:
setExcludeOperations(array, the)
Setter for the supported exclude operations array.
Parameters:
| {sap.m.P13nConditionOperation[]} | array | of operations [sap.m.P13nConditionOperation.BT, sap.m.P13nConditionOperation.EQ] |
| {string} | the | type for which the operations are defined |
- Since:
- 1.26
setIncludeOperations(array, the)
Setter for the supported Include operations array.
Parameters:
| {sap.m.P13nConditionOperation[]} | array | of operations [sap.m.P13nConditionOperation.BT, sap.m.P13nConditionOperation.EQ] |
| {string} | the | type for which the operations are defined |
- Since:
- 1.26
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
maxExcludes.
Defines the maximum number of exclude filters.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is -1.
Parameters:
| {string} | sMaxExcludes | New value for property maxExcludes |
- Since:
- 1.26
Returns:
Sets a new value for property
maxIncludes.
Defines the maximum number of include filters.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is -1.
Parameters:
| {string} | sMaxIncludes | New value for property maxIncludes |
- Since:
- 1.26
Returns:
Unbinds aggregation filterItems from model data.
- Since:
- 1.26
Returns:
validateConditions(): boolean
Checks if the entered and modified conditions are correct, marks invalid fields in yellow (warning).
- Since:
- 1.26
Returns:
| {boolean} | false, if there is an invalid condition |