Search in sources :

Example 1 with FilterGridModel

use of io.github.vocabhunter.gui.model.FilterGridModel in project VocabHunter by VocabHunter.

the class FilterGridController method buildFilterModel.

@Override
protected FilterGridModel buildFilterModel(final FilterFileModel model) {
    Path file = model.getFile();
    FilterFileMode mode = model.getMode();
    TextGrid grid = readGrid(file, mode);
    return new FilterGridModel(file, grid, mode, model.getColumns());
}
Also used : Path(java.nio.file.Path) TextGrid(io.github.vocabhunter.analysis.grid.TextGrid) FilterGridModel(io.github.vocabhunter.gui.model.FilterGridModel) FilterFileMode(io.github.vocabhunter.gui.model.FilterFileMode)

Aggregations

TextGrid (io.github.vocabhunter.analysis.grid.TextGrid)1 FilterFileMode (io.github.vocabhunter.gui.model.FilterFileMode)1 FilterGridModel (io.github.vocabhunter.gui.model.FilterGridModel)1 Path (java.nio.file.Path)1