use of org.controlsfx.control.spreadsheet.GridBase in project Gargoyle by callakrsos.
the class GargoyleSpreadSheetExam method start.
/* (non-Javadoc)
* @see javafx.application.Application#start(javafx.stage.Stage)
*/
@Override
public void start(Stage primaryStage) throws Exception {
GridBase gridBase = new GridBase(100, 100);
List<ObservableList<SpreadsheetCell>> rows = FXCollections.observableArrayList();
for (int row = 0; row < gridBase.getRowCount(); ++row) {
ObservableList<SpreadsheetCell> currentRow = FXCollections.observableArrayList();
for (int column = 0; column < gridBase.getColumnCount(); ++column) {
SpreadsheetCell createCell = SpreadsheetCellType.STRING.createCell(row, column, 1, 1, "");
currentRow.add(createCell);
}
rows.add(currentRow);
}
gridBase.setRows(rows);
ExcelTemplateControl excelTemplateControl = new ExcelTemplateControl();
primaryStage.setScene(new Scene(new GagoyleSpreadSheetView(gridBase)));
primaryStage.show();
}
Aggregations