Home | Trees | Indices | Help |
|
---|
|
object --+ | SudokuGUI
This class contains the user interface for the Sudoku game program.
|
|||
|
|||
|
|||
|
|||
|
|||
int |
|
||
int |
|
||
Inherited from |
|
|||
Inherited from |
|
Creates and makes visible a new frame, which displays the given sudoku chart.
|
Event handler method: reacts to the user signaling that new text has been entered to a text field by reading whatever is in the field and updating the model accordingly.
|
Examines the contents of the given text field and tries to update the game model (the Sudoku chart) and lock the field (set it as uneditable). If the input is not parseable, clears the field instead. If a mistake was made by the user (new number violates Sudoku rules), the method causes the program to exit.
|
Parses the contents of the given text field as an integer that is to be stored in a Sudoku cell.
|
Tries to update the game model (the Sudoku chart) by filling the cell at the given position with the given number. If the indicated cell is not empty to begin with, the method does nothing. If the number placement violates Sudoku rules, the method causes the program to exit.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Aug 31 10:38:39 2012 | http://epydoc.sourceforge.net |