private void updateSwitchListButton() {
   log.debug("update switch list button");
   List<Location> locations = locationManager.getList();
   for (Location location : locations) {
     if (location != null
         && location.isSwitchListEnabled()
         && location.getStatus().equals(Location.MODIFIED)) {
       switchListsButton.setBackground(Color.RED);
       return;
     }
   }
   switchListsButton.setBackground(Color.GREEN);
 }
 private void removePropertyChangeLocations() {
   for (Location location : locationManager.getList()) {
     location.removePropertyChangeListener(this);
   }
 }
Example #3
0
 private synchronized void removePropertyChangeLocations() {
   List<Location> locations = locationManager.getList();
   for (Location location : locations) {
     location.removePropertyChangeListener(this);
   }
 }