FilterGridModel extends AbstractFilterModel { public ObservableList<BooleanProperty> getColumnSelections() { return columnSelections; } FilterGridModel(final Path file, final TextGrid grid, final FilterFileMode mode, final Set<Integer> columns); void replaceContent(final Path file, final TextGrid grid, final FilterFileMode mode, final Set<Integer> columns); @Override ObservableIntegerValue wordCountProperty(); ObservableList<GridLine> getLines(); FilterFileMode getMode(); ObservableList<BooleanProperty> getColumnSelections(); Set<Integer> getColumns(); int getColumnCount(); static final Set<Integer> DEFAULT_COLUMNS; }
@Test public void testSelectColumn() { FilterGridModel target = build(NORMAL_GRID); target.getColumnSelections().get(0).set(true); validateOk(target, NORMAL_GRID, 2, 0); }