Interface SudokuGridListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
SudokuGridView

public interface SudokuGridListener extends EventListener
Defines the callbacks that can be implemented to listen to events from a SudokuGridModel.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Fired when a cell in the Sudoku grid is updated to a new value
    void
    Fired when a cell in the Sudoku grid is resolved for the first time to a specific value
  • Method Details

    • restart

      void restart(SudokuGridEvent ev)
      Fired when a cell in the Sudoku grid is resolved for the first time to a specific value
      Parameters:
      ev - an event containing the cell which is resolved along with the value it now has
    • cellModified

      void cellModified(SudokuGridEvent ev)
      Fired when a cell in the Sudoku grid is updated to a new value
      Parameters:
      ev - an event containing the cell which is updated along with the value it now has