public TwitchService(final String name, final String url) {
this.name = new SimpleStringProperty(name);
this.url = new SimpleStringProperty(url);
this.channelProperty = new SimpleObjectProperty<>(new SortedList<>(this.channelList));
this.sortChannels = new SimpleBooleanProperty();
this.sortChannels.bind(Settings.getInstance().sortTwitchProperty());
this.sortChannels.addListener((observable, oldValue, newVale) -> this.changeComparator(newVale));
this.channelProperty.get().addListener((ListChangeListener<IChannel>) change -> {
change.next();
this.changeComparator(this.sortChannels.get());
});
}
TwitchService.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:livestreamer_twitch_gui
作者:
评论列表
文章目录