public abstract static class Grid.CellController
Abstract class that must be implemented if you want to get a fine control of
each cell in the grid. Note that you must keep track of the state of each cell
in your code. How to proceed:
Create a class that extends CellController and implement each of the methods.
Then call grid.setCellController passing an instance of the created class.
Each time a cell is drawn, the getForeColor, getBackColor and getFont methods are called.
If you want to use the default values, return null.
If a column has choices activated (with setColumnChoices), each time the ComboBox
will be opened, the getChoices method is called. This way, you can dynamically change the
choices for each cell. If you want to use the default values, return null.
Each time a cell is clicked, the isEnabled method is called. If you return false to it,
the event is not generated; also, when trying to open the ComboBox or the Edit assigned to
the column, the control will not be activated. This is valid for a check column too.
Note that using a CellControler makes the grid drawings a bit slower. Also, if the user sorts the
columns, you may get scrambled. You can disable sort using grid.disableSort = true.