The ListDelegateManager
class is responsible for handling delegate events for the List
component. It provides a set of methods for calling delegate methods on the List
delegate and the individual rows and cells of the List
.
Calls a delegate method on the List
delegate and the cell component for a given cell event.
Argument Name | Type | Default Value | Description |
---|---|---|---|
eventName |
string |
N/A | The name of the event for which to call the delegate method. |
event |
mc.types.assocarray |
N/A | An associative array containing information about the event. |
Calls a delegate method on the List
delegate and the row component for a given row event.
Argument Name | Type | Default Value | Description |
---|---|---|---|
eventName |
string |
N/A | The name of the event for which to call the delegate method. |
event |
mc.types.assocarray |
N/A | An associative array containing information about the event. |
The callCellDelegateMethod
and callRowDelegateMethod
methods are called to handle delegate events for cells and rows, respectively. They do the following:
- They determine the name of the delegate method to call based on the
eventName
parameter and thecellDelegateFunctionMap
orrowDelegateFunctionMap
maps (forcallCellDelegateMethod
andcallRowDelegateMethod
, respectively). - They determine the name of the component method to call based on the
eventName
parameter and thecomponentFunctionMap
map. - They call the component method on the cell or row component with the appropriate arguments.
- If
isNotifyingListDelegate
istrue
, they call the delegate method on theList
delegate with the appropriate arguments.