ObservableAbstractSelectionModel
CustomCellSelectionModel
| Package: | CQ.wcm |
| Class: | CustomCellSelectionModel |
| 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 | |
|---|---|---|
CustomCellSelectionModel( Object config )
Parameters:
|
CustomCellSelectionModel | |
|
clearSelections() : void Clears all selections.
Clears all selections.
Parameters:
|
CustomCellSelectionModel | |
deselectCell( Array cell ) : void Deselects a cell.
Deselects a cell.
Parameters:
|
CustomCellSelectionModel | |
deselectRange( Array startCell, Array endCell ) : void Deselects a range of cells. All cells in between startCell and endCell are also deselected.
Deselects a range of cells. All cells in between startCell and endCell are also deselected.
Parameters:
|
CustomCellSelectionModel | |
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:
|
CustomCellSelectionModel | |
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 cells.
Gets the number of selected cells.
Parameters:
|
CustomCellSelectionModel | |
|
getSelectedCell() : Array Returns the first selected cell index.
Returns the first selected cell index.
Parameters:
|
CustomCellSelectionModel | |
|
getSelections() : Array Returns the selected cell indices
Returns the selected cell indices
Parameters:
|
CustomCellSelectionModel | |
|
getSortedSelections() : Array Returns the sorted selected cell indices
Returns the sorted selected cell indices
Parameters:
|
CustomCellSelectionModel | |
|
hasNext() : Boolean Returns true if there is a next cell to select
Returns true if there is a next cell to select
Parameters:
|
CustomCellSelectionModel | |
|
hasPrevious() : Boolean Returns true if there is a previous cell to select
Returns true if there is a previous cell to select
Parameters:
|
CustomCellSelectionModel | |
|
hasSelection() : Boolean Returns True if there is a selection.
Returns True if there is a selection.
Parameters:
|
CustomCellSelectionModel | |
|
isLocked() : Boolean Returns true if the selections are locked.
Returns true if the selections are locked.
Parameters:
|
AbstractSelectionModel | |
isSelected( Array/Record record ) : Boolean Returns True if the specified cell is selected.
Returns True if the specified cell is selected.
Parameters:
|
CustomCellSelectionModel | |
|
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 cells.
Selects all cells.
Parameters:
|
CustomCellSelectionModel | |
selectCell( Array cell, [Boolean keepExisting] ) : void Selects a cell.
Selects a cell.
Parameters:
|
CustomCellSelectionModel | |
selectCells( Array cells, [Boolean keepExisting] ) : void Selects multiple cells.
Selects multiple cells.
Parameters:
|
CustomCellSelectionModel | |
selectDown( [Boolean keepExisting] ) : Boolean Selects the cell underneath the last selected cell.
Selects the cell underneath the last selected cell.
Parameters:
|
CustomCellSelectionModel | |
selectLeft( [Boolean keepExisting] ) : Boolean Selects the cell to the left of the last selected cell.
Selects the cell to the left of the last selected cell.
Parameters:
|
CustomCellSelectionModel | |
selectRange( Array startCell, Array endCell, [Boolean keepExisting] ) : void Selects a range of cells. All cells in between startCell and endCell are also selected.
Selects a range of cells. All cells in between startCell and endCell are also selected.
Parameters:
|
CustomCellSelectionModel | |
selectRight( [Boolean keepExisting] ) : Boolean Selects the cell to the right of the last selected cell.
Selects the cell to the right of the last selected cell.
Parameters:
|
CustomCellSelectionModel | |
selectUp( [Boolean keepExisting] ) : Boolean Selects the cell above the last selected cell.
Selects the cell above the last selected cell.
Parameters:
|
CustomCellSelectionModel | |
|
unlock() : void Unlocks the selections.
Unlocks the selections.
Parameters:
|
AbstractSelectionModel | |