private void setupGrid() {
grid = new ChannelGrid();
grid.setBorder(Border.EMPTY);
grid.setPadding(Insets.EMPTY);
grid.setCellFactory(gridView -> new ChannelGridCell(grid, this));
grid.cellHeightProperty().bind(scalingGridCellHeight);
grid.cellWidthProperty().bind(scalingGridCellWidth);
grid.setHorizontalCellSpacing(5);
grid.setVerticalCellSpacing(5);
filteredChannelListGrid = new FilteredList<>(channelStore.getChannels());
final SortedList<Channel> sortedChannelListGrid = new SortedList<>(filteredChannelListGrid);
sortedChannelListGrid.setComparator((channel1, channel2) -> Long.compare(channel2.getViewer(), channel1.getViewer()));
grid.setItems(sortedChannelListGrid);
}
MainWindow.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:skadi
作者:
评论列表
文章目录