Enhanced Grid Selection Model

Overview

In BBj 15.0 and higher, BASIS implemented the Enhanced Grid Selection Model that includes much of the same functionality as in the Legacy Grid Selection Model.

The Enhanced Grid Selection Model allows the selection of an arbitrary set of cells in the grid and to allow the user to be able to find out what individual cells are selected in the grid. In the grid's default selection model, it is possible to select ranges of cells as well as rows and columns, but selections involving multiple non-adjacent cells are problematic since the way these selections are represented as selected rows and columns in the grid rather than a set of individual cells.

The new selection model introduces several new methods and a new BBj object:

Features

  • When disabling the BBjStandardGrid, the highlighting for the selection will continue to display.
  • Users can set single multiple cells
  • When making selections programmatically, selections can only be made in the proper selection mode.
    Examples:
    a. If in Row Mode (1), the functions setSelectedColumn(int), setSelectedColumns(BBjVector), setSelectedCell(BBjGridCell), and setSelectedCells(BBjVector) are disabled.
    b. If in Column Mode (2), the functions setSelectedRow(int), setSelectedRows(BBjVector), setSelectedCell(BBjGridCell), and setSelectedCells(BBjVector) are disabled.
    c. If in Cell Mode (0), the functions setSelectedColumn(int), setSelectedColumns(BBjVector), setSelectedColumn(int), and setSelectedColumns(BBjVector) are disabled.
  • When switching between selection modes, such as Row, Column, and Cell, current selections are removed.
  • When switching between Enhanced and Legacy Selection Models, the grid is cleared out of all selections.
  • The ability to get/set a BBjVector of cells.
  • BBjGrid cell is a self contained object that contains the values of Row and Column, which can be later expanded to get/set additional information about a particular cell.