ObservableAbstractSelectionModel
CellSelectionModel
| Package: | CQ.Ext.grid |
| Class: | CellSelectionModel |
| 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 | |
|---|---|---|
CellSelectionModel( Object config )
Parameters:
|
CellSelectionModel | |
clearSelections( Boolean preventNotify ) : void If anything is selected, clears all selections and fires the selectionchange event.
If anything is selected, clears all selections and fires the selectionchange event.
Parameters:
|
CellSelectionModel | |
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 | |
|
getSelectedCell() : Array Returns an array containing the row and column indexes of the currently selected cell
(e.g., [0, 0]), or null if none...
Returns an array containing the row and column indexes of the currently selected cell
(e.g., [0, 0]), or null if none selected. The array has elements:
Parameters:
|
CellSelectionModel | |
|
hasSelection() : Boolean Returns true if there is a selection.
Returns true if there is a selection.
Parameters:
|
CellSelectionModel | |
|
isLocked() : Boolean Returns true if the selections are locked.
Returns true if the selections are locked.
Parameters:
|
AbstractSelectionModel | |
|
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 | |
select( Number rowIndex, Number colIndex, [Boolean preventViewNotify], [Boolean preventFocus], [CQ.Ext.data.Record r] ) : void Selects a cell. Before selecting a cell, fires the
beforecellselect event. If this check is satisfied the cell
will...
Selects a cell. Before selecting a cell, fires the
beforecellselect event. If this check is satisfied the cell
will be selected and followed up by firing the cellselect and
selectionchange events.
Parameters:
|
CellSelectionModel | |
|
unlock() : void Unlocks the selections.
Unlocks the selections.
Parameters:
|
AbstractSelectionModel | |
| Event | Defined By | |
|---|---|---|
beforecellselect : ( SelectionModel this, Number rowIndex, Number colIndex ) Fires before a cell is selected, return false to cancel the selection.
Fires before a cell is selected, return false to cancel the selection.
Listeners will be called with the following arguments:
|
CellSelectionModel | |
cellselect : ( SelectionModel this, Number rowIndex, Number colIndex ) Fires when a cell is selected.
Fires when a cell is selected.
Listeners will be called with the following arguments:
|
CellSelectionModel | |
selectionchange : ( SelectionModel this, Object selection ) Fires when the active selection changes.
Fires when the active selection changes.
Listeners will be called with the following arguments:
|
CellSelectionModel | |