mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-09 15:17:24 -05:00
#2342 Playlist file name is now sortable
Closes #2342 Updates playlist manager playlist name column to be sortable.
This commit is contained in:
@@ -34,6 +34,7 @@ import java.nio.file.Paths;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import javafx.application.Platform;
|
||||
import javafx.beans.property.SimpleStringProperty;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.Node;
|
||||
@@ -189,6 +190,14 @@ public class PlaylistManagerEditor extends HBox
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
pathColumn.setCellValueFactory(param ->
|
||||
new SimpleStringProperty(param.getValue().toString()));
|
||||
|
||||
pathColumn.setComparator(String.CASE_INSENSITIVE_ORDER);
|
||||
pathColumn.setSortable(true);
|
||||
|
||||
|
||||
pathColumn.setPrefWidth(650);
|
||||
|
||||
mPlaylistTableView.getColumns().addAll(iconColumn, pathColumn);
|
||||
|
||||
Reference in New Issue
Block a user