ObservableAbstractSelectionModel
RowSelectionModel
| Package: | CQ.Ext.grid |
| Class: | RowSelectionModel |
| Subclasses: | CheckboxSelectionModel |
| Extends: | CQ.Ext.grid.AbstractSelectionModel |
| Clientlib: | cq.widgets |
| Property | Defined By | |
|---|---|---|
|
grid : Object
The GridPanel for which this SelectionModel is handling selection. Read-only.
|
AbstractSelectionModel | |
| Method | Defined By | |
|---|---|---|
RowSelectionModel( Object config )
Parameters:
|
RowSelectionModel | |
clearSelections( [Boolean fast] ) : void Clears all selections if the selection model
is not locked.
Clears all selections if the selection model
is not locked.
Parameters:
|
RowSelectionModel | |
deselectRange( Number startRow, Number endRow ) : void Deselects a range of rows if the selection model
is not locked.
All rows in between startRow and endRow are also dese...
Deselects a range of rows if the selection model
is not locked.
All rows in between startRow and endRow are also deselected.
Parameters:
|
RowSelectionModel | |
deselectRow( Number row, [Boolean preventViewNotify] ) : void Deselects a row. Before deselecting a row, checks if the selection model
is locked.
If this check is satisfied the r...
Deselects a row. Before deselecting a row, checks if the selection model
is locked.
If this check is satisfied the row will be deselected and followed up by
firing the rowdeselect and selectionchange events.
Parameters:
|
RowSelectionModel | |
each( Function fn, [Object scope] ) : Boolean Calls the passed function with each selection. If the function returns
false, iteration is stopped and this function ...
Calls the passed function with each selection. If the function returns
false, iteration is stopped and this function returns
false. Otherwise it returns true.
Parameters:
|
RowSelectionModel | |
enableBubble( String/Array events ) : void Enables events fired by this Observable to bubble up an owner hierarchy by calling
this.getBubbleTarget() if present....
Enables events fired by this Observable to bubble up an owner hierarchy by calling
This is commonly used by CQ.Ext.Components to bubble events to owner Containers. See CQ.Ext.Component.getBubbleTarget. The default implementation in CQ.Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to access the required target more quickly. Example:
Parameters:
|
Observable | |
|
getCount() : Number Gets the number of selected rows.
Gets the number of selected rows.
Parameters:
|
RowSelectionModel | |
|
getSelected() : Record Returns the first selected record.
Returns the first selected record.
Parameters:
|
RowSelectionModel | |
|
getSelections() : Array Returns the selected records
Returns the selected records
Parameters:
|
RowSelectionModel | |
|
hasNext() : Boolean Returns true if there is a next record to select
Returns true if there is a next record to select
Parameters:
|
RowSelectionModel | |
|
hasPrevious() : Boolean Returns true if there is a previous record to select
Returns true if there is a previous record to select
Parameters:
|
RowSelectionModel | |
|
hasSelection() : Boolean Returns true if there is a selection.
Returns true if there is a selection.
Parameters:
|
RowSelectionModel | |
isIdSelected( String id ) : Boolean Returns true if the specified record id is selected.
Returns true if the specified record id is selected.
Parameters:
|
RowSelectionModel | |
|
isLocked() : Boolean Returns true if the selections are locked.
Returns true if the selections are locked.
Parameters:
|
AbstractSelectionModel | |
isSelected( Number/Record index ) : Boolean Returns true if the specified row is selected.
Returns true if the specified row is selected.
Parameters:
|
RowSelectionModel | |
|
lock() : void Locks the selections.
Locks the selections.
Parameters:
|
AbstractSelectionModel | |
relayEvents( Object o, Array events ) : void Relays selected events from the specified Observable as if the events were fired by this.
Relays selected events from the specified Observable as if the events were fired by this.
Parameters:
|
Observable | |
|
selectAll() : void Selects all rows if the selection model
is not locked.
Selects all rows if the selection model
is not locked.
Parameters:
|
RowSelectionModel | |
|
selectFirstRow() : void Selects the first row in the grid.
Selects the first row in the grid.
Parameters:
|
RowSelectionModel | |
selectLastRow( [Boolean keepExisting] ) : void Select the last row.
Select the last row.
Parameters:
|
RowSelectionModel | |
selectNext( [Boolean keepExisting] ) : Boolean Selects the row immediately following the last selected row.
Selects the row immediately following the last selected row.
Parameters:
|
RowSelectionModel | |
selectPrevious( [Boolean keepExisting] ) : Boolean Selects the row that precedes the last selected row.
Selects the row that precedes the last selected row.
Parameters:
|
RowSelectionModel | |
selectRange( Number startRow, Number endRow, [Boolean keepExisting] ) : void Selects a range of rows if the selection model
is not locked.
All rows in between startRow and endRow are also selected.
Selects a range of rows if the selection model
is not locked.
All rows in between startRow and endRow are also selected.
Parameters:
|
RowSelectionModel | |
selectRecords( Array records, [Boolean keepExisting] ) : void Select records.
Select records.
Parameters:
|
RowSelectionModel | |
selectRow( Number row, [Boolean keepExisting], [Boolean preventViewNotify] ) : void Selects a row. Before selecting a row, checks if the selection model
is locked and fires the
beforerowselect event. ...
Selects a row. Before selecting a row, checks if the selection model
is locked and fires the
beforerowselect event. If these checks are satisfied the row
will be selected and followed up by firing the rowselect and
selectionchange events.
Parameters:
|
RowSelectionModel | |
selectRows( Array rows, [Boolean keepExisting] ) : void Selects multiple rows.
Selects multiple rows.
Parameters:
|
RowSelectionModel | |
|
unlock() : void Unlocks the selections.
Unlocks the selections.
Parameters:
|
AbstractSelectionModel | |
| Event | Defined By | |
|---|---|---|
beforerowselect : ( SelectionModel this, Number rowIndex, Boolean keepExisting, Record record ) Fires before a row is selected, return false to cancel the selection.
Fires before a row is selected, return false to cancel the selection.
Listeners will be called with the following arguments:
|
RowSelectionModel | |
rowdeselect : ( SelectionModel this, Number rowIndex, Record record ) Fires when a row is deselected. To prevent deselection
lock the selections.
Fires when a row is deselected. To prevent deselection
lock the selections.
Listeners will be called with the following arguments:
|
RowSelectionModel | |
rowselect : ( SelectionModel this, Number rowIndex, CQ.Ext.data.Record r ) Fires when a row is selected.
Fires when a row is selected.
Listeners will be called with the following arguments:
|
RowSelectionModel | |
selectionchange : ( SelectionModel this ) Fires when the selection changes
Fires when the selection changes
Listeners will be called with the following arguments:
|
RowSelectionModel | |