GridColumnModelListener
defines an interface for classes that wish to listen to
module:caplin/grid/GridColumnModel
events.
Methods
-
onApplyFilters()
-
An event method that is called when the filters have been applied on the
module:caplin/grid/GridColumn
s within themodule:caplin/grid/GridColumnModel
.- Implementations:
- module:caplin/grid/DataProviderRowModel#onApplyFilters
- See:
-
onColumnsAdded(pGridColumns, nStartIndex)
-
An event method that is called when a column has been added to the
GridColumnModel
.All GridColumn elements in the specified array are added in sequential order starting at the specified index.
Parameters:
Name Type Description pGridColumns
Array An array of module:caplin/grid/GridColumn
s that were added to the model.nStartIndex
int The start index at which the first column in the specified list was added. -
onColumnsRemoved(pGridColumns, nStartIndex)
-
An event method that is called when a column has been removed from to the
module:caplin/grid/GridColumnModel
.All GridColumn elements in the specified array are removed in sequential order starting at the specified index.
Parameters:
Name Type Description pGridColumns
Array An array of module:caplin/grid/GridColumn
s that were removed from the model.nStartIndex
int The start index at which the first column in the specified list was removed. -
onFiltersChanged(oGridColumn)
-
An event method that is fired when a
GridColumn
has had any of its filters changed.Parameters:
Name Type Description oGridColumn
module:caplin/grid/GridColumn The grid column instance where the event occurred. -
onRequiredFieldsChanged(pFields)
-
An event method that is called when the fields required by all the
module:caplin/grid/GridColumn
s within themodule:caplin/grid/GridColumnModel
change.All
module:caplin/grid/GridColumn
elements in the specified array are removed in sequential order starting at the specified index.Parameters:
Name Type Description pFields
Array An array of field names as strings that are required by the module:caplin/grid/GridColumn
s within themodule:caplin/grid/GridColumnModel
.- Implementations:
- module:caplin/grid/DataProviderRowModel#onRequiredFieldsChanged
- See:
-
onSortColumnChanged()
-
An event method that is fired when the
module:caplin/grid/GridColumn
that will be used to sort the grid has changed.- Implementations:
- module:caplin/grid/DataProviderRowModel#onSortColumnChanged
- module:caplin/grid/decorator/ColumnSortDecorator#onSortColumnChanged
- module:caplin/grid/GridView#onSortColumnChanged
- See:
-
onWidthChanged(oGridColumn)
-
An event method that is called when a column's width has been changed.
Parameters:
Name Type Description oGridColumn
module:caplin/grid/GridColumn The grid column where the event occurred. - Implementations: