Esempio n. 1
0
 @Override
 public void clearWebsite() {
   LOG.trace("Clear list of websites");
   TreeSet<Website> oldValue = new TreeSet<>(websites);
   websites.clear();
   changes.firePropertyChange(ModelProperties.WEBSITES.getPropertyName(), oldValue, websites);
 }
Esempio n. 2
0
 @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;
 }