Class sap.ui.model.SelectionModelModule: sap/ui/model/SelectionModel
sClassName and enriches it with the information contained in oClassInfo.iFromIndex and iToIndex inclusive.fnFunction to the 'selectionChanged' event of this sap.ui.model.SelectionModel.fnFunction from the 'selectionChanged' event of this sap.ui.model.SelectionModel.iStartIndexiMove items.iFromIndex and iToIndex inclusive.iFromIndex and iToIndex inclusive.sClassName and enriches it with the information contained in oClassInfo. oClassInfo might contain the same kind of information as described in sap.ui.base.EventProvider.extend.
| {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 |
| {function} | Created class / constructor function |
| {sap.ui.base.Metadata} | Metadata object describing this class |
iFromIndex and iToIndex inclusive. If iFromIndex is smaller than iToIndex, both parameters are swapped. In SINGLE_SELECTION selection mode, this is equivalent to calling setSelectionInterval, and only the second index is used.
If this call results in a change to the current selection or lead selection, then a SelectionChanged event is fired.
| {int} | iFromIndex | one end of the interval. |
| {int} | iToIndex | other end of the interval |
| {sap.ui.model.SelectionModel} | this to allow method chaining |
fnFunction to the 'selectionChanged' event of this sap.ui.model.SelectionModel.| {object} | oData? | The object, that should be passed along with the event-object when firing the event. |
| {function} | fnFunction | The function to call, when the event occurs. This function will be called on the oListener-instance (if present) or in a 'static way'. |
| {object} | oListener? | Object on which to call the given function. If empty, this Model is used. |
| {sap.ui.model.SelectionModel} | this to allow method chaining |
If this call results in a change to the current selection or lead selection, then a SelectionChanged event is fired.
| {sap.ui.model.SelectionModel} | this to allow method chaining |
fnFunction from the 'selectionChanged' event of this sap.ui.model.SelectionModel.The passed function and listener object must match the ones previously used for event registration.
| {function} | fnFunction | The function to call, when the event occurs. |
| {object} | oListener | Object on which the given function had to be called. |
| {sap.ui.model.SelectionModel} | this to allow method chaining |
Expects following event parameters:
- 'leadIndex' of type
intLead selection index. - 'rowIndices' of type
int[]Other selected indices (if available)
| {object} | mArguments | the arguments to pass along with the event. |
| {int} | mArguments.leadIndex | Lead selection index |
| {int[]} | mArguments.rowIndices? | Other selected indices (if available) |
| {sap.ui.model.SelectionModel} | this to allow method chaining |
| {int} | lead selected index |
| {int[]} | array of selected indices |
| {int} | the current selection mode |
| {int} | iIndex |
| {boolean} | true if the specified index is selected. |
iStartIndexiMove items. This can be used if new items are inserted to the item set and you want to keep the selection. To handle a deletion of items use sliceSelectionInterval.
If this call results in a change to the current selection or lead selection, then a SelectionChanged event is fired.
| {int} | iStartIndex | start at this position |
| {int} | iMove |
| {sap.ui.model.SelectionModel} | this to allow method chaining |
iFromIndex and iToIndex inclusive. If iFromIndex is smaller than iToIndex, both parameters are swapped. If the range of removed selection indices includes the current lead selection, then the lead selection will be unset (set to -1).
If this call results in a change to the current selection or lead selection, then a SelectionChanged event is fired.
| {int} | iFromIndex | one end of the interval. |
| {int} | iToIndex | other end of the interval |
| {sap.ui.model.SelectionModel} | this to allow method chaining |
iToIndex. If this call results in a change to the current selection, then a SelectionChanged event is fired.
| {int} | iToIndex | end of the interval |
| {sap.ui.model.SelectionModel} | this to allow method chaining |
iFromIndex and iToIndex inclusive. If iFromIndex is smaller than iToIndex, both parameters are swapped. In SINGLE_SELECTION selection mode, only iToIndex is used.
If this call results in a change to the current selection, then a SelectionChanged event is fired.
| {int} | iFromIndex | one end of the interval. |
| {int} | iToIndex | other end of the interval |
| {sap.ui.model.SelectionModel} | this to allow method chaining |
sap.ui.model.SelectionModel.SINGLE_SELECTION- Only one list index can be selected at a time. In this mode,setSelectionIntervalandaddSelectionIntervalare equivalent, both replacing the current selection with the index represented by the second argument (the "lead").sap.ui.model.SelectionModel.MULTI_SELECTION- In this mode, there's no restriction on what can be selected.
| {int} | iSelectionMode | selection mode |
iFromIndex is smaller than iToIndex, both parameters are swapped. If the range of removed selection indices includes the current lead selection, then the lead selection will be unset (set to -1).
If this call results in a change to the current selection or lead selection, then a SelectionChanged event is fired.
| {int} | iFromIndex | one end of the interval. |
| {int} | iToIndex | other end of the interval |
| {sap.ui.model.SelectionModel} | this to allow method chaining |