use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.
the class FilterGridController method buildColumn.
private TableColumn<GridLine, GridCell> buildColumn(final FilterGridModel filterModel, final int index) {
TableColumn<GridLine, GridCell> column = new TableColumn<>(columnNameTool.columnName(index));
column.setSortable(false);
column.setCellValueFactory(features -> extractValue(features, index));
column.setCellFactory(c -> new FilterGridWordTableCell(filterModel.getColumnSelections().get(index)));
if (isScrollableColumnList(filterModel)) {
column.setPrefWidth(PREFERRED_COLUMN_WIDTH);
}
return column;
}
use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.
the class GridTestTool method legalSpacingGridLines.
public static List<GridLine> legalSpacingGridLines() {
GridLine line1 = new GridLine();
GridLine line2 = new GridLine(acceptedCell("Content1"));
GridLine line3 = new GridLine();
GridLine line4 = new GridLine(acceptedCell("Content2"));
return List.of(line1, line2, line3, line4);
}
use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.
the class GridTestTool method documentLines.
public static List<GridLine> documentLines() {
GridLine line1 = new GridLine(acceptedCell("Accepted1"));
GridLine line2 = new GridLine(rejectedCell("Rejected1"));
GridLine line3 = new GridLine(acceptedCell("Accepted2"));
return List.of(line1, line2, line3);
}
use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.
the class GridTestTool method normalisedGridLines.
public static List<GridLine> normalisedGridLines() {
GridLine line1 = new GridLine(acceptedCell("A1"), rejectedCell("B1"));
GridLine line2 = new GridLine(acceptedCell("A2"));
GridLine line3 = new GridLine(acceptedCell(""), acceptedCell(""), acceptedCell("C3"));
return List.of(line1, line2, line3);
}
use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.
the class GridTestTool method unnormalisedGridLines.
public static List<GridLine> unnormalisedGridLines() {
GridLine line1 = new GridLine(acceptedCell("A1"), rejectedCell("B1"));
GridLine line2 = new GridLine(acceptedCell("A2"));
GridLine line3 = new GridLine(acceptedCell(""), acceptedCell(""), acceptedCell("C3"), acceptedCell(""));
GridLine line4 = new GridLine(acceptedCell(""));
GridLine line5 = new GridLine();
return List.of(line1, line2, line3, line4, line5);
}
Aggregations