/** method to insert the same value into every cell of the displayed table */ public void insertTableValues() { Number value = Integer.valueOf(tableValue.getText()); Number[][] u = root.getHpplanModel().getU(); for (int i = 0; i < u.length; i++) { for (int j = 0; j < u[0].length; j++) { u[i][j] = value; } } setTableData(tableU, u, "j: ", "t: ", new Decimals(2)); }
/** @see de.oth.hsp.common.view.IPageController#inEvent() */ @Override public void inEvent() { Decimals decimals = new Decimals(2); setTableData(tableU, root.getHpplanModel().getU(), "j: ", "t: ", decimals); }
/** @see de.oth.hsp.common.view.IPageController#outEvent() */ @Override public void outEvent() { root.getHpplanModel().setU(TableUtils.convertOListTo2DArray(tableU.getItems())); }