sap.suite.ui.commons.TargetFilter.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.commons.TargetFilter with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of informations as described in Element.extend.
Parameters:
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
Returns:
{function} | the created class / constructor function |
Returns a metadata object for class sap.suite.ui.commons.TargetFilter.
Returns:
Adds some column oColumn
to the aggregation named columns
.
Parameters:
Returns:
Parameters:
{string|sap.suite.ui.commons.TargetFilterColumn} | vSelectedColumn | Id of a selectedColumn which becomes an additional target of this selectedColumns association. Alternatively, a selectedColumn instance may be given. |
Returns:
Attach event handler
fnFunction
to the 'cancel' event of this
sap.suite.ui.commons.TargetFilter
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.TargetFilter
.
itself. This event is fired if the user changes a selected filter set to the filter set used for the last search.
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.TargetFilter . itself. |
Returns:
Attach event handler
fnFunction
to the 'filterChange' event of this
sap.suite.ui.commons.TargetFilter
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.TargetFilter
.
itself. This event is fired if the user changes a selected filter set.
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.TargetFilter . itself. |
Returns:
Attach event handler
fnFunction
to the 'search' event of this
sap.suite.ui.commons.TargetFilter
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.TargetFilter
.
itself. This event is fired if the user chooses the Show Selected link.
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.TargetFilter . itself. |
Returns:
Destroys all the columns in the aggregation named columns
.
Returns:
Destroys the measureColumn in the aggregation named measureColumn
.
Returns:
Detach event handler
fnFunction
from the 'cancel' event of this
sap.suite.ui.commons.TargetFilter
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'filterChange' event of this
sap.suite.ui.commons.TargetFilter
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'search' event of this
sap.suite.ui.commons.TargetFilter
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Fire event cancel to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event filterChange to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event search to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Getter for aggregation columns
.
The list of the columns.
Returns:
getEntitySet(): string
Getter for property
entitySet
. The name of the entity set from OData service metadata. The filtering applies to this entity set.
Default value is empty/undefined
Returns:
{string} | the value of property entitySet |
getFilters(): any
Returns a selected filter set.
Returns:
Getter for aggregation measureColumn
.
The measure column.
Returns:
getParameters(): any
Returns the binding parameters for the controls that use this control.
Returns:
getSelectedColumns(): string[]
The list of selected columns. The index of the columns in this list corresponds to the quadrant.
Returns:
indexOfColumn(oColumn): int
Checks for the provided sap.suite.ui.commons.TargetFilterColumn
in the aggregation named columns
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 column into the aggregation named columns
.
Parameters:
{sap.suite.ui.commons.TargetFilterColumn} | oColumn | the column to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the column should be inserted at; for a negative value of iIndex , the column is inserted at position 0; for a value greater than the current size of the aggregation, the column is inserted at the last position |
Returns:
Removes all the controls in the aggregation named columns
.
Additionally unregisters them from the hosting UIArea.
Returns:
removeAllSelectedColumns(): string[]
Returns:
{string[]} | an array with the ids of the removed elements (might be empty) |
Removes an column from the aggregation named columns
.
Parameters:
Returns:
removeSelectedColumn(vSelectedColumn): string
Parameters:
Returns:
{string} | the id of the removed selectedColumn or null |
Triggers filtering in the controls that use this control. Returns this control for the method chaining.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
Returns:
Setter for property
entitySet
.
Default value is empty/undefined
Parameters:
{string} | sEntitySet | new value for property entitySet |
Returns:
Setter for the aggregated measureColumn
.
Parameters:
Returns: