Interface GridCellPicker


public interface GridCellPicker
Takes the taps on the cells of a grid while an editor wants them, the way a spreadsheet puts a reference into the formula being typed when a cell is tapped. Set with DataGrid#setCellPicker(GridCellPicker).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cellPicked(DataGrid grid, int row, int column, boolean extend)
    A cell was tapped while #isPicking(DataGrid) was true.
    boolean
    Whether a tap on a cell now goes to #cellPicked(DataGrid, int, int, boolean) and not to the grid.
  • Method Details

    • isPicking

      boolean isPicking(DataGrid grid)

      Whether a tap on a cell now goes to #cellPicked(DataGrid, int, int, boolean) and not to the grid. While it is false the grid does what it always does: it ends an edit in progress and selects the cell.

      Parameters
      • grid: the grid
      Returns

      true to take the tap

    • cellPicked

      void cellPicked(DataGrid grid, int row, int column, boolean extend)

      A cell was tapped while #isPicking(DataGrid) was true. The grid keeps its selection and any edit in progress.

      Parameters
      • grid: the grid

      • row: the row, as the grid shows it

      • column: the column, an index among the visible columns

      • extend: true when Shift was held, which a spreadsheet takes as widening what was picked last into a range