This class has no public properties.
|
RowSelectionModel(Object config ) |
RowSelectionModel |
|
|
addEvents(Object object ) : void |
Observable |
Copies any events from the passed object onto this object if they do not already exist. The passed object
must also ... |
|
addListener(String eventName , Function handler , [Object options ]) : void |
Observable |
Appends an event handler to this component |
|
clearSelections() : void |
RowSelectionModel |
Clears all selections. |
|
deselectRange(Number startRow , Number endRow ) : void |
RowSelectionModel |
Deselects a range of rows. All rows in between startRow and endRow are also deselected. |
|
deselectRow(Number row ) : void |
RowSelectionModel |
Deselects a row. |
|
fireEvent(String eventName , Object... args ) : Boolean |
Observable |
Fires the specified event with the passed parameters (minus the event name). |
|
getCount() : Number |
RowSelectionModel |
Gets the number of selected rows. |
|
getSelected() : Record |
RowSelectionModel |
Returns the first selected record. |
|
getSelections() : Array |
RowSelectionModel |
Returns the selected records |
|
hasListener(String eventName ) : Boolean |
Observable |
Checks to see if this object is currently listening for a specified event |
|
hasSelection() : Boolean |
RowSelectionModel |
Returns True if there is a selection. |
|
isIdSelected(String id ) : Boolean |
RowSelectionModel |
Returns True if the specified record id is selected. |
|
isLocked() : Boolean |
AbstractSelectionModel |
Returns true if the selections are locked |
|
isSelected(Number/Record record ) : Boolean |
RowSelectionModel |
Returns True if the specified row is selected. |
|
lock() : void |
AbstractSelectionModel |
Lock the selections |
|
on(String eventName , Function handler , [Object options ]) : void |
Observable |
Appends an event handler to this element (shorthand for addListener) |
|
purgeListeners() : void |
Observable |
Removes all listeners for this object |
|
removeListener(String eventName , Function handler , [Object scope ]) : void |
Observable |
Removes a listener |
|
selectAll() : void |
RowSelectionModel |
Selects all rows. |
|
selectFirstRow() : void |
RowSelectionModel |
Selects the first row in the grid. |
|
selectLastRow([Boolean keepExisting ]) : void |
RowSelectionModel |
Select the last row. |
|
selectNext([Boolean keepExisting ]) : void |
RowSelectionModel |
Selects the row immediately following the last selected row. |
|
selectPrevious([Boolean keepExisting ]) : void |
RowSelectionModel |
Selects the row that precedes the last selected row. |
|
selectRange(Number startRow , Number endRow , [Boolean keepExisting ]) : void |
RowSelectionModel |
Selects a range of rows. All rows in between startRow and endRow are also selected. |
|
selectRecords(Array records , [Boolean keepExisting ]) : void |
RowSelectionModel |
Select records. |
|
selectRow(Number row , [Boolean keepExisting ]) : void |
RowSelectionModel |
Selects a row. |
|
selectRows(Array rows , [Boolean keepExisting ]) : void |
RowSelectionModel |
Selects multiple rows. |
|
un(String eventName , Function handler , [Object scope ]) : void |
Observable |
Removes a listener (shorthand for removeListener) |
|
unlock() : void |
AbstractSelectionModel |
Unlock the selections |
addEvents
public function addEvents(Object object
)
Copies any events from the passed object onto this object if they do not already exist. The passed object
must also inherit from Observable for this method to have any effect.
addListener
public function addListener(String eventName
, Function handler
, [Object options
])
Appends an event handler to this component
clearSelections
public function clearSelections()
This method is defined by RowSelectionModel.
deselectRange
public function deselectRange(Number startRow
, Number endRow
)
Deselects a range of rows. All rows in between startRow and endRow are also deselected.
This method is defined by RowSelectionModel.
deselectRow
public function deselectRow(Number row
)
This method is defined by RowSelectionModel.
fireEvent
public function fireEvent(String eventName
, Object... args
)
Fires the specified event with the passed parameters (minus the event name).
getCount
public function getCount()
Gets the number of selected rows.
This method is defined by RowSelectionModel.
getSelected
public function getSelected()
Returns the first selected record.
This method is defined by RowSelectionModel.
getSelections
public function getSelections()
Returns the selected records
This method is defined by RowSelectionModel.
hasListener
public function hasListener(String eventName
)
Checks to see if this object is currently listening for a specified event
hasSelection
public function hasSelection()
Returns True if there is a selection.
This method is defined by RowSelectionModel.
isIdSelected
public function isIdSelected(String id
)
Returns True if the specified record id is selected.
This method is defined by RowSelectionModel.
isLocked
public function isLocked()
Returns true if the selections are locked
isSelected
public function isSelected(Number/Record record
)
Returns True if the specified row is selected.
This method is defined by RowSelectionModel.
lock
public function lock()
on
public function on(String eventName
, Function handler
, [Object options
])
Appends an event handler to this element (shorthand for addListener)
purgeListeners
public function purgeListeners()
Removes all listeners for this object
removeListener
public function removeListener(String eventName
, Function handler
, [Object scope
])
selectAll
public function selectAll()
This method is defined by RowSelectionModel.
selectFirstRow
public function selectFirstRow()
Selects the first row in the grid.
This method is defined by RowSelectionModel.
selectLastRow
public function selectLastRow([Boolean keepExisting
])
This method is defined by RowSelectionModel.
selectNext
public function selectNext([Boolean keepExisting
])
Selects the row immediately following the last selected row.
This method is defined by RowSelectionModel.
selectPrevious
public function selectPrevious([Boolean keepExisting
])
Selects the row that precedes the last selected row.
This method is defined by RowSelectionModel.
selectRange
public function selectRange(Number startRow
, Number endRow
, [Boolean keepExisting
])
Selects a range of rows. All rows in between startRow and endRow are also selected.
Parameters:
startRow
: NumberThe index of the first row in the range
endRow
: NumberThe index of the last row in the range
keepExisting
: Boolean(optional) True to retain existing selections
Returns:
This method is defined by RowSelectionModel.
selectRecords
public function selectRecords(Array records
, [Boolean keepExisting
])
This method is defined by RowSelectionModel.
selectRow
public function selectRow(Number row
, [Boolean keepExisting
])
This method is defined by RowSelectionModel.
selectRows
public function selectRows(Array rows
, [Boolean keepExisting
])
This method is defined by RowSelectionModel.
un
public function un(String eventName
, Function handler
, [Object scope
])
Removes a listener (shorthand for removeListener)
unlock
public function unlock()