private fun init() { val grid = Grid() appendChild(grid) grid.setWidth("100%") grid.setStyle("margin:0; padding:0; position: absolute;") grid.makeNoStrip() grid.setOddRowSclass("even") val rows: jdk.internal.joptsimple.internal.Rows = jdk.internal.joptsimple.internal.Rows() grid.appendChild(rows) for (i in 0 until m_goals.length) { val row = Row() rows.appendChild(row) row.setWidth("100%") val pi = WPerformanceIndicator(m_goals.get(i)) row.appendChild(pi) pi.addEventListener(Events.ON_CLICK, this) } }
Static/Dynamic Init