class WordGridView : View() { private val wgModel: WordGridModel by inject() private val CELL_WIDTH_HEIGHT = 30.0 //private val textLetters: Array = emptyArray() init { } override val root = borderpane { top = text("My Word Search Puzzle").setId(Styles.title) center = pane { for (row in 0..wgModel.rows) { for (col in 0..wgModel.cols) { val wgCell = WordGridCell() add(WordGridCellFrag(row, col, CELL_WIDTH_HEIGHT, wgCell)) wgModel.addWordGridCell(wgCell) } } } } }