@Override public SortedSet<Serie> getSeries() { LOG.trace("Reload series"); SortedSet<Serie> loadedSeries = Services.getLoadingService().loadAllSeries(); changes.firePropertyChange(ModelProperties.SERIES.getPropertyName(), series, loadedSeries); series = loadedSeries; return series; }
@Override public SortedSet<Website> getWebsites() { LOG.trace("Reload websites [Selected Serie : " + selectedSerie + "]"); SortedSet<Website> loadedWebsites = Services.getLoadingService().loadSiteForSerie(selectedSerie); changes.firePropertyChange( ModelProperties.WEBSITES.getPropertyName(), websites, loadedWebsites); websites = loadedWebsites; return websites; }
@Override public SortedSet<Chapter> getLoadedChapters() { LOG.trace( "Reload chapters [Selected Serie : " + selectedSerie + "; Selected Websites : " + selectedWebsite + "]"); SortedSet<Chapter> newChapters = Services.getLoadingService().loadChapterList(selectedWebsite, selectedSerie); changes.firePropertyChange( ModelProperties.CHAPTER_LOADED.getPropertyName(), loadedChapters, newChapters); loadedChapters = newChapters; return loadedChapters; }
@Override public void refreshData() { LOG.trace("Refresh data"); Services.getLoadingService().refreshListSerie(); getSeries(); }