コード例 #1
0
 @Override
 public void resetSize(int newSize) {
   this.grid = gridFactory.create(newSize);
   reset();
   Event event = new SizeChangedEvent();
   notifyObservers(event);
 }
コード例 #2
0
 @Inject
 public SudokuController(IGridFactory gridFactory) {
   this.gridFactory = gridFactory;
   this.grid = gridFactory.create(NORMALGRID);
   this.undoManager = new UndoManager();
 }